jvm-profiling-tools / honest-profiler

A sampling JVM profiler without the safepoint sample bias
https://github.com/RichardWarburton/honest-profiler/wiki
MIT License
1.25k stars 146 forks source link

Java agent doesn't work on CentOS 7 #223

Closed askask closed 6 years ago

askask commented 6 years ago

I tried to run Java with the honest profiler agent, but it fails with this message:

$ java -agentpath:/data/bin/honest-profiler/liblagent.so=interval=7,logPath=/tmp/log.hpl -cp Cpu-0.0.1-SNAPSHOT.jar de.codecentric.training.javaprofiling.cpu.PrimeFinderRunner 1000000 1 1
Error occurred during initialization of VM
Could not find agent library /data/bin/honest-profiler/liblagent.so in absolute path, with error: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /data/bin/honest-profiler/liblagent.so)
RichardWarburton commented 6 years ago

What that is saying is that you're using an older version of gcc and C++ standard library than we're compiling against. Maybe its worth trying to compile honest profiler on that machine.

SButterfly commented 6 years ago

Custom compilation helped, thanks!