1、打印线程堆栈信息 jstack -l pid 2、线程堆栈信息输出到文件 jstack -l pid >> dumpFile 3、隔1秒打印一次GC信息, jstat -gcutil pid 1000 jstack、jstat命令查看jvm监控信息