import{_ as a,o as s,c as e,d as n}from"./app.391b0e4e.js";const t={},r=n(`

Start Arthas

Interactive Mode

./as.sh
\u279C  bin git:(develop) \u2717 ./as.sh
Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER.
  [1]: 3088 org.jetbrains.idea.maven.server.RemoteMavenServer
* [2]: 12872 org.apache.catalina.startup.Bootstrap
  [3]: 2455
Attaching to 12872...
  ,---.  ,------. ,--------.,--.  ,--.  ,---.   ,---.
 /  O  \\ |  .--. ''--.  .--'|  '--'  | /  O  \\ '   .-'
|  .-.  ||  '--'.'   |  |   |  .--.  ||  .-.  |\`.  \`-.
|  | |  ||  |\\  \\    |  |   |  |  |  ||  | |  |.-'    |
\`--' \`--'\`--' '--'   \`--'   \`--'  \`--'\`--' \`--'\`-----'
$

Non-Interactive Mode

Startup script is as follows:

./as.sh <PID>[@IP:PORT]

Parameter Description

Sample

Remote Diagnosis

After starting Arthas Server on the target Java process, users can use telnet connect to the remote Arthas Server, for example\uFF1A

telnet 192.168.1.119 3658

sudo Support

Usually online environment will only grant users privilege as low as possible, instead, all advanced operations are through sudo-list. Since as.sh script takes into account the current effective user, it is possible to run the script in the other rule, by specifying -H option like this:

sudo -u admin -H ./as.sh 12345

Windows Support

Right now as.bat script supports one parameter only, which is: pid

as.bat <pid>
`,20),o=[r];function i(p,l){return s(),e("div",null,o)}var d=a(t,[["render",i],["__file","start-arthas.html.vue"]]);export{d as default};