From 8f2a5436b11bd3cd864ae3ad54295aa0a56c764e Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Tue, 8 Jan 2019 15:36:17 +0800 Subject: [PATCH] update doc. #412 --- site/src/site/sphinx/en/quick-start.md | 4 +++- site/src/site/sphinx/quick-start.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/site/src/site/sphinx/en/quick-start.md b/site/src/site/sphinx/en/quick-start.md index ff5a15875..20a246a35 100644 --- a/site/src/site/sphinx/en/quick-start.md +++ b/site/src/site/sphinx/en/quick-start.md @@ -96,8 +96,10 @@ java.home /Library/Java/JavaVir ## 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 -$ thread -n -1 | grep 'main(' +$ thread 1 | grep 'main(' at demo.MathGame.main(MathGame.java:17) ``` diff --git a/site/src/site/sphinx/quick-start.md b/site/src/site/sphinx/quick-start.md index e291fb056..af7ca2ad7 100644 --- a/site/src/site/sphinx/quick-start.md +++ b/site/src/site/sphinx/quick-start.md @@ -97,8 +97,10 @@ java.home /Library/Java/JavaVir ## 4. 通过thread命令来获取到`arthas-demo`进程的Main Class +`thread 1`会打印线程ID 1的栈,通常是main函数的线程。 + ```bash -$ thread -n -1 | grep 'main(' +$ thread 1 | grep 'main(' at demo.MathGame.main(MathGame.java:17) ```