Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 17975 invoked from network); 7 Dec 2009 13:47:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Dec 2009 13:47:51 -0000 Received: (qmail 48248 invoked by uid 500); 7 Dec 2009 13:47:50 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 48205 invoked by uid 500); 7 Dec 2009 13:47:50 -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 48195 invoked by uid 99); 7 Dec 2009 13:47:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2009 13:47:50 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2009 13:47:47 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NHdvz-0007sw-5h for users@activemq.apache.org; Mon, 07 Dec 2009 05:47:27 -0800 Message-ID: <26677473.post@talk.nabble.com> Date: Mon, 7 Dec 2009 05:47:27 -0800 (PST) From: fehm To: users@activemq.apache.org Subject: Re: What does the topic size attribute actually mean ? In-Reply-To: <26676103.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: Felix.Ehm@cern.ch References: <26676103.post@talk.nabble.com> Hi, walec51 wrote: > > Does the mean that all the messages are still stored somewhere ? > > My recovery policy is . > > I'm experiencing a memory leak in ActiveMQ and I'm trying to find out > whats cosing it. The funny thing is that when I delete all the topics and > queue on the server the memory usage doesn't lower a bit. > Three things come into my mind,which might be helpful : 1. Unless you have switched message persistency off, messages are always stored before distribution to subscribers. If you have disabled spooling messages to disk, it's very likely to fill up the Broker memory. 1. works only for retroactive subscriptions, means that only if your clients have 'retroactive=true' enabled they will see -independent of when a message has been sent- always the last one. Again ,this means that the server will store the message until a new one comes in. Do have a large number of topics ? 2. Of course a memory leak can always happen due to a bug in the server. However, before you should check that your clients "behave well". Make sure that they don't have resource leaks (e.g. not closing subscription/connection objects). Unfortunately, I once ran into this and banged my head against the wall for a while. Watch the subscription stats (inflight count is a good indicator, that the client makes problems). I recommend to use the jconsole to check these numbers. How many topics do you use/create. Remember that if the server will always keep your topic, hence using memory. In my experience, with 50K topics you need > 1024M JVM size for sure. Cheers, Felix ----- Felix Ehm, www.cern.ch -- View this message in context: http://old.nabble.com/What-does-the-topic-size-attribute-actually-mean---tp26676103p26677473.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.