用户文档:http://arthas.gitee.io/
注:该文档包含基本命令使用,测试demo,源码相关链接
在我们自己的项目中使用arthas主要完成两个步骤
1.我们的项目将作为arthas客户端,做以下引入配置
引入arthas
<dependency>
<groupId>com.taobao.arthas</groupId>
<artifactId>arthas-spring-boot-starter</artifactId>
<version>3.4.5</version>
</dependency>
arthas.agent-id=hsehdfsfghhwertyfad
## 使用tunnel-server所在服务器ip
arthas.tunnel-server=ws://127.0.0.1:7777/ws
##配置在要测试应用中
2.部署arthas服务端
部署arthas-tunnel-server服务(官网下载arthas-all,使用arthas-tunnel-server模块)
登录到tunnel-server上,
连接配置的arthas.tunnel-server=ws://127.0.0.1:7777/ws
使用arthas.agent-id=hsehdfsfghhwertyfad即可进入到我们要检查的服务中