PrintCommandLineFlags 打印HotSpotVM 采用的自动优化参数
11:21 [cafe@a01.crond.uc.zhaowei.youku]$ java -XX:+PrintCommandLineFlags -version
-XX:InitialHeapSize=526651072 -XX:MaxHeapSize=8426417152 -XX:ParallelGCThreads=18 -XX:+PrintCommandLineFlags -XX:+UseCompressedOops -XX:+UseParallelGC
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)
11:48 [cafe@a01.crond.uc.zhaowei.youku]$ java -XX:+PrintGCDetails -version
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)
Heap
PSYoungGen total 150080K, used 2574K [0x00000007588b0000, 0x0000000763020000, 0x0000000800000000)
eden space 128704K, 2% used [0x00000007588b0000,0x0000000758b33860,0x0000000760660000)
from space 21376K, 0% used [0x0000000761b40000,0x0000000761b40000,0x0000000763020000)
to space 21376K, 0% used [0x0000000760660000,0x0000000760660000,0x0000000761b40000)
PSOldGen total 342912K, used 0K [0x0000000609a00000, 0x000000061e8e0000, 0x00000007588b0000)
object space 342912K, 0% used [0x0000000609a00000,0x0000000609a00000,0x000000061e8e0000)
PSPermGen total 21248K, used 2318K [0x0000000604800000, 0x0000000605cc0000, 0x0000000609a00000)
object space 21248K, 10% used [0x0000000604800000,0x0000000604a43b68,0x0000000605cc0000)