arthas/tutorials/katacoda/arthas-basics-en/thread.md

11 lines
307 B
Markdown
Raw Normal View History

2020-06-04 14:32:55 +08:00
The `thread 1`{{execute interrupt}} command prints the stack of thread ID 1.
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)
```