jvm-profiling-tools / perf-map-agent

A java agent to generate method mappings to use with the linux `perf` tool
GNU General Public License v2.0
1.65k stars 260 forks source link

Failed to load agent library #16

Closed jlming6 closed 9 years ago

jlming6 commented 9 years ago

Hi guys,

I used Java(TM) SE Runtime Environment (build 1.8.0_60-ea-b25) and run ./create-java-perf-map.sh $pid

got:

Exception in thread "main" com.sun.tools.attach.AgentLoadException: Failed to load agent library at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:224) at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:58) at sun.tools.attach.HotSpotVirtualMachine.loadAgentPath(HotSpotVirtualMachine.java:88) at net.virtualvoid.perf.AttachOnce.loadAgent(AttachOnce.java:39) at net.virtualvoid.perf.AttachOnce.main(AttachOnce.java:33)

Any idea?

Thanks so much.

lamplet commented 7 years ago

I got the same error. Because libperfmap.so is 64 bit, and java is 32 bit. I remake a 32 bit so, then the error is gone.