
Arthas
文章平均质量分 68
qq_37160341
这个作者很懒,什么都没留下…
展开
-
Arthas结合Spring容器 线上排查Tips
启动arthasjava -jar arthas-boot.jar记录RequestMappingHandlerAdapter#invokeHandlerMethod的请求,获取indextt -t org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter invokeHandlerMethod获取SpringContexttt -i 第二步的index -w '#ac=target.原创 2021-03-30 09:59:02 · 319 阅读 · 0 评论 -
Arthas JVM相关命令
dashboard:当前系统的实时数据面板输入Q或者Ctrl+C可以退出dashboard命令。-i 400ms 每次执行间隔时间(ms),默认5000ms-n 执行多少次dashboard,不指定的话会一直刷新JVM内部线程Java 8之后支持获取JVM内部线程CPU时间,这些线程只有名称和CPU时间,没有ID及状态等信息(显示ID为-1)。 通过内部线程可以观测到JVM活动,如GC、JIT编译等占用CPU情况,方便了解JVM整体运行状况。当JVM 堆(heap...原创 2021-03-06 21:30:46 · 399 阅读 · 0 评论 -
Arthas 基础命令
命令help:查看命令帮助信息help 其他命令/其他命令 [-h/--help]:查看其他命令的帮助文档cat:打印文件内容,和linux里的cat命令类似--encoding <value> :文件编码-h, --help:获取帮助文档-M, --sizeLimit <value> : 制定大小限制(默认128 * 1024,最大值 8 * 1024 * 1024)<files>:文件echo:打印参数,和l..原创 2021-03-06 21:27:43 · 836 阅读 · 0 评论 -
Arthas 安装/卸载
官方帮助文档https://arthas.aliyun.com/doc/install-detail.html下载arthas方式一:curl -O https://arthas.aliyun.com/arthas-boot.jar方式二:https://arthas.aliyun.com/doc/download.html启动 arthasjava -jar arthas-boot.jar选择一个需要诊断的Java Application的..原创 2021-03-06 21:23:07 · 349 阅读 · 0 评论