java 命令简单记录

136 阅读1分钟

jstack查看输出

示例: jstack pid > 1.txt

jstack统计线程数

jstack -l 28367 | grep 'java.lang.Thread.State' | wc -l