- The Musings of Chris Samuel - https://www.csamuel.org -

Now Using Google’s tcmalloc

As another performance experiment (not content with just PHP 5.2.0 [1]) I’ve now got Apache (and hence mod-fcgid and PHP) using tcmalloc [2] from Google’s PerfTools [3] through the simple expedient of adding:

export LD_PRELOAD=/usr/local/google-perftools/lib/libtcmalloc.so

to /etc/default/apache2. Again, any problems, let me know!

Thanks to Mikal [4] for the, ahem, pointer. 🙂