update doc

This commit is contained in:
hengyunabc committed 2020-08-13 17:40:43 +08:00
1 parent 30b2a190c6
commit da5f4a397d
35 files changed
+417 -45

No files matched your search

+45 -4
View File
@@ -26,9 +26,9 @@ http api.
```json
{
"action": "exec",
"requestId": "req112"
"sessionId": "94766d3c-8b39-42d3-8596-98aee3ccbefb"
"consumerId": "955dbd1325334a84972b0f3ac19de4f7_2"
"requestId": "req112",
"sessionId": "94766d3c-8b39-42d3-8596-98aee3ccbefb",
"consumerId": "955dbd1325334a84972b0f3ac19de4f7_2",
"command": "version",
"execTimeout": "10000"
}
@@ -614,7 +614,48 @@ receive this `enhancer` result. It may happen that the result of
`enhancer` is successful, but there is no hit method. The client can
prompt the user according to the result of `enhancer`.
### Others
### Cases
#### Get classpath of Java application
Get system properties of the Java application through Http api and
extract the value of `java.class.path`.
```bash
json_data=$(curl -Ss -XPOST http://localhost:8563/api -d '
{
"action":"exec",
"command":"sysprop"
}')
```
* Extract value with `sed`:
```bash
class_path=$(echo $json_data | tr -d '\n' | sed 's/.*"java.class.path":"\([^"]*\).*/\1/')
echo "classpath: $class_path"
```
* Extract value with `json_pp/awk`:
```bash
class_path=$(echo $json_data | tr -d '\n' | json_pp | grep java.class.path | awk -F'"' '{ print $4 }')
echo "classpath: $class_path"
```
Output:
```
classpath: demo-arthas-spring-boot.jar
```
NOTE:
* `echo $json_data | tr -d '\n'` : Delete line breaks (the value of
`line.separator`) to avoid affecting the processing of `sed`/`json_pp`
commands.
* `awk -F'"' '{ print $4 }'` : Use double quote as delimiter
<a id="change_watch_value_to_map"></a>
#### Make watch command output a map object
+2
View File
@@ -1,6 +1,8 @@
jad
===
[`jad` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials?language=en&id=command-jad)
> Decompile the specified classes.
`jad` helps to decompile the byte code running in JVM to the source code to assist you to understand the logic behind better.
+2
View File
@@ -1,6 +1,8 @@
logger
===
[`logger` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials?language=en&id=command-logger)
> Print the logger information, update the logger level
### Usage
+2
View File
@@ -1,6 +1,8 @@
mc
===
[`mc-redefine` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials?language=en&id=command-mc-redefine)
> Memory compiler, compiles `.java` files into `.class` files in memory.
```bash
+13
View File
@@ -1,12 +1,25 @@
profiler
===
[`profiler` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en&id=command-profiler)
> Generate a flame graph using [async-profiler](https://github.com/jvm-profiling-tools/async-profiler)
The `profiler` command supports generate flame graph for application hotspots.
The basic usage of the `profiler` command is `profiler action [actionArg]`
### Supported Options
|Name|Specification|
|---:|:---|
|*action*|Action to execute|
|*actionArg*|Attribute name pattern|
|[i:]|sampling interval in ns (default: 10'000'000, i.e. 10 ms)|
|[f:]|dump output to specified directory|
|[d:]|run profiling for specified seconds|
|[e:]|which event to trace (cpu, alloc, lock, cache-misses etc.), default value is cpu|
### Start profiler
```
+10
View File
@@ -1,10 +1,20 @@
redefine
========
[`mc-redefine` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials?language=en&id=command-mc-redefine)
> Load the external `*.class` files to re-define the loaded classes in JVM.
Reference: [Instrumentation#redefineClasses](https://docs.oracle.com/javase/8/docs/api/java/lang/instrument/Instrumentation.html#redefineClasses-java.lang.instrument.ClassDefinition...-)
### Frequently asked questions
* The class of `redefine` cannot modify, add or delete the field and method of the class, including method parameters, method names and return values.
* If `mc` fails, you can compile the class file in the local development environment, upload it to the target system, and use `redefine` to hot load the class.
* At present, `redefine` conflicts with `watch / trace / jad / tt` commands. Reimplementing `redefine` function in the future will solve this problem.
> Notes: Re-defined classes cannot be restored. There are chances that redefining may fail due to some reasons, for example: there's new field introduced in the new version of the class, pls. refer to JDK's documentation for the limitations.
> The `reset` command is not valid for classes that have been processed by `redefine`. If you want to reset, you need `redefine` the original bytecode.
+4
View File
@@ -1,6 +1,8 @@
sc
==
[`sc` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials?language=en&id=command-sc)
> Search classes loaded by JVM.
`sc` stands for search class. This command can search all possible classes loaded by JVM and show their information. The supported options are: `[d]`、`[E]`、`[f]` and `[x:]`.
@@ -15,6 +17,8 @@ sc
|`[E]`|turn on regex match, the default behavior is wildcards match|
|`[f]`|print the fields info of the current class, MUST be used with `-d` together|
|`[x:]`|specify the depth of recursive traverse the static fields, the default value is '0' - equivalent to use `toString` to output|
|`[c:]`|The hash code of the special class's classLoader|
|`[n:]`|Maximum number of matching classes with details (100 by default)|
> *class-patten* supports full qualified class name, e.g. com.taobao.test.AAA and com/taobao/test/AAA. It also supports the format of 'com/taobao/test/AAA', so that it is convenient to directly copy class name from the exception stack trace without replacing '/' to '.'. <br/><br/>
> `sc` turns on matching sub-class match by default, that is, `sc` will also search the sub classes of the target class too. If exact-match is desired, pls. use `options disable-sub-class true`.
+4
View File
@@ -1,6 +1,8 @@
sm
==
[`sm` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials?language=en&id=command-sm)
> Search method from the loaded classes.
`sm` stands for search method. This command can search and show method information from all loaded classes. `sm` can only view the methods declared on the target class, that is, methods from its parent classes are invisible.
@@ -14,6 +16,8 @@ sm
|*method-pattern*|pattern for method name|
|`[d]`|print the details of the method|
|`[E]`|turn on regex matching while the default mode is wildcard matching|
|`[c:]`|The hash code of the special class's classLoader|
|`[n:]`|Maximum number of matching classes with details (100 by default)|
### Usage
+40 -6
View File
@@ -126,7 +126,8 @@
<li class="toctree-l3"><a class="reference internal" href="#enhancer">enhancer</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#others">Others</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#cases">Cases</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#get-classpath-of-java-application">Get classpath of Java application</a></li>
<li class="toctree-l3"><a class="reference internal" href="#make-watch-command-output-a-map-object">Make watch command output a map object</a></li>
</ul>
</li>
@@ -229,9 +230,9 @@ http api.</p>
<h3>Request data format<a class="headerlink" href="#request-data-format" title="Permalink to this headline"></a></h3>
<div class="highlight-json notranslate"><div class="highlight hljs"><pre class="json">{
&quot;action&quot;: &quot;exec&quot;,
&quot;requestId&quot;: &quot;req112&quot;
&quot;sessionId&quot;: &quot;94766d3c-8b39-42d3-8596-98aee3ccbefb&quot;
&quot;consumerId&quot;: &quot;955dbd1325334a84972b0f3ac19de4f7_2&quot;
&quot;requestId&quot;: &quot;req112&quot;,
&quot;sessionId&quot;: &quot;94766d3c-8b39-42d3-8596-98aee3ccbefb&quot;,
&quot;consumerId&quot;: &quot;955dbd1325334a84972b0f3ac19de4f7_2&quot;,
&quot;command&quot;: &quot;version&quot;,
&quot;execTimeout&quot;: &quot;10000&quot;
}</pre></div>
@@ -754,9 +755,42 @@ receive this <code class="docutils literal notranslate"><span class="pre">enhanc
prompt the user according to the result of <code class="docutils literal notranslate"><span class="pre">enhancer</span></code>.</p>
</div>
</div>
<div class="section" id="others">
<h2>Others<a class="headerlink" href="#others" title="Permalink to this headline"></a></h2>
<div class="section" id="cases">
<h2>Cases<a class="headerlink" href="#cases" title="Permalink to this headline"></a></h2>
<div class="section" id="get-classpath-of-java-application">
<h3>Get classpath of Java application<a class="headerlink" href="#get-classpath-of-java-application" title="Permalink to this headline"></a></h3>
<p>Get system properties of the Java application through Http api and
extract the value of <code class="docutils literal notranslate"><span class="pre">java.class.path</span></code>.</p>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">json_data=$(curl -Ss -XPOST http://localhost:8563/api -d &#x27;
{
&quot;action&quot;:&quot;exec&quot;,
&quot;command&quot;:&quot;sysprop&quot;
}&#x27;)</pre></div>
</div>
<ul class="simple">
<li><p>Extract value with <code class="docutils literal notranslate"><span class="pre">sed</span></code>:</p></li>
</ul>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">class_path=$(echo $json_data | tr -d &#x27;\n&#x27; | sed &#x27;s/.*&quot;java.class.path&quot;:&quot;\([^&quot;]*\).*/\1/&#x27;)
echo &quot;classpath: $class_path&quot;</pre></div>
</div>
<ul class="simple">
<li><p>Extract value with <code class="docutils literal notranslate"><span class="pre">json_pp/awk</span></code>:</p></li>
</ul>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">class_path=$(echo $json_data | tr -d &#x27;\n&#x27; | json_pp | grep java.class.path | awk -F&#x27;&quot;&#x27; &#x27;{ print $4 }&#x27;)
echo &quot;classpath: $class_path&quot;</pre></div>
</div>
<p>Output:</p>
<div class="highlight-default notranslate"><pre class="literal-block">classpath: demo-arthas-spring-boot.jar</pre>
</div>
<p>NOTE:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">echo</span> <span class="pre">$json_data</span> <span class="pre">|</span> <span class="pre">tr</span> <span class="pre">-d</span> <span class="pre">'\n'</span></code> : Delete line breaks (the value of
<code class="docutils literal notranslate"><span class="pre">line.separator</span></code>) to avoid affecting the processing of <code class="docutils literal notranslate"><span class="pre">sed</span></code>/<code class="docutils literal notranslate"><span class="pre">json_pp</span></code>
commands.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">awk</span> <span class="pre">-F'&quot;'</span> <span class="pre">'{</span> <span class="pre">print</span> <span class="pre">$4</span> <span class="pre">}'</span></code> : Use double quote as delimiter</p></li>
</ul>
<p><a id="change_watch_value_to_map"></a></p>
</div>
<div class="section" id="make-watch-command-output-a-map-object">
<h3>Make watch command output a map object<a class="headerlink" href="#make-watch-command-output-a-map-object" title="Permalink to this headline"></a></h3>
<p>The result value of <code class="docutils literal notranslate"><span class="pre">watch</span></code> is generated by calculating the
+1
View File
@@ -224,6 +224,7 @@
<div class="section" id="jad">
<h1>jad<a class="headerlink" href="#jad" title="Permalink to this headline"></a></h1>
<p><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials?language=en&amp;id=command-jad"><code class="docutils literal notranslate"><span class="pre">jad</span></code> online tutorial</a></p>
<blockquote>
<div><p>Decompile the specified classes.</p>
</div></blockquote>
+1
View File
@@ -225,6 +225,7 @@
<div class="section" id="logger">
<h1>logger<a class="headerlink" href="#logger" title="Permalink to this headline"></a></h1>
<p><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials?language=en&amp;id=command-logger"><code class="docutils literal notranslate"><span class="pre">logger</span></code> online tutorial</a></p>
<blockquote>
<div><p>Print the logger information, update the logger level</p>
</div></blockquote>
+1
View File
@@ -214,6 +214,7 @@
<div class="section" id="mc">
<h1>mc<a class="headerlink" href="#mc" title="Permalink to this headline"></a></h1>
<p><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials?language=en&amp;id=command-mc-redefine"><code class="docutils literal notranslate"><span class="pre">mc-redefine</span></code> online tutorial</a></p>
<blockquote>
<div><p>Memory compiler, compiles <code class="docutils literal notranslate"><span class="pre">.java</span></code> files into <code class="docutils literal notranslate"><span class="pre">.class</span></code> files in memory.</p>
</div></blockquote>
+38
View File
@@ -124,6 +124,7 @@
<li class="toctree-l2"><a class="reference internal" href="stack.html">stack</a></li>
<li class="toctree-l2"><a class="reference internal" href="tt.html">tt</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">profiler</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#supported-options">Supported Options</a></li>
<li class="toctree-l3"><a class="reference internal" href="#start-profiler">Start profiler</a></li>
<li class="toctree-l3"><a class="reference internal" href="#get-the-number-of-samples-collected">Get the number of samples collected</a></li>
<li class="toctree-l3"><a class="reference internal" href="#view-profiler-status">View profiler status</a></li>
@@ -230,11 +231,48 @@
<div class="section" id="profiler">
<h1>profiler<a class="headerlink" href="#profiler" title="Permalink to this headline"></a></h1>
<p><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en&amp;id=command-profiler"><code class="docutils literal notranslate"><span class="pre">profiler</span></code> online tutorial</a></p>
<blockquote>
<div><p>Generate a flame graph using <a class="reference external" href="https://github.com/jvm-profiling-tools/async-profiler">async-profiler</a></p>
</div></blockquote>
<p>The <code class="docutils literal notranslate"><span class="pre">profiler</span></code> command supports generate flame graph for application hotspots.</p>
<p>The basic usage of the <code class="docutils literal notranslate"><span class="pre">profiler</span></code> command is <code class="docutils literal notranslate"><span class="pre">profiler</span> <span class="pre">action</span> <span class="pre">[actionArg]</span></code></p>
<div class="section" id="supported-options">
<h2>Supported Options<a class="headerlink" href="#supported-options" title="Permalink to this headline"></a></h2>
<table border="1" class="docutils">
<thead>
<tr>
<th align="right">Name</th>
<th align="left">Specification</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right"><em>action</em></td>
<td align="left">Action to execute</td>
</tr>
<tr>
<td align="right"><em>actionArg</em></td>
<td align="left">Attribute name pattern</td>
</tr>
<tr>
<td align="right">[i:]</td>
<td align="left">sampling interval in ns (default: 10'000'000, i.e. 10 ms)</td>
</tr>
<tr>
<td align="right">[f:]</td>
<td align="left">dump output to specified directory</td>
</tr>
<tr>
<td align="right">[d:]</td>
<td align="left">run profiling for specified seconds</td>
</tr>
<tr>
<td align="right">[e:]</td>
<td align="left">which event to trace (cpu, alloc, lock, cache-misses etc.), default value is cpu</td>
</tr>
</tbody>
</table></div>
<div class="section" id="start-profiler">
<h2>Start profiler<a class="headerlink" href="#start-profiler" title="Permalink to this headline"></a></h2>
<div class="highlight-default notranslate"><pre class="literal-block">$ profiler start
+10
View File
@@ -118,6 +118,7 @@
<li class="toctree-l2"><a class="reference internal" href="classloader.html">classloader</a></li>
<li class="toctree-l2"><a class="reference internal" href="mc.html">mc</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">redefine</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#frequently-asked-questions">Frequently asked questions</a></li>
<li class="toctree-l3"><a class="reference internal" href="#options">Options</a></li>
<li class="toctree-l3"><a class="reference internal" href="#usage">Usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="#use-with-the-jad-mc-command">Use with the jad/mc command</a></li>
@@ -221,10 +222,18 @@
<div class="section" id="redefine">
<h1>redefine<a class="headerlink" href="#redefine" title="Permalink to this headline"></a></h1>
<p><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials?language=en&amp;id=command-mc-redefine"><code class="docutils literal notranslate"><span class="pre">mc-redefine</span></code> online tutorial</a></p>
<blockquote>
<div><p>Load the external <code class="docutils literal notranslate"><span class="pre">*.class</span></code> files to re-define the loaded classes in JVM.</p>
</div></blockquote>
<p>Reference: <a class="reference external" href="https://docs.oracle.com/javase/8/docs/api/java/lang/instrument/Instrumentation.html#redefineClasses-java.lang.instrument.ClassDefinition...-">Instrumentation#redefineClasses</a></p>
<div class="section" id="frequently-asked-questions">
<h2>Frequently asked questions<a class="headerlink" href="#frequently-asked-questions" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p>The class of <code class="docutils literal notranslate"><span class="pre">redefine</span></code> cannot modify, add or delete the field and method of the class, including method parameters, method names and return values.</p></li>
<li><p>If <code class="docutils literal notranslate"><span class="pre">mc</span></code> fails, you can compile the class file in the local development environment, upload it to the target system, and use <code class="docutils literal notranslate"><span class="pre">redefine</span></code> to hot load the class.</p></li>
<li><p>At present, <code class="docutils literal notranslate"><span class="pre">redefine</span></code> conflicts with <code class="docutils literal notranslate"><span class="pre">watch</span> <span class="pre">/</span> <span class="pre">trace</span> <span class="pre">/</span> <span class="pre">jad</span> <span class="pre">/</span> <span class="pre">tt</span></code> commands. Reimplementing <code class="docutils literal notranslate"><span class="pre">redefine</span></code> function in the future will solve this problem.</p></li>
</ul>
<blockquote>
<div><p>Notes: Re-defined classes cannot be restored. There are chances that redefining may fail due to some reasons, for example: there’s new field introduced in the new version of the class, pls. refer to JDK’s documentation for the limitations.</p>
</div></blockquote>
@@ -235,6 +244,7 @@
<div><p>The <code class="docutils literal notranslate"><span class="pre">redefine</span></code> command will conflict with the <code class="docutils literal notranslate"><span class="pre">jad</span></code>/<code class="docutils literal notranslate"><span class="pre">watch</span></code>/<code class="docutils literal notranslate"><span class="pre">trace</span></code>/<code class="docutils literal notranslate"><span class="pre">monitor</span></code>/<code class="docutils literal notranslate"><span class="pre">tt</span></code> commands. After executing <code class="docutils literal notranslate"><span class="pre">redefine</span></code>, if you execute the above mentioned command, the bytecode of the class will be reset.
The reason is that in the JDK <code class="docutils literal notranslate"><span class="pre">redefine</span></code> and <code class="docutils literal notranslate"><span class="pre">retransform</span></code> are different mechanisms. When two mechanisms are both used to update the bytecode, only the last modified will take effect.</p>
</div></blockquote>
</div>
<div class="section" id="options">
<h2>Options<a class="headerlink" href="#options" title="Permalink to this headline"></a></h2>
<table border="1" class="docutils">
+9
View File
@@ -218,6 +218,7 @@
<div class="section" id="sc">
<h1>sc<a class="headerlink" href="#sc" title="Permalink to this headline"></a></h1>
<p><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials?language=en&amp;id=command-sc"><code class="docutils literal notranslate"><span class="pre">sc</span></code> online tutorial</a></p>
<blockquote>
<div><p>Search classes loaded by JVM.</p>
</div></blockquote>
@@ -256,6 +257,14 @@
<td align="right"><code>[x:]</code></td>
<td align="left">specify the depth of recursive traverse the static fields, the default value is '0' - equivalent to use <code>toString</code> to output</td>
</tr>
<tr>
<td align="right"><code>[c:]</code></td>
<td align="left">The hash code of the special class's classLoader</td>
</tr>
<tr>
<td align="right"><code>[n:]</code></td>
<td align="left">Maximum number of matching classes with details (100 by default)</td>
</tr>
</tbody>
</table><blockquote>
<div><p><em>class-patten</em> supports full qualified class name, e.g. com.taobao.test.AAA and com/taobao/test/AAA. It also supports the format of ‘com/taobao/test/AAA’, so that it is convenient to directly copy class name from the exception stack trace without replacing ‘/’ to ‘.’. <br/><br/>
+1 -1
View File
@@ -1 +1 @@
Search.setIndex({docnames:["README","advanced-use","advice-class","agent","async","batch-support","cat","classloader","commands","contact-us","dashboard","docker","download","dump","echo","getstatic","grep","groovy","heapdump","http-api","idea-plugin","index","install-detail","jad","jvm","keymap","logger","manual-install","mbean","mc","monitor","ognl","options","perfcounter","profiler","pwd","quick-start","redefine","release-notes","reset","save-log","sc","sm","spring-boot-starter","stack","start-arthas","sysenv","sysprop","tee","thread","trace","tt","vmoption","watch","web-console"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx.domains.std":1,sphinx:56},filenames:["README.md","advanced-use.md","advice-class.md","agent.md","async.md","batch-support.md","cat.md","classloader.md","commands.md","contact-us.md","dashboard.md","docker.md","download.md","dump.md","echo.md","getstatic.md","grep.md","groovy.md","heapdump.md","http-api.md","idea-plugin.md","index.md","install-detail.md","jad.md","jvm.md","keymap.md","logger.md","manual-install.md","mbean.md","mc.md","monitor.md","ognl.md","options.md","perfcounter.md","profiler.md","pwd.md","quick-start.md","redefine.md","release-notes.md","reset.md","save-log.md","sc.md","sm.md","spring-boot-starter.md","stack.md","start-arthas.md","sysenv.md","sysprop.md","tee.md","thread.md","trace.md","tt.md","vmoption.md","watch.md","web-console.md"],objects:{},objnames:{},objtypes:{},terms:{"001018m":50,"004539m":50,"004935m":50,"005198m":50,"005372m":50,"005428m":50,"005778m":50,"006405m":50,"006783m":50,"008747m":50,"010317m":50,"010473m":50,"011636m":50,"012257m":50,"012416m":36,"013777m":50,"01696m":53,"019768m":50,"023715m":50,"028624m":50,"030432m":50,"033735m":50,"0353m":53,"03752m":50,"039s":1,"045534m":50,"05447m":50,"059839m":50,"061462m":50,"068692m":39,"06941m":50,"076457m":50,"078946m":50,"084025m":50,"08a":41,"094064m":50,"0_132":[23,36],"0_162":36,"0_51":47,"0_60":[7,10],"0m0":1,"0x0":46,"0x19":46,"0x1f5":46,"0x34":46,"0x4b67cf4d":51,"100m":[10,49,50],"100mb":26,"103m":10,"105228m":50,"10m":50,"1102230246251565e":[15,31,53],"113929m":50,"114m":10,"120s":30,"123934m":50,"128518m":39,"1294m":50,"12m":36,"136007m":36,"1365m":[10,36],"14dad5dc":39,"14m":[10,36],"155m":36,"16020s":10,"167786m":50,"167m":10,"168897m":53,"172m":10,"178583m":50,"1820m":[10,36],"182813m":50,"185203m":36,"1b6d3586":7,"200m":53,"202c":19,"20m":36,"223m":10,"232606m":50,"232887m":50,"234537m":50,"234m":10,"23m":36,"240m":[10,36],"241735m":19,"256color":46,"25s":32,"276874m":50,"277392m":53,"280502m":53,"281s":1,"28ea5898":31,"29fafb28":49,"2a139a55":26,"2b085b5d":19,"2bdd9114":23,"2eaa1027":[15,53],"2gb":26,"301ec38b":31,"303498m":53,"311395m":36,"31a6493":49,"327a647b":[29,37],"32m":36,"357742m":50,"3648e874":4,"389634m":50,"39m":10,"3d4eac69":[7,13,23,36,41,44,50],"3fe55d741882":54,"407b":19,"409446m":50,"414993m":53,"41cf53f9":53,"42ac":46,"42d3":19,"43de":19,"45df64fc":17,"46m":10,"472067c7":31,"473f":4,"477882m":53,"47m":10,"48f4":54,"492551m":50,"4a00":54,"4b85612c":31,"4c0df5f8":23,"4de6":20,"4rel":26,"522b4":41,"522b408a":53,"530255m":53,"546aeec1":49,"549379m":50,"572s":1,"587833m":53,"58ef25a97948":20,"590102m":39,"59m":10,"5ae4e5fbab8b4e529ac404f260d4e2d1_1":19,"5b0e2d00":17,"5e69":4,"5level":26,"60bc264d":46,"617465m":50,"6367e55a78a2":54,"65m":36,"66350f69":[7,13,23,36,41],"668m":10,"672m":36,"6849794470754667710l":23,"68b31f0a":7,"6951a712":23,"69ba0f27":49,"69dcaba4":23,"6cd0b6f8":49,"6e51ad67":23,"6fafc4c2":23,"701b744f971e":19,"7127ee12":49,"715367m":36,"716391m":50,"725be470":49,"7f89660b079b":4,"7f9a81e8":31,"838077m":50,"849713m":50,"852594m":50,"85m":36,"883b":19,"8b39":19,"8ecb9cb7c7804d5d92e258b23d5245cc_1":19,"8f7f6ad7bc2d4cb5aa57a530927a95cc_2":19,"94766d3c":19,"955dbd1325334a84972b0f3ac19de4f7_2":19,"961441m":53,"969732m":36,"98aee3ccbefb":19,"9eed":4,"9fa3":20,"\u4e2d\u6587\u6587\u6863":21,"\u53ef\u4ee5\u5148\u7528":26,"\u5982\u679c\u5e94\u7528\u662f\u4f20\u7edf\u7684":26,"\u5e94\u7528":26,"\u6216\u8005spring":26,"\u6765\u67e5\u770b\u5177\u4f53\u7684":26,"\u7136\u540e\u5728\u66f4\u65b0level\u65f6\u6307\u5b9aclassload":26,"\u90a3\u4e48\u9700\u8981\u6307\u5b9aclassload":26,"\u9ed8\u8ba4\u60c5\u51b5\u4e0b":26,"boolean":[2,15,31,53],"break":17,"byte":[1,23,24,38],"case":[2,4,16,21,38],"catch":[36,37],"char":[23,25],"class":[0,2,8,13,15,17,19,21,23,24,26,29,30,31,32,38,41,42,43,44,47,51,53],"default":[1,3,5,10,13,16,17,19,23,25,26,28,30,31,32,34,38,39,40,41,42,44,45,46,49,50,51,52,53,54],"enum":15,"export":33,"final":[2,5,23,36,49],"function":[19,32,36,37,50],"import":[21,23,36,43],"instanceof":51,"int":[23,36,37,41],"jar\u542f\u52a8\u7684\u5e94\u7528":26,"logger\u547d\u4ee4\u4f1a\u5728systemclassloader\u4e0b\u6267\u884c":26,"long":[15,19,23,26,31,44,50,53],"new":[19,23,34,36,37,49,50],"null":Line truncated
Search.setIndex({docnames:["README","advanced-use","advice-class","agent","async","batch-support","cat","classloader","commands","contact-us","dashboard","docker","download","dump","echo","getstatic","grep","groovy","heapdump","http-api","idea-plugin","index","install-detail","jad","jvm","keymap","logger","manual-install","mbean","mc","monitor","ognl","options","perfcounter","profiler","pwd","quick-start","redefine","release-notes","reset","save-log","sc","sm","spring-boot-starter","stack","start-arthas","sysenv","sysprop","tee","thread","trace","tt","vmoption","watch","web-console"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx.domains.std":1,sphinx:56},filenames:["README.md","advanced-use.md","advice-class.md","agent.md","async.md","batch-support.md","cat.md","classloader.md","commands.md","contact-us.md","dashboard.md","docker.md","download.md","dump.md","echo.md","getstatic.md","grep.md","groovy.md","heapdump.md","http-api.md","idea-plugin.md","index.md","install-detail.md","jad.md","jvm.md","keymap.md","logger.md","manual-install.md","mbean.md","mc.md","monitor.md","ognl.md","options.md","perfcounter.md","profiler.md","pwd.md","quick-start.md","redefine.md","release-notes.md","reset.md","save-log.md","sc.md","sm.md","spring-boot-starter.md","stack.md","start-arthas.md","sysenv.md","sysprop.md","tee.md","thread.md","trace.md","tt.md","vmoption.md","watch.md","web-console.md"],objects:{},objnames:{},objtypes:{},terms:{"001018m":50,"004539m":50,"004935m":50,"005198m":50,"005372m":50,"005428m":50,"005778m":50,"006405m":50,"006783m":50,"008747m":50,"010317m":50,"010473m":50,"011636m":50,"012257m":50,"012416m":36,"013777m":50,"01696m":53,"019768m":50,"023715m":50,"028624m":50,"030432m":50,"033735m":50,"0353m":53,"03752m":50,"039s":1,"045534m":50,"05447m":50,"059839m":50,"061462m":50,"068692m":39,"06941m":50,"076457m":50,"078946m":50,"084025m":50,"08a":41,"094064m":50,"0_132":[23,36],"0_162":36,"0_51":47,"0_60":[7,10],"0m0":1,"0x0":46,"0x19":46,"0x1f5":46,"0x34":46,"0x4b67cf4d":51,"100m":[10,49,50],"100mb":26,"103m":10,"105228m":50,"10m":50,"1102230246251565e":[15,31,53],"113929m":50,"114m":10,"120s":30,"123934m":50,"128518m":39,"1294m":50,"12m":36,"136007m":36,"1365m":[10,36],"14dad5dc":39,"14m":[10,36],"155m":36,"16020s":10,"167786m":50,"167m":10,"168897m":53,"172m":10,"178583m":50,"1820m":[10,36],"182813m":50,"185203m":36,"1b6d3586":7,"200m":53,"202c":19,"20m":36,"223m":10,"232606m":50,"232887m":50,"234537m":50,"234m":10,"23m":36,"240m":[10,36],"241735m":19,"256color":46,"25s":32,"276874m":50,"277392m":53,"280502m":53,"281s":1,"28ea5898":31,"29fafb28":49,"2a139a55":26,"2b085b5d":19,"2bdd9114":23,"2eaa1027":[15,53],"2gb":26,"301ec38b":31,"303498m":53,"311395m":36,"31a6493":49,"327a647b":[29,37],"32m":36,"357742m":50,"3648e874":4,"389634m":50,"39m":10,"3d4eac69":[7,13,23,36,41,44,50],"3fe55d741882":54,"407b":19,"409446m":50,"414993m":53,"41cf53f9":53,"42ac":46,"42d3":19,"43de":19,"45df64fc":17,"46m":10,"472067c7":31,"473f":4,"477882m":53,"47m":10,"48f4":54,"492551m":50,"4a00":54,"4b85612c":31,"4c0df5f8":23,"4de6":20,"4rel":26,"522b4":41,"522b408a":53,"530255m":53,"546aeec1":49,"549379m":50,"572s":1,"587833m":53,"58ef25a97948":20,"590102m":39,"59m":10,"5ae4e5fbab8b4e529ac404f260d4e2d1_1":19,"5b0e2d00":17,"5e69":4,"5level":26,"60bc264d":46,"617465m":50,"6367e55a78a2":54,"65m":36,"66350f69":[7,13,23,36,41],"668m":10,"672m":36,"6849794470754667710l":23,"68b31f0a":7,"6951a712":23,"69ba0f27":49,"69dcaba4":23,"6cd0b6f8":49,"6e51ad67":23,"6fafc4c2":23,"701b744f971e":19,"7127ee12":49,"715367m":36,"716391m":50,"725be470":49,"7f89660b079b":4,"7f9a81e8":31,"838077m":50,"849713m":50,"852594m":50,"85m":36,"883b":19,"8b39":19,"8ecb9cb7c7804d5d92e258b23d5245cc_1":19,"8f7f6ad7bc2d4cb5aa57a530927a95cc_2":19,"94766d3c":19,"955dbd1325334a84972b0f3ac19de4f7_2":19,"961441m":53,"969732m":36,"98aee3ccbefb":19,"9eed":4,"9fa3":20,"\u4e2d\u6587\u6587\u6863":21,"\u53ef\u4ee5\u5148\u7528":26,"\u5982\u679c\u5e94\u7528\u662f\u4f20\u7edf\u7684":26,"\u5e94\u7528":26,"\u6216\u8005spring":26,"\u6765\u67e5\u770b\u5177\u4f53\u7684":26,"\u7136\u540e\u5728\u66f4\u65b0level\u65f6\u6307\u5b9aclassload":26,"\u90a3\u4e48\u9700\u8981\u6307\u5b9aclassload":26,"\u9ed8\u8ba4\u60c5\u51b5\u4e0b":26,"boolean":[2,15,31,53],"break":[17,19],"byte":[1,23,24,38],"case":[2,4,16,21,38],"catch":[36,37],"char":[23,25],"class":[0,2,8,13,15,17,19,21,23,24,26,29,30,31,32,38,41,42,43,44,47,51,53],"default":[1,3,5,10,13,16,17,19,23,25,26,28,30,31,32,34,38,39,40,41,42,44,45,46,49,50,51,52,53,54],"enum":15,"export":33,"final":[2,5,23,36,49],"function":[19,32,36,37,50],"import":[21,23,36,43],"instanceof":51,"int":[23,36,37,41],"jar\u542f\u52a8\u7684\u5e94\u7528":26,"logger\u547d\u4ee4\u4f1a\u5728systemclassloader\u4e0b\u6267\u884c":26,"long":[15,19,23,26,31,44,50,53],"new":[19,23,34,36,37,49,50],"nLine truncated
+9
View File
@@ -218,6 +218,7 @@
<div class="section" id="sm">
<h1>sm<a class="headerlink" href="#sm" title="Permalink to this headline"></a></h1>
<p><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials?language=en&amp;id=command-sm"><code class="docutils literal notranslate"><span class="pre">sm</span></code> online tutorial</a></p>
<blockquote>
<div><p>Search method from the loaded classes.</p>
</div></blockquote>
@@ -248,6 +249,14 @@
<td align="right"><code>[E]</code></td>
<td align="left">turn on regex matching while the default mode is wildcard matching</td>
</tr>
<tr>
<td align="right"><code>[c:]</code></td>
<td align="left">The hash code of the special class's classLoader</td>
</tr>
<tr>
<td align="right"><code>[n:]</code></td>
<td align="left">Maximum number of matching classes with details (100 by default)</td>
</tr>
</tbody>
</table></div>
<div class="section" id="usage">