activemq memory usage 4 times greater than Maximum heap allocated
I have below configuration for my java actvemq process where Xmx is 15360M
but when I see the process usage of memory using glance I see RSS 41.8gb
and VSS 51.6gb . pmap <process_id>|grep total gives me total 54059348K. I
am not sure what is happening in activemq that is causing this much amount
of memory being utilized. While heap usage is pretty low till 60%.
In the output of pmap I see lot of anon blocks. Please find attached PMAP
Re: activemq memory usage 4 times greater than Maximum heap allocated
This could be
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8180048, a memory
leak in G1. If so you can work around it by switching to concurrent mark
sweep or you can upgrade to the very latest Java SE 8u144 from Oracle, where
the bug should be fixed. Not sure if the fix is in OpenJDK yet.
Alternatively you could enable native memory tracking (not in production!)
and check if it is the symbol area that grows, more specifically from