I am trying to find out a memory leak issue. I am following this article and trying to use jemalloc
The steps followed are:
export LD_PRELOAD=/usr/local/lib/libjemalloc.so
export MALLOC_CONF=prof:true,lg_prof_interval:30,lg_prof_sample:17
sudo java -jar application.jar
However there is no .heap file created. I cannot find libjemalloc.so in pmap -x result. How can I ensure that the jvm is using jemalloc? Server is an ubuntu server and the application is using spring boot.