On 9 Jun 2011, at 17:13, Tosh Cooey wrote:

> I haven't tried Devel::NYTProf, but the blocking seems to have been the 
> keyword here...
> 
> root      2661  0.0  1.5  37900 27492 ?        Ss   Jun08   0:00 
> /usr/sbin/apache2 -k start
> www-data  3875  0.0  1.3  37264 23300 ?        S    06:25   0:00 
> /usr/sbin/apache2 -k start
> www-data  3882  3.9  8.7 395156 153644 ?       Sl   06:25   6:15 
> /usr/sbin/apache2 -k start

Very much looks like you don't have a startup.pl that loads the world in the 
parent 
process. That will cause a masive inhale on the first hit.

> 
> Anyone have sweet spots for Apache settings running on an EC2 small instance?
>   

Whatever works for you after measurement.

Read the mod_perl tuning guide and settle on a strategy of MaxRequestsPerClient
or a fixed Apache2::SizeLimit.

Also, are you running stock apache/perl/mod_perl? Seriously consider spending
time making your own build. Even recompiling the .srpms with gentoo-safe flags
for that $arch could give a healthy boost.

Or pay someone *cough* *cough* to do it for you :)


Reply via email to