Get Heap and Histogram Dump Files
It is recommended that you install JDK on your system before using the following commands.
-
Get the process id of the Controller to use in subsequent commands.
ps -ef | grep java
-
Get the heap dump before garbage collection using the following command:
<java-jdk-install-dir>/bin/jmap -dump:format=b,file=heap_before_live.bin <Controller_pid>
-
Get the histogram before garbage collection using the following command:
<java-jdk-install-dir>/bin/jmap -histo <Controller_pid> | head -200 > histo_before_live.txt
-
Get the histogram after garbage collection using the following command:
<java-jdk-install-dir>/bin/jmap -histo:live <Controller_pid> | head -200 > histo_after_live.txt