使用了jmap工具实现,手工触发fullGC,运维常备
jmap -histo:live <pid>
或者
jmap -dump:live,file=dump_001.bin PID
然后删掉dump_001.bin文件