mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-21 15:07:19 +00:00
update doc
This commit is contained in:
1 parent
a12f090ab7
commit
2f5ab892a6
134 files changed
+1373
-543
No files matched your search
+5
-65
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Web Console — Arthas 3.4.3 documentation</title>
|
||||
<title>Web Console — Arthas ${revision} documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.4.3
|
||||
${revision}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -107,14 +107,10 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="commands.html">Commands</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">WebConsole</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#connect-arthas-through-the-browser">Connect arthas through the browser</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#connect-remote-arthas-through-arthas-tunnel-server">Connect remote arthas through arthas tunnel server</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#download-and-deploy-arthas-tunnel-server">Download and deploy arthas tunnel server</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#connecting-to-the-tunnel-server-when-starting-arthas">Connecting to the tunnel server when starting arthas</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#how-arthas-tunnel-server-works">How arthas tunnel server works</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#connect-remote-arthas-through-arthas-tunnel-server">Connect remote arthas through arthas tunnel server</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="tunnel.html">Arthas Tunnel</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="http-api.html">Http API</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="docker.html">Docker</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="spring-boot-starter.html">Arthas Spring Boot Starter</a></li>
|
||||
@@ -208,63 +204,7 @@
|
||||
</div>
|
||||
<div class="section" id="connect-remote-arthas-through-arthas-tunnel-server">
|
||||
<h2>Connect remote arthas through arthas tunnel server<a class="headerlink" href="#connect-remote-arthas-through-arthas-tunnel-server" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="section" id="download-and-deploy-arthas-tunnel-server">
|
||||
<h3>Download and deploy arthas tunnel server<a class="headerlink" href="#download-and-deploy-arthas-tunnel-server" title="Permalink to this headline">¶</a></h3>
|
||||
<p><a class="reference external" href="https://github.com/alibaba/arthas/releases">https://github.com/alibaba/arthas/releases</a></p>
|
||||
<p>Arthas tunnel server is a spring boot fat jar application, start with the <code class="docutils literal notranslate"><span class="pre">java</span> <span class="pre">-jar</span></code> command:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">java -jar arthas-tunnel-server.jar</pre></div>
|
||||
</div>
|
||||
<p>By default, the web port of the arthas tunnel server is <code class="docutils literal notranslate"><span class="pre">8080</span></code>, and the port connected by the arthas agent is <code class="docutils literal notranslate"><span class="pre">7777</span></code>.</p>
|
||||
<p>Once started, you can go to <a class="reference external" href="http://127.0.0.1:8080/">http://127.0.0.1:8080/</a> and connect to the registered arthas agent via <code class="docutils literal notranslate"><span class="pre">agentId</span></code>.</p>
|
||||
<p>Through Spring Boot’s Endpoint, you can view the specific connection information: <a class="reference external" href="http://127.0.0.1:8080/actuator/arthas">http://127.0.0.1:8080/actuator/arthas</a>, the login user name is <code class="docutils literal notranslate"><span class="pre">arthas</span></code>, and the password can be found in the log of arthas tunnel server, for example:</p>
|
||||
<div class="highlight-default notranslate"><pre class="literal-block">32851 [main] INFO o.s.b.a.s.s.UserDetailsServiceAutoConfiguration
|
||||
|
||||
Using generated security password: f1dca050-3777-48f4-a577-6367e55a78a2</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="connecting-to-the-tunnel-server-when-starting-arthas">
|
||||
<h3>Connecting to the tunnel server when starting arthas<a class="headerlink" href="#connecting-to-the-tunnel-server-when-starting-arthas" title="Permalink to this headline">¶</a></h3>
|
||||
<p>When starting arthas, you can use the <code class="docutils literal notranslate"><span class="pre">--tunnel-server</span></code> parameter, for example:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">as.sh --tunnel-server 'ws://127.0.0.1:7777/ws'</pre></div>
|
||||
</div>
|
||||
<p>You can also use the following test address (not guaranteed to be available all the time):</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">as.sh --tunnel-server 'ws://47.75.156.201:80/ws'</pre></div>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>You can specify the agentId by the <code class="docutils literal notranslate"><span class="pre">--agent-id</span></code> parameter. By default, a random ID is generated.</p></li>
|
||||
</ul>
|
||||
<p>After Arthas attach succeeds, the agentId will be printed, such as:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash"> ,---. ,------. ,--------.,--. ,--. ,---. ,---.
|
||||
/ O \ | .--. ''--. .--'| '--' | / O \ ' .-'
|
||||
| .-. || '--'.' | | | .--. || .-. |`. `-.
|
||||
| | | || |\ \ | | | | | || | | |.-' |
|
||||
`--' `--'`--' '--' `--' `--' `--'`--' `--'`-----'
|
||||
|
||||
wiki https://arthas.aliyun.com/doc
|
||||
tutorials https://arthas.aliyun.com/doc/arthas-tutorials.html
|
||||
version 3.1.2
|
||||
pid 86183
|
||||
time 2019-08-30 15:40:53
|
||||
id URJZ5L48RPBR2ALI5K4V</pre></div>
|
||||
</div>
|
||||
<p>If the connection is not connected to the tunnel server at startup, you can also obtain the agentId through the <code class="docutils literal notranslate"><span class="pre">session</span></code> command after reconnection succeeds:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">[arthas@86183]$ session
|
||||
Name Value
|
||||
-----------------------------------------------------
|
||||
JAVA_PID 86183
|
||||
SESSION_ID f7273eb5-e7b0-4a00-bc5b-3fe55d741882
|
||||
AGENT_ID URJZ5L48RPBR2ALI5K4V
|
||||
TUNNEL_SERVER ws://47.75.156.201:80/ws</pre></div>
|
||||
</div>
|
||||
<p>For the above example, go to <a class="reference external" href="http://47.75.156.201/arthas/?port=80">http://47.75.156.201/arthas/?port=80</a> in the browser and input the <code class="docutils literal notranslate"><span class="pre">agentId</span></code> to connect to arthas on remote machine.</p>
|
||||
<p><img alt="_images/arthas-tunnel-server.png" src="_images/arthas-tunnel-server.png" /></p>
|
||||
</div>
|
||||
<div class="section" id="how-arthas-tunnel-server-works">
|
||||
<h3>How arthas tunnel server works<a class="headerlink" href="#how-arthas-tunnel-server-works" title="Permalink to this headline">¶</a></h3>
|
||||
<div class="highlight-default notranslate"><pre class="literal-block">browser <-> arthas tunnel server <-> arthas tunnel client <-> arthas agent</pre>
|
||||
</div>
|
||||
<p><a class="reference external" href="https://github.com/alibaba/arthas/blob/master/tunnel-server/README.md#">tunnel-server/README.md</a></p>
|
||||
</div>
|
||||
<p><a class="reference internal" href="tunnel.html"><span class="doc">Arthas Tunnel</span></a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user