mirror of https://github.com/alibaba/arthas.git
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.
5 lines
8.6 KiB
JavaScript
5 lines
8.6 KiB
JavaScript
2 months ago
|
import{_ as d,o as h,c,a as e,b as s,w as t,d as i,e as a,r as o}from"./app.5024572d.js";const _={},u=i('<h2 id="\u7528\u6237\u95EE\u9898" tabindex="-1"><a class="header-anchor" href="#\u7528\u6237\u95EE\u9898" aria-hidden="true">#</a> \u7528\u6237\u95EE\u9898 \uFF1A</h2><p>arthas \u547D\u4EE4\u89E3\u91CA</p><hr><h2 id="\u4E13\u5BB6\u5B98\u65B9\u89E3\u7B54" tabindex="-1"><a class="header-anchor" href="#\u4E13\u5BB6\u5B98\u65B9\u89E3\u7B54" aria-hidden="true">#</a> \u4E13\u5BB6\u5B98\u65B9\u89E3\u7B54 \uFF1A</h2><p>Arthas \u662F\u4E00\u6B3EJava\u8BCA\u65AD\u5DE5\u5177\uFF0C\u5B83\u63D0\u4F9B\u4E86\u4E30\u5BCC\u7684\u547D\u4EE4\u96C6\u6765\u5E2E\u52A9\u5F00\u53D1\u8005\u5728\u751F\u4EA7\u73AF\u5883\u4E2D\u5B9A\u4F4D\u548C\u89E3\u51B3\u5404\u79CDJVM\u76F8\u5173\u7684\u95EE\u9898\uFF0C\u65E0\u9700\u91CD\u542F\u5E94\u7528\u3002\u4EE5\u4E0B\u662F\u90E8\u5206\u6838\u5FC3\u547D\u4EE4\u7684\u89E3\u91CA\uFF1A</p><h3 id="\u5B89\u88C5-arthas" tabindex="-1"><a class="header-anchor" href="#\u5B89\u88C5-arthas" aria-hidden="true">#</a> \u5B89\u88C5 Arthas</h3>',6),p=i(`<li><strong>\u5FEB\u901F\u5B89\u88C5</strong>\uFF1A\u63A8\u8350\u4F7F\u7528 <code>arthas-boot.jar</code>\u3002\u901A\u8FC7\u4EE5\u4E0B\u547D\u4EE4\u4E0B\u8F7D\u5E76\u542F\u52A8\uFF1A<div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code><span class="token function">curl</span> <span class="token parameter variable">-O</span> https://arthas.aliyun.com/arthas-boot.jar
|
||
7 months ago
|
<span class="token function">java</span> <span class="token parameter variable">-jar</span> arthas-boot.jar
|
||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div></div></div></li><li><strong>\u4E00\u952E\u5B89\u88C5</strong>\uFF08Linux/Unix/Mac\uFF09\uFF1A\u901A\u8FC7\u811A\u672C\u5B89\u88C5\uFF1A<div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code><span class="token function">curl</span> <span class="token parameter variable">-L</span> https://arthas.aliyun.com/install.sh <span class="token operator">|</span> <span class="token function">sh</span>
|
||
5 months ago
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div></li>`,2),g=e("strong",null,"\u5168\u91CF/\u624B\u52A8\u5B89\u88C5",-1),f=a("\u53CA\u5176\u4ED6\u65B9\u5F0F\u8BE6\u60C5\u8BF7\u53C2\u7167"),m={href:"https://arthas.aliyun.com/doc/install.html",target:"_blank",rel:"noopener noreferrer"},b=a("Arthas Install"),v=a("\u3002"),x=i('<h3 id="arthas-\u547D\u4EE4\u5217\u8868\u6982\u89C8" tabindex="-1"><a class="header-anchor" href="#arthas-\u547D\u4EE4\u5217\u8868\u6982\u89C8" aria-hidden="true">#</a> Arthas \u547D\u4EE4\u5217\u8868\u6982\u89C8</h3><h4 id="jvm-\u76F8\u5173" tabindex="-1"><a class="header-anchor" href="#jvm-\u76F8\u5173" aria-hidden="true">#</a> JVM \u76F8\u5173</h4><ul><li><strong>dashboard</strong>\uFF1A\u67E5\u770B\u7CFB\u7EDF\u5B9E\u65F6\u6570\u636E\u9762\u677F\u3002</li><li><strong>thread</strong>\uFF1A\u68C0\u67E5JVM\u7EBF\u7A0B\u5806\u6808\u4FE1\u606F\u3002</li><li><strong>heapdump</strong>\uFF1A\u7C7B\u4F3Cjmap\uFF0Cdump Java\u5806\u5185\u5B58\u3002</li><li><strong>sysprop</strong>\uFF1A\u67E5\u770B\u548C\u4FEE\u6539JVM\u7CFB\u7EDF\u5C5E\u6027\u3002</li></ul><h4 id="class-classloader-\u76F8\u5173" tabindex="-1"><a class="header-anchor" href="#class-classloader-\u76F8\u5173" aria-hidden="true">#</a> Class/ClassLoader \u76F8\u5173</h4><ul><li><strong>sc</strong>\uFF1A\u5217\u51FA\u5DF2\u52A0\u8F7D\u7684\u7C7B\u4FE1\u606F\u3002</li><li><strong>jad</strong>\uFF1A\u53CD\u7F16\u8BD1\u7C7B\u7684\u6E90\u7801\u3002</li><li><strong>redefine</strong>/<strong>retransform</strong>\uFF1A\u52A8\u6001\u52A0\u8F7D\u5916\u90E8<code>.class</code>\u6587\u4EF6\uFF0C\u4FEE\u6539\u7C7B\u5B9A\u4E49\u3002</li></ul><h4 id="monitor-watch-trace-\u76F8\u5173" tabindex="-1"><a class="header-anchor" href="#monitor-watch-trace-\u76F8\u5173" aria-hidden="true">#</a> Monitor/Watch/Trace \u76F8\u5173</h4><ul><li><strong>watch</strong>\uFF1A\u89C2\u6D4B\u65B9\u6CD5\u6267\u884C\u65F6\u7684\u5165\u53C2\u548C\u8FD4\u56DE\u503C\u3002</li><li><strong>trace</strong>\uFF1A\u8FFD\u8E2A\u65B9\u6CD5\u5185\u90E8\u8C03\u7528\u8DEF\u5F84\u53CA\u5176\u8017\u65F6\u3002</li><li>\u6CE8\u610F\uFF1A\u8FD9\u4E9B\u547D\u4EE4\u901A\u8FC7\u5B57\u8282\u7801\u589E\u5F3A\u5B9E\u73B0\uFF0C\u4F7F\u7528\u65F6\u5E94\u8C28\u614E\uFF0C\u907F\u514D\u5BF9\u7EBF\u4E0A\u670D\u52A1\u9020\u6210\u5F71\u54CD\u3002</li></ul><h4 id="profiler-\u6027\u80FD\u5206\u6790" tabindex="-1"><a class="header-anchor" href="#profiler-\u6027\u80FD\u5206\u6790" aria-hidden="true">#</a> Profiler/\u6027\u80FD\u5206\u6790</h4><ul><li><strong>profiler</strong>\uFF1A\u4F7F\u7528async-profiler\u751F\u6210\u706B\u7130\u56FE\u8FDB\u884C\u6027\u80FD\u5206\u6790\u3002</li><li><strong>jfr</strong>\uFF1A\u52A8\u6001\u542F\u7528/\u505C\u7528Java Flight Recorder\u8BB0\u5F55\u3002</li></ul><h4 id="\u5176\u4ED6\u529F\u80FD" tabindex="-1"><a class="header-anchor" href="#\u5176\u4ED6\u529F\u80FD" aria-hidden="true">#</a> \u5176\u4ED6\u529F\u80FD</h4><ul><li><strong>grep</strong>\u3001<strong>wc</strong>\u3001<strong>plaintext</strong>\uFF1A\u7BA1\u9053\u5904\u7406\u547D\u4EE4\u7ED3\u679C\uFF0C\u5982\u8FC7\u6EE4\u3001\u7EDF\u8BA1\u3001\u53BB\u989C\u8272\u7B49\u3002</li><li><strong>auth</strong>\uFF1A\u547D\u4EE4\u6267\u884C\u9274\u6743\u3002</li><li><strong>options</strong>\uFF1A\u67E5\u770B\u6216\u8BBE\u7F6EArthas\u5168\u5C40\u914D\u7F6E\u3002</li><li><strong>base64</strong>\u3001<strong>cat</strong>\u3001<strong>echo</strong>\u7B49\uFF1A\u63D0\u4F9B\u7C7B\u4F3CLinux\u57FA\u7840\u547D\u4EE4\u7684\u529F\u80FD\u3002</li></ul><h3 id="\u4F7F\u7528\u8BF4\u660E" tabindex="-1"><a class="header-anchor" href="#\u4F7F\u7528\u8BF4\u660E" aria-hidden="true">#</a> \u4F7F\u7528\u8BF4\u660E</h3><p>\u5BF9\u4E8E\u5177\u4F53\u547D\u4EE4\u7684\u8BE6\u7EC6\u7528\u6CD5\u548C\u53C2\u6570\uFF0C\u53EF\u4EE5\u901A\u8FC7\u5728Arthas\u4E2D\u8F93\u5165<code>help <command></code>\u6765\u83B7\u53D6\u5E2E\u52A9\u4FE1\u606F\uFF0C\u4F8B\u5982<code>help watch</code>\u6765\u4E86\u89E3\u5982\u4F55\u4F7F\u7528<code>watch</code>\u547D\u4EE4\u3002</p><p>\u4EE5\u4E0A\u5185\u5BB9\u57FA\u4E8E\u63D0\u4
|