mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-22 15:10:07 +00:00
update doc
This commit is contained in:
1 parent
c1dcc8ff9e
commit
f599c74408
133 files changed
+793
-617
No files matched your search
+56
-39
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>dashboard — Arthas 3.4.1 文档</title>
|
||||
<title>dashboard — Arthas 3.4.2 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.4.1
|
||||
3.4.2
|
||||
</div>
|
||||
|
||||
|
||||
@@ -111,7 +111,10 @@
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">dashboard</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#id1">参数说明</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#id2">使用参考</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#id3">数据说明</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#id3">数据说明</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#jvm">JVM内部线程</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#id4">截图展示</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -257,54 +260,68 @@
|
||||
<div class="section" id="id2">
|
||||
<h2>使用参考<a class="headerlink" href="#id2" title="永久链接至标题">¶</a></h2>
|
||||
<div class="highlight-default notranslate"><pre class="literal-block">$ 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</pre>
|
||||
ID NAME GROUP PRIORITY STATE %CPU DELTA_TIME TIME INTERRUPTE DAEMON
|
||||
-1 C2 CompilerThread0 - -1 - 1.55 0.077 0:8.684 false true
|
||||
53 Timer-for-arthas-dashboard-07b system 5 RUNNABLE 0.08 0.004 0:0.004 false true
|
||||
22 scheduling-1 main 5 TIMED_WAI 0.06 0.003 0:0.287 false false
|
||||
-1 C1 CompilerThread0 - -1 - 0.06 0.003 0:2.171 false true
|
||||
-1 VM Periodic Task Thread - -1 - 0.03 0.001 0:0.092 false true
|
||||
49 arthas-NettyHttpTelnetBootstra system 5 RUNNABLE 0.02 0.001 0:0.156 false true
|
||||
16 Catalina-utility-1 main 1 TIMED_WAI 0.0 0.000 0:0.029 false false
|
||||
-1 G1 Young RemSet Sampling - -1 - 0.0 0.000 0:0.019 false true
|
||||
17 Catalina-utility-2 main 1 WAITING 0.0 0.000 0:0.025 false false
|
||||
34 http-nio-8080-ClientPoller main 5 RUNNABLE 0.0 0.000 0:0.016 false true
|
||||
23 http-nio-8080-BlockPoller main 5 RUNNABLE 0.0 0.000 0:0.011 false true
|
||||
-1 VM Thread - -1 - 0.0 0.000 0:0.032 false true
|
||||
-1 Service Thread - -1 - 0.0 0.000 0:0.006 false true
|
||||
-1 GC Thread#5 - -1 - 0.0 0.000 0:0.043 false true
|
||||
Memory used total max usage GC
|
||||
heap 36M 70M 4096M 0.90% gc.g1_young_generation.count 12
|
||||
g1_eden_space 6M 18M -1 33.33% 86
|
||||
g1_old_gen 30M 50M 4096M 0.74% gc.g1_old_generation.count 0
|
||||
g1_survivor_space 491K 2048K -1 24.01% gc.g1_old_generation.time(ms) 0
|
||||
nonheap 66M 69M -1 96.56%
|
||||
codeheap_'non-nmethods' 1M 2M 5M 22.39%
|
||||
metaspace 46M 47M -1 98.01%
|
||||
Runtime
|
||||
os.name Mac OS X
|
||||
os.version 10.15.4
|
||||
java.version 15
|
||||
java.home /Library/Java/JavaVirtualMachines/jdk-15.jdk/Contents/Home
|
||||
systemload.average 10.68
|
||||
processors 8
|
||||
uptime 272s</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="id3">
|
||||
<h2>数据说明<a class="headerlink" href="#id3" title="永久链接至标题">¶</a></h2>
|
||||
<ul class="simple">
|
||||
<li><p>ID: Java级别的线程ID,注意这个ID不能跟jstack中的nativeID一一对应</p></li>
|
||||
<li><p>ID: Java级别的线程ID,注意这个ID不能跟jstack中的nativeID一一对应。</p></li>
|
||||
<li><p>NAME: 线程名</p></li>
|
||||
<li><p>GROUP: 线程组名</p></li>
|
||||
<li><p>PRIORITY: 线程优先级, 1~10之间的数字,越大表示优先级越高</p></li>
|
||||
<li><p>STATE: 线程的状态</p></li>
|
||||
<li><p>CPU%: 线程消耗的cpu占比,采样100ms,将所有线程在这100ms内的cpu使用量求和,再算出每个线程的cpu使用占比。</p></li>
|
||||
<li><p>TIME: 线程运行总时间,数据格式为<code class="docutils literal notranslate"><span class="pre">分:秒</span></code></p></li>
|
||||
<li><p>CPU%: 线程的cpu使用率。比如采样间隔1000ms,某个线程的增量cpu时间为100ms,则cpu使用率=100/1000=10%</p></li>
|
||||
<li><p>DELTA_TIME: 上次采样之后线程运行增量CPU时间,数据格式为<code class="docutils literal notranslate"><span class="pre">秒</span></code></p></li>
|
||||
<li><p>TIME: 线程运行总CPU时间,数据格式为<code class="docutils literal notranslate"><span class="pre">分:秒</span></code></p></li>
|
||||
<li><p>INTERRUPTED: 线程当前的中断位状态</p></li>
|
||||
<li><p>DAEMON: 是否是daemon线程</p></li>
|
||||
</ul>
|
||||
<div class="section" id="jvm">
|
||||
<h3>JVM内部线程<a class="headerlink" href="#jvm" title="永久链接至标题">¶</a></h3>
|
||||
<p>Java 8之后支持获取JVM内部线程CPU时间,这些线程只有名称和CPU时间,没有ID及状态等信息(显示ID为-1)。
|
||||
通过内部线程可以观测到JVM活动,如GC、JIT编译等占用CPU情况,方便了解JVM整体运行状况。</p>
|
||||
<ul class="simple">
|
||||
<li><p>当JVM 堆(heap)/元数据(metaspace)空间不足或OOM时,可以看到GC线程的CPU占用率明显高于其他的线程。</p></li>
|
||||
<li><p>当执行<code class="docutils literal notranslate"><span class="pre">trace/watch/tt/redefine</span></code>等命令后,可以看到JIT线程活动变得更频繁。因为JVM热更新class字节码时清除了此class相关的JIT编译结果,需要重新编译。</p></li>
|
||||
</ul>
|
||||
<p>JVM内部线程包括下面几种:</p>
|
||||
<ul class="simple">
|
||||
<li><p>JIT编译线程: 如 <code class="docutils literal notranslate"><span class="pre">C1</span> <span class="pre">CompilerThread0</span></code>, <code class="docutils literal notranslate"><span class="pre">C2</span> <span class="pre">CompilerThread0</span></code></p></li>
|
||||
<li><p>GC线程: 如<code class="docutils literal notranslate"><span class="pre">GC</span> <span class="pre">Thread0</span></code>, <code class="docutils literal notranslate"><span class="pre">G1</span> <span class="pre">Young</span> <span class="pre">RemSet</span> <span class="pre">Sampling</span></code></p></li>
|
||||
<li><p>其它内部线程: 如<code class="docutils literal notranslate"><span class="pre">VM</span> <span class="pre">Periodic</span> <span class="pre">Task</span> <span class="pre">Thread</span></code>, <code class="docutils literal notranslate"><span class="pre">VM</span> <span class="pre">Thread</span></code>, <code class="docutils literal notranslate"><span class="pre">Service</span> <span class="pre">Thread</span></code></p></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="id4">
|
||||
<h2>截图展示<a class="headerlink" href="#id4" title="永久链接至标题">¶</a></h2>
|
||||
|
||||
Reference in new issue
Block a user