« Here Goes | Main | moving from stunnel to private network »

January 13, 2003

tweaking mod_perl

This past week our Solaris server slowed to a crawl. We're running Apache 1.3.27 with mod_perl and mod_ssl compiled into the binary. Usage always peaks at the start of a semester here at Tufts University, but this was abnormal.

While scouring our mod_perl libraries and making some tweaks we found an interesting problem in startup.pl's $Apache::SizeLimit::MAX_PROCESS_SIZE. We had this set to 29M, which was adequate for our Apache processes a year ago. In the past year we had transferred much of our application to a XML base, being transformed into PDF, SVG, and HTML with XSLT and FOP.

To accomodate the expansion, our Apache processes were starting up at around 42M. Essentially after one request, the Apache process was being recycled, a costly measure. We increased the process size to 50M and immediately began seeing increased speeds by twofold.

Posted by mike at January 13, 2003 5:31 PM