Question regarding jemalloc and JVM

vijay2win at vijay2win at
Sat Mar 24 16:09:01 PDT 2012

Thanks Jason,

On Mar 24, 2012, at 11:46 AM, Jason Evans wrote:

> On Mar 23, 2012, at 4:21 PM, Vijay wrote:
>> Is there any reason i should not be using LD_PRELOAD to force JVM use jemalloc instead of native gcc malloc?
>> Background: This is for Apache-Cassandra we do off-heap cache where we explicitly call malloc and free and by using jemalloc we see a fair amount of space savings and was wondering if there is anything which we have to consider before using it.
> LD_PRELOAD'ing jemalloc should be okay as long as the JVM doesn't statically link a different malloc implementation.  I expect that if it isn't safe, you'll experience crashes quite early on, so give it a try and see what happens.
> Jason

More information about the jemalloc-discuss mailing list