Heap Dump
Symptoms:
There are various way you can take heap dump of CQ application:
Automatic Heap Dump:
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
Manual Thread dump:
Once you have heap dump you can use any heap dump analyzer tool to analyze heap dump.
Some Useful links: