```shell
java -jar /data/Jvmtool/arthas-boot.jar $(ps aux | grep halo | grep -v grep | awk '{print $2}')
trace xx *
watch xx '{params, target, returnObj}' -x 2
watch org.apache.commons.lang.StringUtils isBlank '{params, target, returnObj}' -x 2
本地调试:ps aux | grep grep | grep "ideas/play"
java -jar /Users/chinams/ldb/arthas/arthas-boot.jar $(ps aux | grep "ideas/play" | grep -v grep | awk '{print $2}')
watch -f org.apache.commons.lang.StringUtils isBlank
watch org.apache.commons.lang.StringUtils isBlank '{params, target, returnObj}' -x 3
watch -bf *StringUtils isBlank params
watch *StringUtils isBlank params[0]
watch *StringUtils isBlank params[0] params[0].length==1
watch *StringUtils isBlank params '#cost>100'
watch -E -b org\.apache\.commons\.lang\.StringUtils isBlank params[0]
watch javax.servlet.Filter * --exclude-class-pattern com.demo.TestFilter
```
Arthas常用命令
Administrator
27
2024-08-07