- 依赖
<dependency> <groupId>com.taobao.arthas</groupId> <artifactId>arthas-spring-boot-starter</artifactId> <version>3.6.3</version> </dependency>
- 插件IDEA
- 启动SpringBoot
- 访问Arthas:http://127.0.0.1:8563/
- 诊断方法:
- 粘贴第五步复制的命令并执行
- 使用postman或页面访问接口后,Arthas会打印出整个过程的耗时情况
- 查看面板:
dashboard
查看线程:thread
ID- 查看cpu占用前三的线程:thread -n 3
SpringBoot集成arthas进行诊断分析
于 2022-07-26 11:53:49 首次发布