import{_ as a,o as s,c as e,d as n}from"./app.391b0e4e.js";const t={},r=n(`
./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 \\ ' .-'
| .-. || '--'.' | | | .--. || .-. |\`. \`-.
| | | || |\\ \\ | | | | | || | | |.-' |
\`--' \`--'\`--' '--' \`--' \`--' \`--'\`--' \`--'\`-----'
$
Startup script is as follows:
./as.sh <PID>[@IP:PORT]
127.0.0.1
. Arthas allows multiple users to access simultaneously without interfering with each other.If IP and PORT are not specified, then the default values are 127.0.0.1 and 3658
./as.sh 12345
Equivalent to:
./as.sh 12356@127.0.0.1:3658
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
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
Right now as.bat
script supports one parameter only, which is: pid
as.bat <pid>