1.gitlab地址
git 地址:https://github.com/jvm-profiling-tools/async-profiler
2.解压包
tar xvf async-profiler-2.9-linux-x64.tar.gz
3.性能分析
a. cpu 性能分析
数据采集
#旧版本
./profiler.sh -d 60 -o collapsed -f collapsed2.txt 1
#新版本
./profiler.sh -d 60 -f profile.html 1
问题分析
问题1:
[WARN] perf_event mmap failed: Operation not permitted
解决办法:
sudo sh -c 'echo -1 >/proc/sys/kernel/perf_event_paranoid'
sudo sh -c 'echo 0 > /proc/sys/kernel/kptr_restrict'
参考 :https://itqna.net/questions/57361/perf-record-mpi-application
火焰图
./flamegraph.pl --colors=java collapsed2.txt > flamegraph.svg
b.mem 性能分析
./profiler.sh -d 60 -e alloc -f 1-alloc.html 1
java火焰图收集
运维那些事2023-10-20 17:22
相关推荐
圆山猫3 小时前
[Virtualization](四):Linux KVM/RISC-V 的 vCPU 运行路径微学AI4 小时前
一根针指向所有方向:挂谷猜想对 LLM Agent 技能-记忆架构的启示城管不管4 小时前
ReAct、Plan-and-Execute、Reflection 三大智能 Agent 范式核心区别IT小白杨4 小时前
从环境制备到自动化工作流:多账号运营的工程化架构拆解豆瓣鸡4 小时前
算法日记 - Day3萧瑟余晖4 小时前
Java深入解析篇九之NIO详解韭菜炒鸡肝天5 小时前
VTK开发笔记(一):VTK介绍,Qt..+VSx+VTK.编译The Chosen One9855 小时前
高进度算法模板速记(待完善)Aaron - Wistron5 小时前
Web API C# (Furion版)带 单元测试Dxy12393102166 小时前
Python项目打包成EXE完整教程(PyInstaller实战避坑)