From f8eed249129f8df8c80653f89e3e7513b7c00e9a Mon Sep 17 00:00:00 2001 From: LHearen Date: Thu, 20 Sep 2018 11:34:59 +0800 Subject: [PATCH 1/5] Fix the typo in CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 552df1b3a..ceb75063c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ ## 开发者相关 -编绎要求jdk7以上。因为使用到了jdk7才有的`java.lang.management.BufferPoolMXBea`,运行时要求是jdk6。 +编绎要求jdk7以上。因为使用到了jdk7才有的`java.lang.management.BufferPoolMXBean`,运行时要求是jdk6。 ### 安装到本地 From 25adb5816f870e445730f03c0c6695308275da5c Mon Sep 17 00:00:00 2001 From: LHearen Date: Thu, 20 Sep 2018 11:58:28 +0800 Subject: [PATCH 2/5] commands list translated --- site/src/site/sphinx/en/commands.md | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 site/src/site/sphinx/en/commands.md diff --git a/site/src/site/sphinx/en/commands.md b/site/src/site/sphinx/en/commands.md new file mode 100644 index 000000000..f103f7b14 --- /dev/null +++ b/site/src/site/sphinx/en/commands.md @@ -0,0 +1,37 @@ +Commands List +============= + +* [dashboard](dashboard.md) +* [thread](thread.md) +* [jvm](jvm.md) +* [sysprop](sysprop.md) +* [getstatic](getstatic.md) + + + +* [sc](sc.md) +* [sm](sm.md) +* [dump](dump.md) + +* [jad](jad.md) +* [classloader](classloader.md) +* [redefine](redefine.md) + +* [monitor](monitor.md) +* [watch](watch.md) +* [trace](trace.md) +* [stack](stack.md) +* [tt](tt.md) + +* [options](options.md) + +### Arthas Basic Commands + +* help - check the assistant info for the command +* cls - clear out the current screen area +* session - check the current session profile +* [reset](reset.md) - clear the injected code from the classes (B.T.W when Arthas server closed, all the injected will also be cleared) +* version - the version of the working Arthas +* quit - exit the current Arthas client without affecting other clients +* shutdown - terminate the Arthas server and all clients +* [keymap](keymap.md) - shortcuts for Arthas and also you can define your own From fec10d726d3fb2dbce4d1b5d8a048dfdf5220499 Mon Sep 17 00:00:00 2001 From: LHearen Date: Thu, 20 Sep 2018 12:09:51 +0800 Subject: [PATCH 3/5] dashboard translated --- site/src/site/sphinx/en/dashboard.md | 61 ++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 site/src/site/sphinx/en/dashboard.md diff --git a/site/src/site/sphinx/en/dashboard.md b/site/src/site/sphinx/en/dashboard.md new file mode 100644 index 000000000..a0750933f --- /dev/null +++ b/site/src/site/sphinx/en/dashboard.md @@ -0,0 +1,61 @@ +dashboard +========= + +This is the realtime dashboard for the system; press `Ctrl+C` to exit. + +When running in *Ali-tomcat*, the dashboard will present the realtime statistics of the tomcat including [QPS](https://en.wikipedia.org/wiki/Queries_per_second), RT, error counts, thread profile and the like. + +### A Demo + +``` +$ dashboard +ID NAME GROUP PRIORITY STATE %CPU TIME INTERRUPTED DAEMON +889 RMI TCP Connection(15)-30.10.166. RMI Runtime 9 RUNNABLE 48 0:5 false true +1077 Timer-for-arthas-dashboard-0 system 9 RUNNABLE 24 0:0 false true +1074 as-selector-daemon system 9 RUNNABLE 12 0:0 false true +284 JMX server connection timeout 284 RMI Runtime 9 TIMED_WAITI 8 0:3 false true +16 Timer-1 main 5 TIMED_WAITI 5 0:9 false true +47 Pandora pandora-qos-reporter Pool main 5 TIMED_WAITI 0 0:0 false true +48 JmonitorClient-CheckThread Pool [ main 5 TIMED_WAITI 0 0:0 false true +49 JmonitorClient-HeartBeat Pool [Th main 5 TIMED_WAITI 0 0:0 false true +50 JmonitorClient-ReaderThread Pool main 5 TIMED_WAITI 0 0:0 false true +957 RMI TCP Connection(16)-30.10.166. RMI Runtime 9 RUNNABLE 0 0:2 false true +51 JmonitorClient-WriterThread Pool main 5 TIMED_WAITI 0 0:0 false true +52 ContainerBackgroundProcessor[Stan main 5 TIMED_WAITI 0 0:0 false true +53 http-bio-8080-Acceptor-0 main 5 RUNNABLE 0 0:2 false true +54 http-bio-8080-AsyncTimeout main 5 TIMED_WAITI 0 0:0 false true +11 GC Daemon system 2 TIMED_WAITI 0 0:0 false true +Memory used total max usage GC +heap 59M 223M 1820M 3.26% gc.ps_scavenge.count 118 +ps_eden_space 14M 114M 668M 2.11% gc.ps_scavenge.time(ms) 1890 +ps_survivor_space 6M 6M 6M 96.08% gc.ps_marksweep.count 5 +ps_old_gen 39M 103M 1365M 2.86% gc.ps_marksweep.time(ms) 1140 +nonheap 234M 240M 0M 97.46% +code_cache 46M 47M 240M 19.49% +metaspace 167M 172M 0M 97.36% +Runtime Tomcat +os.name Mac OS X connector http-bio-8080 +os.version 10.10.5 QPS 0.00 +java.version 1.8.0_60 RT(ms) 1.13 +java.home error/s 0.00 + received/s 0B +systemload.average 3.44 sent/s 0B +processors 4 threadpool http-bio-8080 +uptime 16020s busy 0 +``` + +### Specification + +* ID: thread ID in JVM (this is different from the nativeID in thread dump) +* NAME: thread name +* GROUP: group the thread is in +* STATE: the current state of the thread +* PRIORITY: within 1 ~ 10 (the higher the number, the higher the priority) +* CPU%: CPU usage ratio within 100ms +* TIME: total running time in minute:second format +* INTERRUPTED: the thread interrupted state +* DAEMON: is daemon thread or not + +### Screenshots + +![alt text](_static/dashboard.png "dashboard") From dcec10bcc0d435076b01484c509fb1891b87b2a4 Mon Sep 17 00:00:00 2001 From: LHearen Date: Thu, 20 Sep 2018 12:10:12 +0800 Subject: [PATCH 4/5] typo fix --- site/src/site/sphinx/dashboard.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/site/sphinx/dashboard.md b/site/src/site/sphinx/dashboard.md index 863c37cd0..0a775e02b 100644 --- a/site/src/site/sphinx/dashboard.md +++ b/site/src/site/sphinx/dashboard.md @@ -53,7 +53,7 @@ uptime 16020s busy * STATE: 线程的状态 * CPU%: 线程消耗的cpu占比,采样100ms,将所有线程在这100ms内的cpu使用量求和,再算出每个线程的cpu使用占比。 * TIME: 线程运行总时间,数据格式为`分:秒` -* INTERRUPTE: 线程当前的中断位状态 +* INTERRUPTED: 线程当前的中断位状态 * DAEMON: 是否是daemon线程 ### 截图展示 From 1b21fafa1eb780e21fdf7a861ef103e31ef2fbaf Mon Sep 17 00:00:00 2001 From: LHearen Date: Thu, 20 Sep 2018 12:13:40 +0800 Subject: [PATCH 5/5] fix the screenshot missing issue in dashboard --- site/src/site/sphinx/en/dashboard.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/site/sphinx/en/dashboard.md b/site/src/site/sphinx/en/dashboard.md index a0750933f..f41b5acbe 100644 --- a/site/src/site/sphinx/en/dashboard.md +++ b/site/src/site/sphinx/en/dashboard.md @@ -58,4 +58,4 @@ uptime 16020s busy ### Screenshots -![alt text](_static/dashboard.png "dashboard") +![alt text](../_static/dashboard.png "dashboard")