jmap是java 7后自带的轻量级内存分析工具,原文介绍可以见官网,《The jmap Utility》
1 堆栈分析
获取GC算法,新生代,老年代,永久代空间占用分析
jmap -heap 29620
Attaching to process ID 29620, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 1.6.0-rc-b100[......]