Installation and use of Arthas

Download on Arthas official website: https://arthas.aliyun.com/doc/download.html
If github cannot be opened, you can directly enter the address to download: https://alibaba.github.io/arthas/arthas-boot.jar to
download arthas -boot.jar, then upload it to the linux server, there should be a springboot.jar project uploaded in advance in your linux server, start this project first, and then start arthas-boot.jar to monitor.
Here I will use the official demo directly for demonstration.
Upload this compressed package to the linux arthas directory for decompression and
Insert picture description here
decompression

unzip arthas-packaging-3.5.0-bin.zip

Insert picture description here

Start method one

Start a demo project first, otherwise an error will be reported

java -jar arthas-demo.jar

Insert picture description here

Restart arthas-boot.jar

java -jar arthas-boot.jar

Insert picture description here

Start method two

Select java process PID at runtime

jsp

View java process pid

java -jar arthas-boot,jar [PID]

Finally, you can use exit to exit the arthas client

Guess you like

Origin blog.csdn.net/u014496893/article/details/114930751