arthas 使用记录

1、下载 wget https://alibaba.github.io/arthas/arthas-boot.jar
java -jar arthas-boot.jar

2、运行java -jar arthas-boot.jar

3、选择对应系统的进程id,attach到进程

4、查看对应类的源代码:jad com.aistarfish.damo.web.lion.rest.elpis.ElpisUserController

5、查看对应的入参和返回值:watch com.aistarfish.damo.web.lion.rest.elpis.ElpisUserController getUserList "{params,returnObj}" -x 2

6、stop/shutdown 关闭 arthas

返回值如果是集合类型,数据暂时无法展示

扫描二维码关注公众号,回复: 8045852 查看本文章

猜你喜欢

转载自www.cnblogs.com/yipihema/p/11968982.html