You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Arianna Manlio <ar...@yahoo.com> on 2012/03/12 20:36:57 UTC
[users@httpd] mod_status output and MaxClients
Hi,
please, look at this mod-status output:
Current Time: Monday, 12-Mar-2012 17:00:38 CET
Restart Time: Monday, 12-Mar-2012 16:58:11 CET
Parent Server Generation: 4
Current Time: Monday, 12-Mar-2012 17:00:38 CET
Restart Time: Monday, 12-Mar-2012 16:58:11 CET
Parent Server Generation: 4
Server uptime: 2 minutes 26 seconds
Total accesses: 22526 - Total Traffic: 79.3 MB
CPU Usage: u284.11 s22.21 cu.01 cs0 - 210% CPU load
154 requests/sec - 0.5 MB/second - 3690 B/request
8 requests currently being processed, 48 idle workers
.__W_._____._..W_____.__.__._.___..C____W________...___WW.___W_W
____..._...__...................................................
................................................................
................................................................
At moment, MaxClients is 100.
Since I've 154 requests/sec, should I increase it to 150 or higher?
And what is the difference beetween 154 req/sec and 8 requests currently
being processed?
Thankyou very much!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_status output and MaxClients
Posted by Arianna Manlio <ar...@yahoo.com>.
On 03/12/2012 08:46 PM, William Taylor wrote:
> You have 48 workers idle waiting for work. Unless you see that number
> hitting 0 or near
> 0, you don't need to increase it anymore.
thankyou
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_status output and MaxClients
Posted by William Taylor <wi...@corp.sonic.net>.
On Monday, March 12, 2012 12:36:57 PM, Arianna Manlio wrote:
>
> Hi,
>
> please, look at this mod-status output:
>
> Current Time: Monday, 12-Mar-2012 17:00:38 CET
> Restart Time: Monday, 12-Mar-2012 16:58:11 CET
> Parent Server Generation: 4
> Current Time: Monday, 12-Mar-2012 17:00:38 CET
> Restart Time: Monday, 12-Mar-2012 16:58:11 CET
> Parent Server Generation: 4
> Server uptime: 2 minutes 26 seconds
> Total accesses: 22526 - Total Traffic: 79.3 MB
> CPU Usage: u284.11 s22.21 cu.01 cs0 - 210% CPU load
> 154 requests/sec - 0.5 MB/second - 3690 B/request
> 8 requests currently being processed, 48 idle workers
>
> .__W_._____._..W_____.__.__._.___..C____W________...___WW.___W_W
> ____..._...__...................................................
> ................................................................
> ................................................................
>
> At moment, MaxClients is 100.
> Since I've 154 requests/sec, should I increase it to 150 or higher?
> And what is the difference beetween 154 req/sec and 8 requests
> currently being processed?
>
> Thankyou very much!
>
You have 48 workers idle waiting for work. Unless you see that number
hitting 0 or near
0, you don't need to increase it anymore.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_status output and MaxClients
Posted by Simone Caruso <in...@simonecaruso.com>.
On 12/03/2012 20:36, Arianna Manlio wrote:
> Hi,
>
> please, look at this mod-status output:
>
> Current Time: Monday, 12-Mar-2012 17:00:38 CET
> Restart Time: Monday, 12-Mar-2012 16:58:11 CET
> Parent Server Generation: 4
> Current Time: Monday, 12-Mar-2012 17:00:38 CET
> Restart Time: Monday, 12-Mar-2012 16:58:11 CET
> Parent Server Generation: 4
> Server uptime: 2 minutes 26 seconds
> Total accesses: 22526 - Total Traffic: 79.3 MB
> CPU Usage: u284.11 s22.21 cu.01 cs0 - 210% CPU load
> 154 requests/sec - 0.5 MB/second - 3690 B/request
> 8 requests currently being processed, 48 idle workers
>
> .__W_._____._..W_____.__.__._.___..C____W________...___WW.___W_W
> ____..._...__...................................................
> ................................................................
> ................................................................
>
> At moment, MaxClients is 100.
> Since I've 154 requests/sec, should I increase it to 150 or higher?
> And what is the difference beetween 154 req/sec and 8 requests currently being
> processed?
>
> Thankyou very much!
>
(you should post your configs)
If you use mpm_worker you can increase your MaxClients without going in outofmemory.
"Usually" I calculate my apache parameters this way.
Set ThreadsPerChild to 64 (default value).
maxClients = (Available Memory / Child memory size) x ThreadsPerChild x K.
where K = 0.85.
Considering a burst of 200 concurrent requests (your case?), should increase
MaxClients to 256 (if you have enough free memory, of course yes).
MinSpareThreads = 128 (2 Childs = 128requests / 64 threadsPerChild)
MaxSpareThreads = 256 (4 Childs = 256 Requests /64 threadsPerChild)
i hope this helps you for future configurations
--
Simone Caruso
IT Consultant
+39 349 65 90 805
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org