Jvm Java性能映射代理“;找不到代理“加载函数”;

Jvm Java性能映射代理“;找不到代理“加载函数”;,jvm,perf,Jvm,Perf,在oracle jdk1.8.0_251上,我在尝试使用perf工具帮助程序库“libperfmap.so”时出错() 错误消息的另一个变体: Error occurred during initialization of VM Could not find Agent_OnLoad function in the agent library: /home/username/Documents/lowlatency/xxx/JINT/perf-map-agent/out/libperfmap.s

在oracle jdk1.8.0_251上,我在尝试使用perf工具帮助程序库“libperfmap.so”时出错()

错误消息的另一个变体:

Error occurred during initialization of VM
Could not find Agent_OnLoad function in the agent library: /home/username/Documents/lowlatency/xxx/JINT/perf-map-agent/out/libperfmap.so

perf-map-agent
当前不支持加载为
-agentpath
。有关此主题的先前讨论,请参见

还有两个pull请求(,)添加了
Agent\u OnLoad
功能;你可以试一试


同时,我可以推荐一个替代方案。它支持
-agentpath
模式和运行时附加。它还支持perf事件,并在没有第三方软件的情况下即时生成火焰图。

您是自己编译
perf-map-agent
还是使用预编译的二进制文件?是的。使用java 1.8.0_251编译,其大于1.8.60。
Error occurred during initialization of VM
Could not find Agent_OnLoad function in the agent library: /home/username/Documents/lowlatency/xxx/JINT/perf-map-agent/out/libperfmap.so