Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 68792 invoked from network); 7 Jun 2007 19:20:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jun 2007 19:20:27 -0000 Received: (qmail 96612 invoked by uid 500); 7 Jun 2007 19:20:29 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 96595 invoked by uid 500); 7 Jun 2007 19:20:29 -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 96586 invoked by uid 99); 7 Jun 2007 19:20:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 12:20:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.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; Thu, 07 Jun 2007 12:20:25 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HwNWe-0002En-Le for users@activemq.apache.org; Thu, 07 Jun 2007 12:20:04 -0700 Message-ID: <11014525.post@talk.nabble.com> Date: Thu, 7 Jun 2007 12:20:04 -0700 (PDT) From: Anthrope To: users@activemq.apache.org Subject: Re: Broker Out of Memory In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pn@anthrope.com References: <11012019.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hiram, Thanks for the answer. I shall download the 4.2 code and look at it. Do you know what the anticipated release date is, for the 4.2 release? Thanks, Prashanth Hiram Chirino wrote: > > ActiveMQ 4.1.x and before keep all inflight messages in memory. 4.2.x > changed so that persistent messages are cursored in as needed so it > should have a better memory footprint for large queues. > > On 6/7/07, Anthrope wrote: >> >> Hello, >> I am sure people have dealt with this in the past, but I couldn't find >> anything in prior posts that completely answered my question, so here it >> is: >> >> We are using ActiveMQ 4.1.1 with MySQL as the persistence store. We >> push >> through messages that are typically 50k-100k in size, over persistent >> queues. Sometimes, the number of messages in a particular broker can grow >> a >> fair bit because the queues are not being drained. Today, we had a >> situation >> where we shut down a broker that had roughly accumulated 1.2 million >> messages on a queue. The broker restarted just fine, but had an out of >> memory error when a client tried to connect (we have allotted the VM 2G >> of >> memory). Is there a limit on the number of messages that can be resident >> in >> persistent store before recovery is impossible? FWIW, we are not using a >> UsageManager in our broker configuration. >> >> Having looked quite closely at the code, I am inclined to think that >> this >> is because the broker invokes the recover() method on the >> JDBCMessageStore >> class, which in turn tries to recover *all* the messages. If this >> hypothesis >> is indeed correct, my question would be how this could be avoided. >> >> Solving this is important to me not just for this particular issue, but >> also >> due to the fact that I have written a SleepyCat BDB adaptor to ActiveMQ, >> and >> would like to ensure that it is not susceptible to the same issue. I >> would >> appreciate any advice/help on this issue. >> >> Thanks much in advance, >> Prashanth Nandavanam >> -- >> View this message in context: >> http://www.nabble.com/Broker-Out-of-Memory-tf3885035s2354.html#a11012019 >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> > > > -- > Regards, > Hiram > > Blog: http://hiramchirino.com > > -- View this message in context: http://www.nabble.com/Broker-Out-of-Memory-tf3885035s2354.html#a11014525 Sent from the ActiveMQ - User mailing list archive at Nabble.com.