Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 62905 invoked from network); 26 Oct 2006 14:01:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 14:01:20 -0000 Received: (qmail 94050 invoked by uid 500); 26 Oct 2006 14:01:27 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 94036 invoked by uid 500); 26 Oct 2006 14:01:27 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 94025 invoked by uid 99); 26 Oct 2006 14:01:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 07:01:27 -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 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 07:01:12 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gd5mt-0001QX-Oo for activemq-users@geronimo.apache.org; Thu, 26 Oct 2006 07:00:51 -0700 Message-ID: <7011684.post@talk.nabble.com> Date: Thu, 26 Oct 2006 07:00:51 -0700 (PDT) From: kruthoff To: activemq-users@geronimo.apache.org Subject: Re: Non Persistent queue message TTL In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kruthoff@gmx.ch References: <6949731.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I've a similar situation, a queue, DeliveryMode.NON_PERSISTENT, and a TTL on the producer. The msgs remain in the RAM of activemq forever, if not consumed by a receiver (might be out of service or so..). With persistent delivery mode and asyncSend, it works well, but I would be very happy to have the case described above, too. Remove outdated msgs from the queue would be very appreciated. -andreas James.Strachan wrote: > > On 10/23/06, Dave cawthorn wrote: >> >> HI, >> >> >> Do non persistent messages with a TTL ever get removed out of the brokers >> message store? > > Non persistent messages shouldn't be getting written to the message > store? Or do you mean the RAM buffer? > > >> I wrote a test that sends a non persistent message with a TTL >> of 1ms and then tries to consume this message. What I have noticed is >> that >> every time I run this test the broker tries to redeliver the previously >> expired message as well as the newly expired message but the >> ActiveMQMessageConsumer rejects it and outputs multiple "Received expired >> message:" debug log record. I waited for an hour to see if the thread >> that >> deletes messages out of the persistent store cleaned up these messages as >> well but it doesn't seem to. >> >> I'm using jms for heartbeating clients and I want to use the TTL >> functionality to remove stale heartbeat requests but if the they are >> going >> to cause a memory leak in the broker i won't be able to do this. > > It could be we need to me more aggressive in evicting timed out > messages from RAM. We may wanna add some background thread to chase > down expired messages and remove them eagerly > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > > -- View this message in context: http://www.nabble.com/Non-Persistent-queue-message-TTL-tf2492842.html#a7011684 Sent from the ActiveMQ - User mailing list archive at Nabble.com.