activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artnaseef <>
Subject Re: Hung ActiveMQ broker and processes are blocking
Date Tue, 07 Jan 2014 17:17:38 GMT
I need to research the "used heap size" to understand what are the right
numbers that way.  Using jconsole or visualvm, the total heap size is
displayed and graphed in an easy-to-use format, and the total never
exceeds the max (when it hits, GC kicks in).

BTW, another great tool for looking at JVM stats from the command-line is

    jstat -gccapacity <pid>

Here's a page that lists all of the output formats:

Here is the option that enables GC for permgen:


We also use this one:


The JVM puts out this warning with the former, so these may be equivalent:

    Please use CMSClassUnloadingEnabled in place of
CMSPermGenSweepingEnabled in the future

Note that, if your JVM is running out of Heap, and not permgen, then it
will be necessary to determine what's causing the broker JVM to run out of
memory.  One common cause is slow consumers without PFC, or using a
configuration for which PFC does not work.

A good heap dump and analysis tool are the best bet in that case.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message