Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 20611 invoked from network); 5 Feb 2007 23:25:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2007 23:25:40 -0000 Received: (qmail 53491 invoked by uid 500); 5 Feb 2007 23:25:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 53470 invoked by uid 500); 5 Feb 2007 23:25:46 -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 53461 invoked by uid 99); 5 Feb 2007 23:25:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 15:25:46 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [209.212.73.77] (HELO wssdev.wssource.com) (209.212.73.77) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 15:25:36 -0800 Received: from [192.168.0.73] (wss-fw-nat.wssource.com [192.168.1.3]) by wssdev.wssource.com (Postfix) with ESMTP id F3B0317400D2 for ; Mon, 5 Feb 2007 18:25:11 -0500 (EST) Message-ID: <45C7BCD7.9080407@peteleonard.com> Date: Mon, 05 Feb 2007 18:25:11 -0500 From: Peter Leonard User-Agent: Thunderbird 1.5.0.8 (X11/20061109) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: jdbcPersistenceAdapter enlightenment References: <8808214.post@talk.nabble.com> <309B3D66-641E-49A4-86EC-4095271EB5B3@gmail.com> In-Reply-To: <309B3D66-641E-49A4-86EC-4095271EB5B3@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Does this mean "this is a known bug in 4.1 and has been fixed", or "take 4.2-snapshot for a spin, and maybe it helps?" We're running 4.1 in production, and this and other memory leaks (e.g. the whole issue revolving around disconnect() not working with durable topics) are causing major problems for us - there doesn't seem to be any solution other than to monitor memory usage, bring everything to a halt, and restart services in a maintenance window. We're unable to run unreleased code in production, what's the current wisdom on 4.2 coming out? Or a 4.1.1? I am somewhat scared of 4.2.0 introducing a whole new set of unknown headaches - at least we seem to know our issues with 4.1 at this time. Thank you, Peter Rob Davies wrote: > Hi Sandeep, > > I think using the latest snapshot for 4.2 will help: > > http://people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/apache-activemq/4.2-incubator-SNAPSHOT/ > > > cheers, > > Rob > > On 5 Feb 2007, at 15:20, Sandeep Chayapathi wrote: > >> >> Hi all, >> >> As a followup to these questions: >> >> http://http://www.nabble.com/how-to-set-the-message-of-the-broker-will-store-in-the-mySQL-only-tf2957449.html#a8294916 >> >> how to set the message... >> http://www.nabble.com/Queue-Memory-Limits-tf1857084.html Queue Memory >> limit >> http://www.nabble.com/Async-Exception%3A-Broken-Pipe-tf3160498.html#a8765808 >> >> Async exception >> >> My bane of existence has been activemq, for a while now. The single >> issue, >> is activemq running out of heap memory, when I use offline durable >> subscribers. I wondered if by using db persistence, instead of caching >> messages, would solve this proble. To that end, I modified my >> activemq.xml, >> thusly: >> >> ------ >> >> > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> >> >> >> > xmlns="http://activemq.org/config/1.0" persistent="true"> >> >> >> >> >> >> >> >> >> >> > destroy-method="close"> >> >> > value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/> >> >> >> >> >> >> >> ----- >> >> I had 3 offline durable subscribers, to a topic (tired with queues >> also) and >> 1 producer, which pumped in messages to the topic. The jvm was started >> with >> -Xmx1024M. >> >> I found that, although the messages were supposed to be persisted to the >> mysql db, all the tables were empty. Once the memory usage hit the >> jvm's max >> allocated memory, I got the dreaded >> "java.lang.OutOfMemoryError: Java heap space", yet no messages were >> found in >> the datastore. >> >> Can anyone pls enlighten me why the un-acked messages were not being >> persisted to the datastore and if there is a way to force activemq to >> persist messages ? Thanks >> >> - Sandeep >> --View this message in context: >> http://www.nabble.com/jdbcPersistenceAdapter-enlightenment-tf3174884.html#a8808214 >> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>