Files

375 B
Raw Permalink Blame History

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

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

可以看到main class{{}} 是demo.MathGame{{}}

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