If you changed from glibc to jemalloc and that solved your issues, then you should blame glibc, not the JVM.

Well, indeed - I thought that part was obvious reading it.