1 、下载并安装 (运行)
curl -L "https://arthas.aliyun.com/as.sh" >as.sh; chmod a+x as.sh; ./as.sh
2 、会列出所有的Java进程,用户可以选择需要链入的目标进程。
快速退出某个命令:Q或者Ctrl+C
退出Arthas: exit或者quit, 退出当前session,Arthas server还在目标进程中运行。
彻底退出: stop. 用完一定要stop哦,避免Arthas server依然运行占用系统资源,否则下次执行还是当前 进程。
retransform /data/testtomcat/webapps/GameHotWeb/com/controller/Test111Controller.class