mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
375 B
375 B
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)