jvm 烈焰图生成

1. 下载压缩包: https://github.com/jvm-profiling-tools/async-profiler

2. 配置探针: 

java -agentpath:/root/build/libasyncProfiler.so=start,svg,file=profile.svg -jar spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar

3. 找到profile.svg, 用浏览器打开

posted @ 2021-01-17 22:23  软件匠工  阅读(107)  评论(0编辑  收藏  举报