<div dir="ltr"><div><span style="font-size:12.8px"><br></span></div><span style="font-size:12.8px">My first attempt at trying to integrate jemalloc and I can't get out of the starting blocks :-)  From what I read, it seems that I should be able to get jemalloc into the JVM with LD_PRELOAD and MALLOC_CONF as used below. I took the examples straight from the wiki but I must be missing something incredibly basic. I built the .so straight from the download with no problems (version 4.0) and my JVM does seem to run with it with no problem (radically lower virtual size and i can see the .so is loaded with pmap), but I clearly don't know what the hell I'm doing with MALLOC_CONF.</span><div style="font-size:12.8px">TIA,</div><div style="font-size:12.8px">--jg  <br><div><br></div><div><br></div><div><div>jgriffith@mydevbox.c1.:~/JEMALLOC$ echo $LD_PRELOAD</div><div>/usr/local/lib/libjemalloc.so</div><div>jgriffith@mydevbox.c1.:~/JEMALLOC$ echo $MALLOC_CONF</div><div>prof:true,lg_prof_interval:30,lg_prof_sample:17</div><div>jgriffith@mydevbox.c1.:~/JEMALLOC$ java -jar allocmemory.jar </div><div><jemalloc>: Invalid conf pair: prof:true</div><div><jemalloc>: Invalid conf pair: lg_prof_interval:30</div><div><jemalloc>: Invalid conf pair: lg_prof_sample:17</div><div><jemalloc>: Invalid conf pair: prof:true</div><div><jemalloc>: Invalid conf pair: lg_prof_interval:30</div><div><jemalloc>: Invalid conf pair: lg_prof_sample:17</div><div><jemalloc>: Invalid conf pair: prof:true</div><div><jemalloc>: Invalid conf pair: lg_prof_interval:30</div><div><jemalloc>: Invalid conf pair: lg_prof_sample:17</div><div><jemalloc>: Invalid conf pair: prof:true</div><div><jemalloc>: Invalid conf pair: lg_prof_interval:30</div><div><jemalloc>: Invalid conf pair: lg_prof_sample:17</div><div>^C</div><div>jgriffith@mydevbox.c1.:~/JEMALLOC$ ls</div><div><jemalloc>: Invalid conf pair: prof:true</div><div><jemalloc>: Invalid conf pair: lg_prof_interval:30</div><div><jemalloc>: Invalid conf pair: lg_prof_sample:17</div></div></div></div>