activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mandira <>
Subject Multiple threads for ActiveMQ Connection
Date Mon, 19 May 2008 21:13:26 GMT

We are using ActiveMQ for parallel processing - Some of parallelism achieved
through JMS Listeners and some through multiple threads.

While running the application after some time - we were always getting "Out
of Memory" Error

On profiling we notice a high number of threads being spawned and the no of
instances only increasing with time.

We commented the code to "send" the message to queue and the thread count
became kind of steady. On further reading we discovered it is by design as
the transport is async as explained in this URL -

But this only works for vm protocol. The broker, in our case, would be
running as a separate instance. What is the best option to reduce the no of

We tried versions 5 and 5.1
thank you, 
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message