Java程序CPU异常监控bash脚本
type
status
date
slug
summary
tags
category
icon
password
契机
最近线上Java程序CPU异常,暂时没有好的解决办法,故写个bash脚本去监听
思路
成品

运行命令
主脚本:monitor.sh
副脚本:arthas-profiler.sh
总结
- arthas无法使用sleep命令
- dump文件很难分析cpu占用,主要靠火焰图,top,dashboard
- 这里是瞬间cpu占用,60秒一次一直扫
写到最后
Last update: 2024-04-05