java gc オプション

チューニングのためのJavaVM講座(後編)
http://www.atmarkit.co.jp/fjava/rensai3/javavm02/javavm02_2.html

java gc オプション
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-XX:+PrintHeapAtGC

-XX:+PrintHeapAtGC 出力例

[ParNew 159652K->143718K(2559936K), 0.0126690 secs]
Heap after gc invocations=50:
par new generation total 16320K, used 0K [0x10d70000, 0x11d70000, 0x11d70000)
eden space 16256K, 0% used [0x10d70000, 0x10d70000, 0x11d50000)
from space 64K, 0% used [0x11d50000, 0x11d50000, 0x11d60000)
to space 64K, 0% used [0x11d60000, 0x11d60000, 0x11d70000)
concurrent mark-sweep generation total 2543616K, used 143718K [0x11d70000, 0xad170000, 0xad170000)
concurrent-mark-sweep perm gen total 16384K, used 11120K [0xad170000, 0xae170000, 0xb1170000)
}

gcでクラスのアンロード情報を表示しない
-verbose:gc -XX:-TraceClassUnloading

これ → [Unloading class

Java HotSpot VM Options
http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp