jmap -histo:live {pid} 打印每个class的实例数目,内存占用类全名信息。 注:[C是char数组。 [I是int数组。 [是byte数组。
jmap -dump:format=b,file=aaa.txt {pid} 输出内存快照到aaa.txt. 这个输出出来的内存快照一般都比较大,至少要数M