<liclass="toctree-l1"><aclass="reference external"href="https://github.com/alibaba/arthas/issues?q=label%3Aquestion-answered">Questions and answers</a></li>
<liclass="toctree-l1"><aclass="reference external"href="https://github.com/alibaba/arthas">Fork me at GitHub</a></li>
<p>You can install Arthas with one single line command on Linux, Unix, and Mac. Pls. copy the following command and paste it into the command line, then press <em>Enter</em> to run:</p>
<p>The command above will download the bootstrap script <codeclass="docutils literal notranslate"><spanclass="pre">as.sh</span></code> to the current directory. You can move it the any other place you want, or put its location in <codeclass="docutils literal notranslate"><spanclass="pre">$PATH</span></code>.</p>
<p>You can enter its interactive interface by executing <codeclass="docutils literal notranslate"><spanclass="pre">as.sh</span></code>, or execute <codeclass="docutils literal notranslate"><spanclass="pre">as.sh</span><spanclass="pre">-h</span></code> for more help information.</p>
<p>Download the latest <codeclass="docutils literal notranslate"><spanclass="pre">bin.zip</span></code>, unzip the package, and find <codeclass="docutils literal notranslate"><spanclass="pre">as.bat</span></code> from ‘bin’ directory. For now this script will only take one argument <codeclass="docutils literal notranslate"><spanclass="pre">pid</span></code>, which means you can only diagnose the local Java process. (Welcome any bat script expert to make it better :heart:)</p>
<p>To have a better experience, you can start the Arthas Server locally by executing <codeclass="docutils literal notranslate"><spanclass="pre">as.bat</span><spanclass="pre"><pid></span></code>, then run <codeclass="docutils literal notranslate"><spanclass="pre">./as.sh</span><spanclass="pre"><pid>@<ip>:<por></span></code> in another Linux/Unix/Mac machine.</p>
<blockquote>
<div>If the color is not working as expect on windows, you can use <aclass="reference external"href="https://sourceforge.net/projects/conemu">conemu</a> to get it to work.</div></blockquote>
<spanid="manual-installation"></span><h2>Manual Installation<aclass="headerlink"href="#manual-installation"title="Permalink to this headline">¶</a></h2>
<p>Let’s suppose we are using <codeclass="docutils literal notranslate"><spanclass="pre">/opt/jdk1.8/bin/java</span></code>, then the command should be:</p>
<li><codeclass="docutils literal notranslate"><spanclass="pre">-jar</span><spanclass="pre">/tmp/arthas-packaging/arthas-core.jar</span></code> specifies main entry</li>
<li><codeclass="docutils literal notranslate"><spanclass="pre">-pid</span><spanclass="pre">15146</span></code> specifies the target java process PID</li>
<li><codeclass="docutils literal notranslate"><spanclass="pre">-target-ip</span><spanclass="pre">127.0.0.1</span></code> specifies the IP</li>
<li><codeclass="docutils literal notranslate"><spanclass="pre">-telnet-port</span><spanclass="pre">3658</span><spanclass="pre">-http-port</span><spanclass="pre">8563</span></code> specifies telnet and HTTP ports for remote access</li>
<li><codeclass="docutils literal notranslate"><spanclass="pre">-core</span><spanclass="pre">/tmp/arthas-packaging/arthas-core.jar</span><spanclass="pre">-agent</span><spanclass="pre">/tmp/arthas-packaging/arthas/arthas-agent.jar</span></code> specifies core/agent jar package</li>
<p>If you are running on JDK 1.9 or above,then it’s unncessary to add <codeclass="docutils literal notranslate"><spanclass="pre">tools.jar</span></code> in option <codeclass="docutils literal notranslate"><spanclass="pre">-Xbootclasspath</span></code>.</p>
<p>You can find the logs from <codeclass="docutils literal notranslate"><spanclass="pre">~/logs/arthas/arthas.log</span></code>.</p>
<spanid="offline-help-documentation"></span><h2>Offline Help Documentation<aclass="headerlink"href="#offline-help-documentation"title="Permalink to this headline">¶</a></h2>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.