<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>
<liclass="toctree-l1"><aclass="reference external"href="https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md#">Compile and debug/CONTRIBUTING</a></li>
<h1>Arthas Properties<aclass="headerlink"href="#arthas-properties"title="Permalink to this headline">¶</a></h1>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">arthas.properties</span></code> file is in the arthas directory.</p>
<ulclass="simple">
<li><p>If it is automatically downloaded arthas, the directory is under <codeclass="docutils literal notranslate"><spanclass="pre">~/.arthas/lib/3.x.x/arthas/</span></code></p></li>
<li><p>If it is a downloaded complete package, under the decompression directory of arthas</p></li>
<li><p>If the configuration of <codeclass="docutils literal notranslate"><spanclass="pre">arthas.telnetPort</span></code> is -1, the telnet port will not be listened. <codeclass="docutils literal notranslate"><spanclass="pre">arthas.httpPort</span></code> is similar.</p></li>
<li><p>If you configure <codeclass="docutils literal notranslate"><spanclass="pre">arthas.telnetPort</span></code> to 0, then random listen telnet port, you can find the random port log in <codeclass="docutils literal notranslate"><spanclass="pre">~/logs/arthas/arthas.log</span></code>. <codeclass="docutils literal notranslate"><spanclass="pre">arthas.httpPort</span></code> is similar.</p></li>
</ul>
<blockquote>
<div><p>If you want to prevent multiple arthas port conflicts on a machine. It can be configured as a random port, or configured as -1, and use arthas through the tunnel server.</p>
</div></blockquote>
</div>
<divclass="section"id="configured-order">
<h2>Configured order<aclass="headerlink"href="#configured-order"title="Permalink to this headline">¶</a></h2>
<p>The order of configuration is: command line parameters > System Env > System Properties > arthas.properties.</p>
<p>such as:</p>
<ulclass="simple">
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">./as.sh</span><spanclass="pre">--telnet-port</span><spanclass="pre">9999</span></code> command line configuration will overwrite the default value <codeclass="docutils literal notranslate"><spanclass="pre">arthas.telnetPort=3658</span></code> in <codeclass="docutils literal notranslate"><spanclass="pre">arthas.properties</span></code>.</p></li>
<li><p>If the application itself sets system properties <codeclass="docutils literal notranslate"><spanclass="pre">arthas.telnetPort=8888</span></code>, it will override the default value <codeclass="docutils literal notranslate"><spanclass="pre">arthas.telnetPort=3658</span></code> in <codeclass="docutils literal notranslate"><spanclass="pre">arthas.properties</span></code>.</p></li>
</ul>
<p>If you want <codeclass="docutils literal notranslate"><spanclass="pre">arthas.properties</span></code> to have the highest order, you can configure <codeclass="docutils literal notranslate"><spanclass="pre">arthas.config.overrideAll=true</span></code>.</p>
<ahref="agent.html"class="btn btn-neutral float-right"title="Start as a Java Agent"accesskey="n"rel="next">Next <spanclass="fa fa-arrow-circle-right"></span></a>
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>.
</footer>
</div>
</div>
</section>
</div>
<scripttype="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
<divclass="github-fork-ribbon-wrapper right">
<divclass="github-fork-ribbon">
<ahref="https://github.com/alibaba/arthas"target="_blank">Fork me at GitHub</a>