You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Richard Correia <ri...@ugamsolutions.com> on 2003/12/08 22:46:45 UTC

[users@httpd] Server-status analysis

Hi,

Here is the server-status for my dear apache server. [I really love it]

I wanted to know what some of the field means in server-status. 


1> Total accesses: 6633895 => Does this means I have actual 6633895
GET,POST request to my server in 4 days ?

2> There are so many .[dots] In ASCII graphic at the end Open slot with
no current process, I have set MaxClients to 256.
 Why I am getting 8 idle server.

3> If I am getting 50 hits per second, which are being processed in a
second, what should be the MinSpareServers and MaxSpareServers ?
Currently it is 5 and 20 resp.

Any help will be highly appriceated. Furthermore any links to document
which explains this Server process,childs,MinSpareServers and
MaxSpareServers,Keepalive for bigger sites are most welcome .


Sincerely,
Richard

--------------------------------------------------------
Server uptime: 4 days 1 hour 23 minutes 14 seconds
Total accesses: 6633895 - Total Traffic: 2.3 GB

CPU Usage: u2926.43 s2553.78 cu3587.22 cs214.94 - 2.65% CPU load

18.9 requests/sec - 6.8 kB/second - 368 B/request

4 requests currently being processed, 8 idle servers 


W___WW_____W....................................................
................................................................
................................................................
................................................................


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Server-status analysis

Posted by Joshua Slive <jo...@slive.ca>.

On Tue, 9 Dec 2003, Richard Correia wrote:
> 1> Total accesses: 6633895 => Does this means I have actual 6633895
> GET,POST request to my server in 4 days ?

Yep.

> 2> There are so many .[dots] In ASCII graphic at the end Open slot with
> no current process, I have set MaxClients to 256.
>  Why I am getting 8 idle server.

Apache always tries to keep the number of idle servers inbetween
MinSpareServers and MaxSpareServers.  Since 8 is between 5 and 20, this
seems fine.

>
> 3> If I am getting 50 hits per second, which are being processed in a
> second, what should be the MinSpareServers and MaxSpareServers ?
> Currently it is 5 and 20 resp.

The Min/MaxSpareServers directives are really not that important.  They
only come into play if the server needs to ramp-up or ramp-down quickly
(ie, if the load changes rapidly).  Even then, Apache adjusts quite
well regardless.  The numbers you have seem just fine.

(The only mistake I see often is people setting MinSpareServers very high.
This just has the effect of forcing lots of idle processes.)

>
> Any help will be highly appriceated. Furthermore any links to document
> which explains this Server process,childs,MinSpareServers and
> MaxSpareServers,Keepalive for bigger sites are most welcome .

http://httpd.apache.org/docs-2.0/misc/perf-tuning.html
http://httpd.apache.org/docs-2.0/mod/prefork.html

As I said, these things are not very important, really.  You just need to
make sure you have enough child processes available (MaxClients) to serve
the maximum simultaneous load you expect.  Turning down the
KeepAliveTimeout can help push clients off your server more quickly if
they tend to make only a few quick requests.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org