软件的性能分析,往往需要查看 CPU 耗时,了解瓶颈在哪里。(flame graph)是性能分析的利器。本文介绍它的基本用法。一、perf 命令让我们从 perf 命令(performance 的缩写)讲起,它是 Linux 系统原生提供的性能分析工具,会返回 CPU 正在执行的函数名以及调用栈(stack)。通常,它的执行频率是 99Hz(每秒99次),如果99次都返回同一...
1 About Java Flight Recorder============================Note:Java Flight Recorder requires a commercial license for use in production. To learn more about commercial features and how to enable th...
Swiss Java Knife (SJK)======================SJK is a command line tool for JVM diagnostic, troubleshooting and profiling.SJK exploits standard diagnostic interfaces of JVM (such as JMX, JVM att...
Interactive Flame Graph overview================================Flame graph could be generated with sjk using `sjk flame f FILE o report.html` command.Result would be a self contained html file...
sjk 是一个用来分析jvm 的cli 工具(也支持代码引用),sjk 支持的分析方式比较多,强大,同时可以生成火焰图(以前有简单说明 使用jfr+sjk 生成火焰图的方式)支持的分析方式 ttop show thread CPU usage for JVM jps list JVM processes hh head histogram gc GC ...
最新评论