jamp :强大的JVM内存监视器
查看JVM内存使用情况: jmap -heap {PID}
查看内存中对象的大小与数量:jmap -histo:[live]:[more/grep]
jmap -histo [PID]:more (其他显示) ) ) ) ) ) ) ) )。
jmap-histo : live [ PID ] : more (显示更多活动类) ) ) ) ) )。
jap-histo : live [ PID ]|grep controller
(查找内存中匹配的类) Spring 框架中的 Controller 是单例的,在内存中只有一个,有意思 (虽然以前知道)
3358 www.Sina.com/: jmap-dump : format=b,file={fileName}.hprof {pid}
jmap -dump:format=b,file=heapdump.hprof pid
jmap -dump:format=b,file=/tmp/dump.dat 6219