Re: memory leak
>From the side, it does look like pending messages accumulated in memory
because of a slow or blocked subscriber. Since you have heap dump, you
should look at this specific TopicSubscription object just to make sure you
don't have actually a consumer subscribed to some of your topics, but not
accepting messages (e.g., a consumer created but no listener attached).
Within TopicSubscription you'll have destination info, consumer info, and
some other useful data that could indicate the cause of your issue.
On a side note, it looks like you are using VM Cursor, which was the main
cursor type prior to version 5. It holds pending messages in memory, thus
can cause OOM. By default, 5.x would use Store cursor avoiding memory
issues. You can read more about it here:
.. and I would advise not using VM Cursor.
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html