CQ Heap Dump

Miscellaneous Administration‎

Heap Dump

  • Application is running out of memory
  • Application is performing slow because of frequent Garbage collection
There are various way you can take heap dump of CQ application:

Automatic Heap Dump:
  • Using Command line argument:
You can use following JVM_OPTS to take automatic heap dump -XX:+HeapDumpOnOutOfMemoryError and 
-XX:HeapDumpPath=/path/to/generate/heapdump more information about argument is here
  • Through CQ Console:

Manual Thread dump:

  • Using CQ Console

  • Using jmap
    1. First find process ID of CQ process using ps -ef | grep java | grep <author or publish> command
    2. Then you can run jmap command to get heap dump jmap -dump:format=b,file=/path/to/generate/heapdumpfile.hprof <PID>

Once you have heap dump you can use any heap dump analyzer tool to analyze heap dump.
Some Useful links: