发布于 

how to use arthas

how to use arthas

Trace

## 根据多个类的调用耗时
trace -E --skipJDKMethod false com.netease.gcom.lettuce.core.service.train.TrainQueryService|com.netease.gcom.lettuce.core.service.train.TrainInnerService getTrain|setActivityConfigs -n 1

Watch

image-20230227143411049

## 查看某个方法的请求参数、当前this的参数、结果返回值、异常信息
watch com.noah.starter.demo.web.arthas.ArthasWatchUse methodForWatch '{params, target, returnObj, throwExp}' -e -x 4 -n 4