activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sansjunk <>
Subject activemq broker running out of heap memory
Date Sat, 08 Mar 2014 15:21:48 GMT
I am running a standalone broker with a simple configuration (shown at the
end of the message). 

The issue I am seeing is that the broker memory usage keeps climbing and
eventually (3-4 days) the JVM runs out of memory
(java.lang.outofmemoryerror). I connected to the broker via jconsole and
found the following abnormal values for some of the broker attributes which
I suspect could be causing this problem:
QueueProducers: 16101 (this keeps growing)
TotalEnqueueCount: 32263
TotalDequeueCount: 16105 (the difference between enqueue and dequeue keeps

Though I have 4 known producers I am not sure why there are tens of
thousands of producers being shown. Also from the console I found that the
extra messages are being enqueued in the topic called
"ActiveMQ.Advisory.Producer.Queue.Management.Queue" which are never
dequeued. Any one knows what this is? I can turn off advisory messages but I
guess that shouldn't be necessary.

Also another strange thing is that all the three parameters (Store, Memory
and Temp) show as 0 in the console. If thousands of messages are not being
dequeued I'd expect them to be stored somewhere?

I am sure there is a simple mistake I am doing somewhere but I can't seem to
figure out what's wrong, any help would be greatly appreciated!

Queues: 1 queue with 4 producers and consumers
Topics: 1 topic with 3 producers, 1 consumer
Persistent Messaging: Yes
ActiveMQ broker version: 5.9.0 running on Ubuntu 12.04 with Sun JVM 1.7.0_51
ActiveMQ client version: varies but all of them < 5.9.0 (not sure if this
matters), one running on Ubuntu 12.04, rest on Windows 7 64 bit
JVM arguments: -Xms1G -Xmx1G -Dhawtio.realm=activemq
-Dactivemq.classpath=/opt/activemq/conf; -Dactivemq.home=/opt/activemq
-Dactivemq.base=/opt/activemq -Dactivemq.conf=/opt/activemq/conf 
Portions of activemq.xml configuration file:
			<memoryUsage percentOfJvmHeap="50" />
			<storeUsage limit="100 gb"/>
			<tempUsage limit="50 gb"/>
	<transportConnector name="openwire"
	<transportConnector name="stomp"

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

View raw message