activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmongillo <>
Subject Persistent messages cache causes OutOfMemory
Date Thu, 08 Jul 2010 12:51:20 GMT

we are performing some tests on our ActiveMq instance (version 5.3.0) and we
noticed a memory increase when our persistent queues become quite full of
pending messages.
The result of slow consumers with producerFlowControl disabled is a constant
increase of the memory with the number of pending messages. 
Analyzing a memory dump in this scenario we noticed that the object related to our full queue has a
reference to all pending messages.
Each object
linked to queue contains a reference to the original
org.apache.activemq.command.ActiveMQTextMessage object with all content (jms
message body).
What is the reason of caching all the pending object when we work with
persistent messages?
There is an option we can set to avoid this behaviour?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message