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.
arthas/tutorials/katacoda/arthas-basics-cn/thread.md

12 lines
291 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

`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)
```