mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-09 08:40:21 +00:00
update doc
This commit is contained in:
1 parent
da5f4a397d
commit
8324d32e98
11 files changed
+76
-2
No files matched your search
@@ -226,6 +226,7 @@
|
||||
|
||||
<div class="section" id="classloader">
|
||||
<h1>classloader<a class="headerlink" href="#classloader" title="Permalink to this headline">¶</a></h1>
|
||||
<p><a class="reference external" href="https://arthas.aliyun.com/doc/arthas-tutorials?language=en&id=command-classloader"><code class="docutils literal notranslate"><span class="pre">classloader</span></code> online tutorial</a></p>
|
||||
<p>View hierarchy, urls and classes-loading info for the class-loaders.</p>
|
||||
<p><code class="docutils literal notranslate"><span class="pre">classloader</span></code> can search and print out the URLs for a specified resource from one particular classloader. It is quite handy when analyzing <code class="docutils literal notranslate"><span class="pre">ResourceNotFoundException</span></code>.</p>
|
||||
<div class="section" id="options">
|
||||
@@ -255,6 +256,10 @@
|
||||
<td align="left">print classloader's hashcode</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><code>[classLoaderClass:]</code></td>
|
||||
<td align="left">The class name of the ClassLoader that executes the expression.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><code>[c: r:]</code></td>
|
||||
<td align="left">using ClassLoader to search resource</td>
|
||||
</tr>
|
||||
@@ -305,6 +310,14 @@ Affect(row-cnt:4) cost in 3 ms.</pre></div>
|
||||
file:/private/tmp/arthas-demo.jar
|
||||
file:/Users/hengyunabc/.arthas/lib/3.0.5/arthas/arthas-agent.jar
|
||||
|
||||
Affect(row-cnt:9) cost in 3 ms.</pre></div>
|
||||
</div>
|
||||
<p>Note that the hashcode changes, you need to check the current ClassLoader information first, and extract the hashcode corresponding to the ClassLoader.</p>
|
||||
<p>For ClassLoader with only unique instance, it can be specified by class name, which is more convenient to use:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ classloader --classLoaderClass sun.misc.Launcher$AppClassLoader
|
||||
file:/private/tmp/arthas-demo.jar
|
||||
file:/Users/hengyunabc/.arthas/lib/3.0.5/arthas/arthas-agent.jar
|
||||
|
||||
Affect(row-cnt:9) cost in 3 ms.</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user