httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Apache profile
Date Mon, 20 Jan 1997 21:01:18 GMT
I think the profile was too short (130 seconds?) to give meaningful
results on fork().  You're seeing mostly startup time there... or maybe I
misread it.

Dean

On Mon, 20 Jan 1997, Chuck Murcko wrote:

> Randy Terbush liltingly intones:
> > 
> > > > If anyone is interested, I have a first run of a profiling
> > > > session looking specifically at child_main() and it's ancestors.
> > > > You can grab it at:
> > > > 
> > > >  ftp://ftp.zyzzyva.com/pub/apache/apache_1.2.child_main.profile
> > > 
> > > Oops, in your profile data file I see the following line:
> > > 
> > >   0.0     130.21     0.00        9     0.00     0.00  _php_xbithack_handler
> > > [205]
> > > 
> > > Looks like you have mod_php compiled in and are running php2.0b10 without
> > > having turned off the the PHP XBitHack handler which mistakenly defaults to
> > > on in 2.0b10.  Stick a "phpXbitHack off" in your httpd.conf, or edit
> > > mod_php.c and switch the order of the 0 and 1 in the define at the top
> > > and recompile your httpd.
> > 
> > Thanks Rasumus. I'll update.
> > 
> > > Other thoughts on that profile.  I am right in interpreting it to say that
> > > it spends 97.5% of its time forking?  I guess that makes sense if you have
> > > lots of servers.
> > > 
> > 
> > Or that fork() is the most expensive operation. I have little experience
> > interpreting this data, so feedback is welcome. It was a bit tricking
> > getting data from a live server.
> > 
> That's why selecting proper StartServer, MinSpareServer & MaxSpareServer
> values is so important. I've dropped CPU usage an order of magnitude on
> our systems merely by tuning these.
> 
> > One that sticks our for me is the amount of time spent keeping track
> > of child status.
> > 
> You should definitely try running without the status module, and see what
> changes you see relative to running with.
> 
> chuck
> Chuck Murcko	N2K Inc.	Wayne PA	chuck@telebase.com
> And now, on a lighter note:
> Mother is the invention of necessity.
> 


Mime
View raw message