activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frugia, Kirby A" <>
Subject Broker not releasing memory
Date Fri, 21 Nov 2008 22:03:08 GMT
Hi All,

This is my first time posting on this list; hopefully it's the right one.

We are seeing an issue with our broker not releasing memory on topics.


 *   Active MQ 5.1 (out of the box)
 *   Persistent messages sent by publishers
 *   Non-durable topics

We were seeing an issue in production with slow consumers causing the broker to run out of

We wrote a test app, which has one publisher and one subscriber to the same topic.  The publisher
sends messages on this topic frequently.  The subscriber, upon receiving a message, goes to
sleep for 10 minutes.

Very quickly, the broker runs out of memory.  When this happens, our publishers can no longer
send messages; the send is blocked. This is expected.  However, if we kill our application
(which cleanly disconnects from the broker), the broker's memory usage (MemoryPercentUsage)
does not go back down.  Also, any new apps that startup will have their publishers blocked.

Shouldn't the broker release the memory associated with these messages?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message