查看GC情况jstat -gc pid [时间间隔/ms] [打印条数]打印线程堆栈jstack pid > file.txt导出dump文件 jmap -dump:live,format=b,file=dump.hprof PID