# 导出内存快照 jmap -dump:format=b,live,file=dump.bin 线程ID # format=b: 以二进制格式 # live:只导出存活的对象(会在导出快照前触发一次GC) # file:导出的文件名