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. ![]()


October 27th, 2007 at 6:49 am
[...] I’ll try Chris Samuel’s method, as well as trying to compile custom apps using tcmalloc. [...]
October 27th, 2007 at 6:50 am
Hi Chris, I’m trying it now on Debian, and as an aside I’ve been using Apache2, mod_fcgid and PHP more and more, awesome setup. I was surprised at how much faster mod_fcgid was than mod_fastcgi. Might have been my config though.
October 27th, 2007 at 12:54 pm
I’m using mod_fcgid, but I went straight to that from mod_php without trying mod_fastcgi. Very happy with how it’s gone..
January 4th, 2008 at 2:16 am
Hey again, just thought I’d mention I’m exploring some python experiments with mod_wsgi - cool stuff. Kind of like mod_fcgid, but with WSGI goodies like environ.
Later…