ヒープおよびヒストグラムのダンプファイルの取得
以下のコマンドを実行する前に、システムにJDKをインストールすることをお勧めします。
-
後続のコマンドで使用する [process id of the Controller] を取得します。
ps -ef | grep java
-
次のコマンドを使用して、[heap dump before garbage collection] を取得します。
<java-jdk-install-dir>/bin/jmap -dump:format=b,file=heap_before_live.bin <Controller_pid>
-
次のコマンドを使用して、[histogram before garbage collection] を取得します。
<java-jdk-install-dir>/bin/jmap -histo <Controller_pid> | head -200 > histo_before_live.txt
-
次のコマンドを使用して、[histogram after garbage collection] を取得します。
<java-jdk-install-dir>/bin/jmap -histo:live <Controller_pid> | head -200 > histo_after_live.txt