activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adisi <adi.si...@gmail.com>
Subject Re: ActiveMQ - OutOfMemory Errors (Temporary queues related?)
Date Mon, 22 Jun 2009 13:24:43 GMT

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.


Mime
View raw message