1、列印線程堆棧資訊 jstack -l pid 2、線程堆棧資訊輸出到檔案 jstack -l pid >> dumpFile 3、隔1秒列印一次GC資訊, jstat -gcutil pid 1000 jstack、jstat指令檢視jvm監控資訊