sjk 是一个用来分析 jvm 的 cli 工具 (也支持代码引用),sjk 支持的分析方式比较多, 强大, 同时可以生成火焰图 (以前有简单说明
使用 jfr+sjk 生成火焰图的方式)
支持的分析方式
- ttop - show thread CPU usage for JVM
- jps - list JVM processes
- hh - head histogram
- gc - GC tracker
- mx - generic JMX invocation
- stcap - thread dump sampler
- ssa - thread dump file analyzer
- flame - generate html based flame graph from thread sampling data
- stcpy - copy tool for "dense" thread dump files
- dexp - extract metrics form compressed dump into tabular format
- mprx - expose JMX port for remote connection on target JVM process
说明
详细的命令使用可以参考 GitHub 文档
参考资料
https://github.com/aragozin/jvm-tools
来源: http://www.bubuko.com/infodetail-3365080.html