Problem
I'm trying to profile a Java program which uses JNI. I'm using this as a guide.
I've downloaded version 5.3.0 of jemalloc.
I've done configure
and make
to build it (in the rockylinux:8.8 container).
I copy that directory to a RHEL8 system.
I run java
with the LD_PRELOAD
environment variable equal to the path to libjemalloc.so.2
.
I get:
/lib64/libc.so.6: version `GLIBC_2.32` not found (required by /some-path/libjemalloc.so.2)
What I've done
I'm assuming that jemalloc has released something which is compatible with the version of libc that I am running (which is 2.28 on RH8). It seems like jemalloc should have a compatibility matrix with glibc, but I can't find it anywhere, and looking through the source I don't see any references to a 2.32
.
How can I get my java program to run with jemalloc
?