mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-04 21:28:10 +08:00
291 B
291 B
thread 1
{{execute interrupt}} 命令会打印线程ID 1的栈。
Arthas支持管道,可以用 thread 1 | grep 'main('
{{execute T2}} 查找到main class
。
可以看到main class
是demo.MathGame
:
$ thread 1 | grep 'main('
at demo.MathGame.main(MathGame.java:17)