Semi-dual use of dynamic and static jemalloc

Roel Van de Paar roel.vandepaar at
Mon Aug 24 00:58:26 PDT 2015


I have a question in regards semi-dual use of dynamic and static jemalloc.

What happens if jemalloc is LD_PRELOAD'ed for an executable where such
executable uses a .so library, which in turn is statically linked with

Does this result in two jemalloc instances running, each managing part of
heap, neither having a complete view of the system etc.?

Use case example;
LD_PRELOAD....jemalloc... mysqld       # where msyqld uses TokuDB .so lib
and this lib has jemalloc statically linked.



Kind Regards,
God Bless,
Roel Van de Paar, CMDBA/CMDEV Senior QA Lead, Percona
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the jemalloc-discuss mailing list