mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-12 22:41:26 +00:00
update doc
This commit is contained in:
1 parent
8400c4ebe3
commit
19d9a8184e
136 files changed
+339
-277
No files matched your search
+7
-5
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas Async Jobs — Arthas 3.2.0 documentation</title>
|
||||
<title>Arthas Async Jobs — Arthas 3.3.2 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.2.0
|
||||
3.3.2
|
||||
</div>
|
||||
|
||||
|
||||
@@ -134,6 +134,7 @@
|
||||
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas">Fork me at GitHub</a></li>
|
||||
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md#">Compile and debug/CONTRIBUTING</a></li>
|
||||
<li class="toctree-l1"><a class="reference external" href="https://github.com/alibaba/arthas/releases">Release Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="contact-us.html">Contact us</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -235,8 +236,8 @@
|
||||
<h2>3. Suspend and cancel job<a class="headerlink" href="#suspend-and-cancel-job" title="Permalink to this headline">¶</a></h2>
|
||||
<p>When the job is executing in the foreground, for example, directly executing the command <code class="docutils literal notranslate"><span class="pre">trace</span> <span class="pre">Test</span> <span class="pre">t</span></code>, or executing the background job command <code class="docutils literal notranslate"><span class="pre">trace</span> <span class="pre">Test</span> <span class="pre">t</span> <span class="pre">&</span></code>, then putting the job back to the foreground via <code class="docutils literal notranslate"><span class="pre">fg</span></code> command, the console cannot continue to execute other command, but can receive and process the following keyboard events:</p>
|
||||
<ul class="simple">
|
||||
<li><p>‘ctrl + z’: Suspend the job, the job status will change to <code class="docutils literal notranslate"><span class="pre">Stopped</span></code>, and the job can be restarted by <code class="docutils literal notranslate"><span class="pre">bg</span> <span class="pre"><job-id></span></code> or <code class="docutils literal notranslate"><span class="pre">fg</span> <span class="pre"><job-id></span></code></p></li>
|
||||
<li><p>‘ctrl + c’: Stop the job</p></li>
|
||||
<li><p>‘ctrl + z’: Suspends the job, the job status will change to <code class="docutils literal notranslate"><span class="pre">Stopped</span></code>, and the job can be restarted by <code class="docutils literal notranslate"><span class="pre">bg</span> <span class="pre"><job-id></span></code> or <code class="docutils literal notranslate"><span class="pre">fg</span> <span class="pre"><job-id></span></code></p></li>
|
||||
<li><p>‘ctrl + c’: Stops the job</p></li>
|
||||
<li><p>‘ctrl + d’: According to linux semantics this should lead to exit the terminal, right now Arthas has not implemented this yet, therefore simply ignore this keystroke.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -254,7 +255,7 @@
|
||||
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ trace Test t >> test.out &</pre></div>
|
||||
</div>
|
||||
<p>The trace command will be running in the background and the output will be redirect to <code class="docutils literal notranslate"><span class="pre">~/logs/arthas-cache/test.out</span></code>. You can continue to execute other commands in the console, at the same time, you can also examine the execution result from the output file.</p>
|
||||
<p>When connect to a remote Arthas server, you may not be able to view the output file on the remote machine. In this case, Arthas also supports automatically redirecting the output to the local cache file. Examples are as follows:</p>
|
||||
<p>When connected to a remote Arthas server, you may not be able to view the output file on the remote machine. In this case, Arthas also supports automatically redirecting the output to the local cache file. Examples are as follows:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ trace Test t >> &
|
||||
job id : 2
|
||||
cache location : /Users/gehui/logs/arthas-cache/28198/2</pre></div>
|
||||
@@ -270,6 +271,7 @@ cache location : /Users/gehui/logs/arthas-cache/28198/2</pre></div>
|
||||
<ul class="simple">
|
||||
<li><p>Support up to 8 commands at the same time to redirect the output to the log files.</p></li>
|
||||
<li><p>Do not open too many background jobs at the same time to avoid negative performance effect to the target JVM.</p></li>
|
||||
<li><p>If you do not want to stop the Arthas service and continue to perform background tasks, you can exit the Arthas console by executing <code class="docutils literal notranslate"><span class="pre">quit</span></code> command (<code class="docutils literal notranslate"><span class="pre">stop</span></code> command will stop the Arthas service)</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user