Hints

Running jabberd on Boehm-Demers-Weiser garbage collector

Jabberd is leaking memory. This leak is hard to fix in the code.

Until it is fixed, you might want to run jabberd on a garbage collector, to minimize the leak impact.

Hans_Boehm garbage collector is able to run as a drop-in replacement for malloc. It's pretty simple.

  1. Get GC from http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
  2. Unpack it and configure as a malloc replacement: ./configure --prefix=/home/jabberd/gc --disable-threads --enable-redirect-malloc
    then build and install
  3. Run jabberd components with GC malloc replacement enabled: export LD_PRELOAD=/home/jabberd/gc/lib/libgc.so

You may also use the GC as a very effective leak detector.