Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 80350 invoked from network); 22 Jun 2009 13:25:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 13:25:03 -0000 Received: (qmail 66582 invoked by uid 500); 22 Jun 2009 13:25:13 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 66560 invoked by uid 500); 22 Jun 2009 13:25:13 -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 66550 invoked by uid 99); 22 Jun 2009 13:25:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 13:25:13 +0000 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,URI_HEX,WEIRD_PORT 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, 22 Jun 2009 13:25:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MIjVr-0005Qz-T0 for users@activemq.apache.org; Mon, 22 Jun 2009 06:24:43 -0700 Message-ID: <24147190.post@talk.nabble.com> Date: Mon, 22 Jun 2009 06:24:43 -0700 (PDT) From: adisi To: users@activemq.apache.org Subject: Re: ActiveMQ - OutOfMemory Errors (Temporary queues related?) In-Reply-To: <24094550.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: adi.simon@gmail.com References: <24094550.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'd like to clarify my question a bit. I'm using ActiveMQ as a Jms to Jms Bridge - source is a tibco messaging server and destination is local queue. I then expose the messages via a stomp connector so I can use a perl script to read them. I understand that temporary queues are not removed until the client disconnects - but what is the client in my case? To my understanding it is the jms connector itself, so as long as the activeMQ is running, temporary queues accumulate and this results in out of memory errors after a couple thousands of messages. My question is whether it is possible to configure activeMQ so it will remove these temporary queues after I use them so they don't accumulate and finish all of the memory? My client is not java so I don't have the privilege of controlling the process myself. Thanks, Adi. adisi wrote: > > Hi, > > ActiveMQ 5.2.0 (But getting same results on 5.3.0). Running in JMS-to-JMS > Bridge mode (other JMS is tibco). Each message arriving gets the following > treatment (logs from 5.3.0): > > DEBUG AbstractRegion - localhost adding destination: > temp-queue://ID:localhost.localdomain-41563-1245335655264-2:0:1 > DEBUG Queue - > ID:localhost.localdomain-41563-1245335655264-2:0:1 toPageIn: 200, > Inflight: 0, pagedInMessages.size 0 > DEBUG AbstractRegion - localhost adding destination: > topic://ActiveMQ.Advisory.TempQueue > DEBUG AbstractRegion - localhost adding consumer: > ID:localhost.localdomain-41563-1245335655264-2:0:10:1 for destination: > temp-queue://ID:localhost.localdomain-41563-1245335655264-2:0:1 > DEBUG AbstractRegion - localhost adding destination: > topic://ActiveMQ.Advisory.Consumer.Queue.ID:localhost.localdomain-41563-1245335655264-2:0:1 > INFO JmsQueueConnector - Created replyTo bridge for > Queue[$TMP$.ENGD.415449FE78CA103A4.15899] > DEBUG Queue - netassist.getCallLog toPageIn: 200, > Inflight: 0, pagedInMessages.size 0 > DEBUG Queue - > ID:localhost.localdomain-41563-1245335655264-2:0:1 toPageIn: 200, > Inflight: 0, pagedInMessages.size 0 > > So every message gets a new topic (that can be seen in the webadmin), a > new consumer, a temp-queue and a reply-to bridge. None of these seem to > get deleted while activemq is up and running. Memory quickly fills up and > when it reaches some level (always 30% of memory) - I start getting a > java.lang.OutOfMemory errors. > > Only when I close the activemq, I can see the resources are removed. > > DEBUG AbstractRegion - localhost removing consumer: > ID:localhost.localdomain-41563-1245335655264-2:0:-1:1 for destination: > topic://ActiveMQ.Advisory.TempQueue,topic://ActiveMQ.Advisory.TempTopic > DEBUG AbstractRegion - localhost removing consumer: > ID:localhost.localdomain-41563-1245335655264-2:0:10:1 for destination: > temp-queue://ID:localhost.localdomain-41563-1245335655264-2:0:1 > DEBUG AbstractRegion - Removing destination: > temp-queue://ID:localhost.localdomain-41563-1245335655264-2:0:1 > DEBUG AbstractRegion - Removing destination: > topic://ActiveMQ.Advisory.Consumer.Queue.ID:localhost.localdomain-41563-1245335655264-2:0:1 > > > I found some similar issues in the bug tracker and on forums ( > http://issues.apache.org/activemq/browse/AMQ-1979%3Bjsessionid=3955A8F937E700BADDF05CAEEB3C46D6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > 1 , > http://issues.apache.org/activemq/browse/AMQ-1790?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel > 2 ), but none seem to have found a solution. Been banging my head against > the wall for a couple of days on it, would be very grateful for some help. > > Thanks, > > Adi. > > > -- View this message in context: http://www.nabble.com/ActiveMQ---OutOfMemory-Errors-%28Temporary-queues-related-%29-tp24094550p24147190.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.