Profiling offheap memory leaks - can't make it work, #858
Closed
cornelcreanga
started this conversation in
General
Replies: 2 comments
-
Try replacing
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, it works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My Spark executors are crashing under heavy load due to too much native memory allocation (they are killed by k8 for exceeding quota requests). I suspect a memory leak and I wanted to try the approach described here:
https://github.com/async-profiler/async-profiler/blob/malloc/README.md#finding-native-memory-leaks
I've downloaded https://profiler.tools/builds/async-profiler-2.1-malloc-linux-x64.tar.gz and decompress it to /home/cornel/async-profiler-malloc but I can't make it work
The command
LD_PRELOAD=/home/cornel/async-profiler-malloc/build/libasyncProfiler.so java -agentlib:/home/cornel/async-profiler-malloc/build/libasyncProfiler.so=start,event=nativemem,file=malloc.jfr -cp . com/creanga/playground/spark/TestProfiler
breaks with
Could not find agent library /home/cornel/async-profiler-malloc/build/libasyncProfiler.so on the library path, with error: lib/home/cornel/async-profiler-malloc/build/libasyncProfiler.so.so: cannot open shared object file: No such file or directory
I tried with -agentlib:asyncProfiler=start, it also does not work.
Environment: java version "17.0.6" 2023-01-17 LTS, Ubuntu 22.04.3 LTS
Thanks a lot.
Cornel.
Beta Was this translation helpful? Give feedback.
All reactions