arthas/tutorials/katacoda/arthas-basics-cn/thread.md
2020-06-04 14:32:55 +08:00

291 B
Raw Blame History

thread 1{{execute interrupt}} 命令会打印线程ID 1的栈。

Arthas支持管道可以用 thread 1 | grep 'main('{{execute T2}} 查找到main class

可以看到main classdemo.MathGame

$ thread 1 | grep 'main('
    at demo.MathGame.main(MathGame.java:17)