activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim_Cross <>
Subject Memory Usage With No Subcribers and No Messages
Date Tue, 19 Jun 2007 09:07:35 GMT


I'm using ActiveMQ 4.1.1 on a Linux box, standard configuration plus a
single additional topic.
If I start ActiveMQ, and don't start any subscribers or producers (so no
subscriptions and no messages sent to the topic), and take a look at
JConsole, I see the attached memory usage - every minute heap usage goes
from ~4mb up to ~13mb, then gets garbage collected back down to 4mb.

Is this normal? 9mb seems like quite a lot of memory to be eating up over
the course of a minute when there's no activity at all.

The reason I started looking at this is that with approximately 20
non-durable subscribers, plus 15 producers each sending around 1 message
every couple of seconds, it runs fine for bout 20 mins, then hangs with 100%
memory usage.
I'm going to increase the available memory to the broker, to see whether it
settles down at a max somewhere over 20mb.

Any insight into why ActiveMQ uses so much memory when there's no activity,
and whether there are any config changes I can make to alter this,
gratefully received.

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

View raw message