Arthas
# 指定端口启动
./as.sh --telnet-port 9998# 监测单个方法执行时间
trace com.rhdk.contractservice.contract.service.AbstractContractService doHibernateValidate -n 10
# 监测多个方法执行时间
trace -n 10 -E com.rhdk.contractservice.contract.service.AbstractContractService|com.rhdk.contractservice.contract.service.impl.PurchaseBusinessService update
trace -n 10 -E com.rhdk.contractservice.contract.service.AbstractContractService|com.rhdk.contractservice.contract.service.impl.PurchaseBusinessService|com.rhdk.contractservice.feign.RemoteUserFeignResolver doUpdateContract|getOrgName
# 监测不跳过jdk的方法
trace --skipJDKMethod false demo.MathGame run
# 监测大于10ms的方法
trace demo.MathGame run '#cost > 10'
# 监测排除指定的类
trace javax.servlet.Filter * --exclude-class-pattern com.demo.TestFilter最后更新于