mirror of https://github.com/alibaba/arthas.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
390 B
Markdown
11 lines
390 B
Markdown
2 years ago
|
The `thread 1`{{execute interrupt}} command prints the stack of thread ID 1 - [thread command Docs](https://arthas.aliyun.com/en/doc/thread.html).
|
||
|
|
||
|
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)
|
||
|
```
|