mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
390 B
390 B
The thread 1{{execute interrupt}} command prints the stack of thread ID 1 - thread command Docs.
Arthas supports pipes, and you can find main class{{}} with thread 1 | grep 'main('{{execute T2}}.
You can see that main class{{}} is demo.MathGame{{}} :
$ thread 1 | grep 'main('
at demo.MathGame.main(MathGame.java:17)