离线安装arthas
离线安装arthas
先在可以上网的机器上安装arthas
D:\test>java -jar arthas-boot.jar
[INFO] arthas-boot version: 3.5.0
安装的过程就是下载相关的jar包
win10的目录是: C:\Users\Administrator\.arthas\lib
linux的目录是:/home/tomcat/.arthas/lib
(当前用户是tomcat
)
[tomcat@localhost arthas]$ pwd
/home/tomcat/.arthas/lib/3.5.0/arthas
[tomcat@localhost arthas]$ ls
arthas-agent.jar arthas-boot.jar arthas-client.jar arthas-core.jar arthas-demo.jar arthas.properties arthas-spy.jar as.bat as-service.bat as.sh async-profiler install-local.sh logback.xml
# 创建软连接到 /home/tomcat/ 方便使用
[tomcat@localhost arthas]$ ln -s /home/tomcat/.arthas/lib/3.5.0/arthas/arthas-boot.jar /home/tomcat/
[tomcat@localhost arthas]$ cd
[tomcat@localhost ~]$ pwd
/home/tomcat
[tomcat@localhost ~]$ java -jar arthas-boot.jar
[INFO] arthas-boot version: 3.5.0
[INFO] Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER.
* [1]: 21718 org.apache.catalina.startup.Bootstrap
还没有评论,来说两句吧...