Arthas阿尔萨斯
在线文档
安装与启动
在线安装
-
下载
$ wget --no-check-certificate https://alibaba.github.io/arthas/arthas-boot.jar
# github比较慢的话可以使用
$ wget --no-check-certificate https://arthas.gitee.io/arthas-boot.jar
-
启动
$ java -jar arthas-boot.jar
# 如果下载速度比较慢,可以使用aliyun的镜像
$ java -jar arthas-boot.jar --repo-mirror aliyun --use-http
JSON格式查看结果
# json-format 是否支持json化的输出,默认false
$ options json-format true
常用命令
trace 分析性能
方法内部调用路径,并输出方法路径上的每个节点上耗时
-
使用例子
-
基本使用
# trace 类名 方法名
$ trace bp.ScheduleBP queryWebSchedule
-
过滤掉jdk的函数
# -j 过滤掉jdk的函数耗时
-