update doc. #412

This commit is contained in:
hengyunabc committed 2019-01-08 15:36:35 +08:00
1 parent 2936528cde
commit 8f2a5436b1
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -96,8 +96,10 @@ java.home /Library/Java/JavaVir
## 4. Get the Main Class of the `arthas-demo` process with the thread command ## 4. Get the Main Class of the `arthas-demo` process with the thread command
`thread 1` will print the stack of the thread with ID 1, which usually the main function thread.
```bash ```bash
$ thread -n -1 | grep 'main(' $ thread 1 | grep 'main('
at demo.MathGame.main(MathGame.java:17) at demo.MathGame.main(MathGame.java:17)
``` ```
+3 -1
View File
@@ -97,8 +97,10 @@ java.home /Library/Java/JavaVir
## 4. 通过thread命令来获取到`arthas-demo`进程的Main Class ## 4. 通过thread命令来获取到`arthas-demo`进程的Main Class
`thread 1`会打印线程ID 1的栈,通常是main函数的线程。
```bash ```bash
$ thread -n -1 | grep 'main(' $ thread 1 | grep 'main('
at demo.MathGame.main(MathGame.java:17) at demo.MathGame.main(MathGame.java:17)
``` ```