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