activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: Persistent messages cache causes OutOfMemory
Date Thu, 08 Jul 2010 13:21:08 GMT
Hi Chris,

Do you by any chance use VM Cursor in your config?

Please take a look at this page for more details:

It'd be good if you could post you configuration, so we can see check it out.

Dejan Bosanac -

Open Source Integration -
ActiveMQ in Action -
Blog -

On Thu, Jul 8, 2010 at 2:51 PM, cmongillo <> wrote:
> Hi,
> 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