Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 028A89FC6 for ; Wed, 30 Nov 2011 10:22:23 +0000 (UTC) Received: (qmail 70446 invoked by uid 500); 30 Nov 2011 10:22:22 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 70365 invoked by uid 500); 30 Nov 2011 10:22:21 -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 70268 invoked by uid 99); 30 Nov 2011 10:22:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 10:22:21 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of martinc@gmx.at designates 213.165.64.23 as permitted sender) Received: from [213.165.64.23] (HELO mailout-de.gmx.net) (213.165.64.23) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 30 Nov 2011 10:15:16 +0000 Received: (qmail invoked by alias); 30 Nov 2011 10:14:54 -0000 Received: from mail-fx0-f43.google.com (EHLO mail-fx0-f43.google.com) [209.85.161.43] by mail.gmx.net (mp047) with SMTP; 30 Nov 2011 11:14:54 +0100 X-Authenticated: #423381 X-Provags-ID: V01U2FsdGVkX1+HlodvFa+HlvmczD8X+yBBZo973UUTC1A7qV/+EN dcyv4SW6pZ7/K3 Received: by fagn18 with SMTP id n18so345340fag.2 for ; Wed, 30 Nov 2011 02:14:49 -0800 (PST) Received: by 10.181.11.226 with SMTP id el2mr1174619wid.64.1322648089321; Wed, 30 Nov 2011 02:14:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.104.202 with HTTP; Wed, 30 Nov 2011 02:14:28 -0800 (PST) In-Reply-To: References: From: "Martin C." Date: Wed, 30 Nov 2011 11:14:28 +0100 Message-ID: Subject: Re: Should Total Message Count decrease? To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, first thing: does it occur while there is a consumer? Or only if there is no consumer? Are you using queues or topics (maybe even with persistent subscriptions)? TTL basically works the way you expected, BUT it depends if the messages are persistent or not, and if you have configured expired messages to be stored in a dead-letter-queue. Best regards, Martin On Wed, Nov 30, 2011 at 8:53 AM, Kevin Kilroy wrote: > Hi, > > Many thanks for your reply. There is a possibility in my app that > messages can't be delivered (client has closed the browser). I was > looking for a mechanism whereby there would be some sort of timeout on > the message, say a couple of minutes and if it hadn't been delivered > then the broker can delete it. I tried setting the timeToLive on the > Producer sending the message, but the build up of messages still > occurs. > > Any ideas? > > Thanks again, > > Kevin. > > On Wed, Nov 30, 2011 at 6:50 AM, Martin C. wrote: >> Hi, >> >> if TotalMessageCount is not decreasing, this indicates that you are >> either not consuming or maybe not committing the consuming transaction >> / not acknowledging the messages on the receiving side (depends on >> your acknowledge mode). >> >> Best regards, >> Martin >> >> On Tue, Nov 29, 2011 at 4:39 PM, Kevin Kilroy wrote: >>> Hi, >>> >>> I seem to have a memory leak, in that messages seem to be hanging >>> around in the broker. Using JMX I can see that the TotalMessageCount >>> is not 0. Also, MemoryPercentUsage eventually gets to 100% and then >>> the app freezes, if I increase the MemoryLimit, then the app begins to >>> run again. >>> >>> If I close down all the clients (browsers) then I see there are Consumers. >>> >>> I've tried setting a TimeToLive on the JmsTemplate (the Producer >>> sending the messages to the ActiveMQQueue). >>> >>> Does anybody have any ideas how I can debug this further? >>> >>> Thanks in advance, >>> >>> Kevin. >>> >>> I'm using Blazeds 4, Spring 3 and ActiveMQ 5.5. >>> >