Now Using Google’s tcmalloc

As another performance experiment (not content with just PHP 5.2.0) I’ve now got Apache (and hence mod-fcgid and PHP) using tcmalloc from Google’s PerfTools 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 for the, ahem, pointer. 🙂