CPU100%常用定位命令
jps
top -Hp pid
printf ‘%x\n’ tid
jstack 53 |grep bdf
53 是jps的pid bdf 是 十六进制id
https://jvmmemory.com/
jvm启动打印gc详细日志
-Xloggc:/app/tax/apache-tomcat-9.0.56/gclog/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=200m -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/tax/apache-tomcat-9.0.56/gclog/gcheap.hprof -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -XX:+PrintAdaptiveSizePolicy -XX:+PrintTenuringDistribution -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps
JVM分析工具大全
https://www.cnblogs.com/duanxz/p/4515437.html