Download Arthas-boot.jar , and then use the Java -jar start way:
-The curl https://alibaba.github.io/arthas/arthas-boot.jar
|
|
java -jar arthas-boot.jar
|
- The program requires the user to perform the target process and have the same rights. For example, with
admin
the user to perform: or .sudo su admin && java -jar arthas-boot.jar
sudo -u admin -EH java -jar arthas-boot.jar
- If you do not attach the target process, you can view
~/logs/arthas/
the log directory. - If the download speed is slower, you can use aliyun mirroring:
java -jar arthas-boot.jar --repo-mirror aliyun --use-http
java -jar arthas-boot.jar -h
Print more parameter information.
View high cpu usage of the three threads similar top -H, but can see the stack information, without having to first find and then find the thread id thread stack from jstack
thread -n 3
A method of tracking the number of call time [display]
trace package name. class name method name [-n number]
Performing the method for acquiring parameters Parameters first few} {-n 1 then acquires the data output only a]
# $ Watch package name. Class name method name params [0] .get (0) .age -n 1
The implementation of the system environment variables
#sysprop and sysenv
# You can view all system variables sysprop, you can also set up a system variable.
# Similarly, you can view all of the operating system environment variables by sysenv, you can also view set an environment variable.jvm
# Direct output current by a variety of information jvm jvm command.