Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 95346 invoked from network); 23 Oct 2009 10:43:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Oct 2009 10:43:53 -0000 Received: (qmail 79387 invoked by uid 500); 23 Oct 2009 10:43:53 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 79314 invoked by uid 500); 23 Oct 2009 10:43:53 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 79304 invoked by uid 99); 23 Oct 2009 10:43:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 10:43:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.211.173 as permitted sender) Received: from [209.85.211.173] (HELO mail-yw0-f173.google.com) (209.85.211.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 10:43:42 +0000 Received: by ywh3 with SMTP id 3so8033168ywh.22 for ; Fri, 23 Oct 2009 03:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xi8Bk1rbjqWxyiprQdAvrd9zgrnJC51MuXHjKLip114=; b=FXwoxVhUkLZJYF0tuTRSh8//v/C6VhcwIFxhdQRcO20ZFhHiPyjnUGiR6Apu1J6Ch6 wTBbd+Y7M5G+awL5t7bfFdpY8lA2E/+B/iq+M9gyW5CGymVQMSS7Ojvq+sokFytwJp7v /6w8VPoNqTkjH0ibmoRqLdGx7GGvmI9eUOTKA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hj1BnddgjkkjVXmeO1iLz1N24XQWQ7F2d1xoZQgmTWgLogzLyqUyouBmiKLT6eXDAw UxV4dSLnHw1e5h1HcoAM8L6GpLQVFHwQibNPJZymaWBEavORWb48uI2YXTByogRjoeGL iWTMYNEKc+O6nHlvS6H0lpt4uAR0v9PUYTbyY= MIME-Version: 1.0 Received: by 10.101.166.10 with SMTP id t10mr6706016ano.143.1256294601834; Fri, 23 Oct 2009 03:43:21 -0700 (PDT) In-Reply-To: <4AE0AE8F.50807@sophos.com> References: <26014447.post@talk.nabble.com> <4AE0AE8F.50807@sophos.com> Date: Fri, 23 Oct 2009 11:43:21 +0100 Message-ID: <3a73c17c0910230343t2b315e0p9dac646714b40ed0@mail.gmail.com> Subject: Re: How to limit queue by number of messages From: Gary Tully To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001636c5bb3d79c866047697e1ce X-Virus-Checked: Checked by ClamAV on apache.org --001636c5bb3d79c866047697e1ce Content-Type: text/plain; charset=ISO-8859-1 Using memory limits or store usage limits with an expiry time are your options for queues at the moment. I think this requirement has been mentioned before, especially for non persistent messages. An internal consumer triggered off the queue size counter could do the necessary. What sort of options would you require w.r.t dealing with discarded messages? What happens in MQ when the maxdepth is reached? Could you raise an enhancement request for this feature? 2009/10/22 Mitch Granger > To be clearer, I'm looking for something like Websphere MQ's maxdepth > property for queues. > > > themitchy wrote: > >> I'm looking for a way to keep queue sizes down to a specific number. For >> example if a queue gets to 100000 messages I would like older message to >> start disappearing. >> >> I'm aware there are some "Pending Message Limit Strategy" options but >> these >> only apply to pending messages on a topic per consumer. I'm looking for >> something that will limit queue size specifically. >> > -- http://blog.garytully.com Open Source Integration http://fusesource.com --001636c5bb3d79c866047697e1ce--