You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Dabbs <dm...@gmail.com> on 2010/09/30 21:53:34 UTC
[users@httpd] Scoreboard and configuration question
So, here I have partial output from my scoreboard (via /server-status).
Server Version: Apache/2.2.11 (Unix) DAV/2
Server Built: Sep 4 2009 16:44:00
Current Time: Thursday, 30-Sep-2010 16:46:03 UTC
Restart Time: Friday, 17-Sep-2010 07:37:57 UTC
Parent Server Generation: 13
Server uptime: 13 days 9 hours 8 minutes 6 seconds
Total accesses: 678498645 - Total Traffic: 50.0 GB
CPU Usage: u85.96 s87.32 cu0 cs0 - .015% CPU load
587 requests/sec - 45.4 kB/second - 79 B/request
583 requests currently being processed, 89 idle workers
KKK_KK_CKKKKKKKKKKKKKKCK_KCKKKKK................................
KC_WKKK_CKKKKKCKCK_C_KKKKKCKKCK_................................
_CKCK_CCKKKCWKKKCKKKK_CKKKCKKKC_................................
KKKKW___KKKKKCKCK_KK_WKK__KCKKWK................................
_KCKKKCCKWKKCCKKKK_KKCKKCKK_KKCK................................
KKKK_CKKKKKKKKKKKKKCK_CKKK_KKKWK................................
KK_KKWKKKCKKCKKCKKKKKKCKKKKKKKKK................................
CKKKKKKKKKK_KKK_KKKKK_KKKWKKCKCC................................
CKRKKKCKKKKKCKCCK__KCKKKKKCKCKKK................................
KWKKKKKKK___KCC_KCCKK_KKKKKKC_KK................................
KKKKKKKKKKKKKKKC_KKKKKK_KKKKKKKK................................
CK_CCKWKKKKCK_CKK_WCCKKKKWKKWKKK................................
KKKKKKCKKCCKCKKKKKKC_KKWKKKCKCKK................................
KK__KCKKKCK_C_CCK__K_KKC_K__KC_K................................
KKKKKC_KCKKKCKCKK__WKKCKCKKK_KKK................................
_KKKKKK__CKKK_CK_KKKCWKKW_KKK_KK................................
_KCK_KKCKKKKCCCKWKCKKKKKKKC_KKCK................................
KKCKKK_KKKKKKK_CKKCKKKKCKWKCKKC_................................
................................................................
................................................................
................................................................
KK_KK_KKK__KKKWKKWKKK_KK_K_K_KKK................................
K_KKK__K_KK_KKKK_KKK_KWCKKKKK_K_................................
CKKKK_KKKKCKKKKKKCKKKKKKKKKCKKKK................................
<many more only dots lines follow>
Based on the Lines x DotsPerLine, I have 8192 slots.
Is that a correct interpretation? How do I reconcile this against
my MPM config of MaxClients = 2048?
<IfModule mpm_worker_module>
ServerLimit 64
StartServers 32
MaxClients 2048
MinSpareThreads 25
MaxSpareThreads 100
ThreadsPerChild 32
MaxRequestsPerChild 0
</IfModule>
I know only 32 slots/line are filled due to ThreadsPerChild.
These are beefy Nehalems, should I consider upping ThreadsPerChild?
Also, I'm seeing httpd processes created and destroyed (in top)
more frequently than I would expect. Is there something awry in
the config that would cause this to be so?
Finally, this httpd is a front end for a Tomcat instance, via mod_proxy_ajp.
Does this fact weigh on any configuration decisions (other than ensuring TC
can
Handle the same MaxClients?
Thank you for any pointers,
David
---------------------------------------------------------------------
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] Scoreboard and configuration question
Posted by Eric Covener <co...@gmail.com>.
On Thu, Sep 30, 2010 at 4:32 PM, David Dabbs <dm...@gmail.com> wrote:
>
>
>> -----Original Message-----
>> From: Eric Covener
>> Sent: Thursday, September 30, 2010 3:00 PM
>>
>> > Based on the Lines x DotsPerLine, I have 8192 slots.
>> > Is that a correct interpretation? How do I reconcile this against
>> > my MPM config of MaxClients = 2048?
>> >
>> > <IfModule mpm_worker_module>
>> > ServerLimit 64
>> > StartServers 32
>> > MaxClients 2048
>> > MinSpareThreads 25
>> > MaxSpareThreads 100
>> > ThreadsPerChild 32
>> > MaxRequestsPerChild 0
>> > </IfModule>
>>
>> Got ThreadLimit 128 somewhere? The hardcoded default is 64 for worker.
>>
>
> Sorry, I don’t follow. Why do I need ThreadLimit=128?
>
Sorry, I would think 8192 would be expected with ThreadLimit 128 and
your current ServrLimit. But you didn't have a ThreadLimit in your
stanza, and the default is only 64.
>
>> ThreadLimit * ServerLimit is the the capacity needed in the scoreboard
>> in case you change ThreadsPerChild or MaxClients across a graceful
>> restart.
>>
>>
>> > Also, I'm seeing httpd processes created and destroyed (in top)
>> > more frequently than I would expect. Is there something awry in
>> > the config that would cause this to be so?
>>
>> MaxSpareThreads if your traffic ebbs and flows
>>
>
> Sorry for being thick again, Eric. Meaning I should raise MaxSpareThreads?
If you can tolerate having them all running at low load, you can set
it equal to MaxClients and they won't be killed off ever.
---------------------------------------------------------------------
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] Scoreboard and configuration question
Posted by David Dabbs <dm...@gmail.com>.
> -----Original Message-----
> From: Eric Covener
> Sent: Thursday, September 30, 2010 3:00 PM
>
> > Based on the Lines x DotsPerLine, I have 8192 slots.
> > Is that a correct interpretation? How do I reconcile this against
> > my MPM config of MaxClients = 2048?
> >
> > <IfModule mpm_worker_module>
> > ServerLimit 64
> > StartServers 32
> > MaxClients 2048
> > MinSpareThreads 25
> > MaxSpareThreads 100
> > ThreadsPerChild 32
> > MaxRequestsPerChild 0
> > </IfModule>
>
> Got ThreadLimit 128 somewhere? The hardcoded default is 64 for worker.
>
Sorry, I dont follow. Why do I need ThreadLimit=128?
> ThreadLimit * ServerLimit is the the capacity needed in the scoreboard
> in case you change ThreadsPerChild or MaxClients across a graceful
> restart.
>
>
> > Also, I'm seeing httpd processes created and destroyed (in top)
> > more frequently than I would expect. Is there something awry in
> > the config that would cause this to be so?
>
> MaxSpareThreads if your traffic ebbs and flows
>
Sorry for being thick again, Eric. Meaning I should raise MaxSpareThreads?
> --
> Eric Covener
---------------------------------------------------------------------
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] Scoreboard and configuration question
Posted by Eric Covener <co...@gmail.com>.
> Based on the Lines x DotsPerLine, I have 8192 slots.
> Is that a correct interpretation? How do I reconcile this against
> my MPM config of MaxClients = 2048?
>
> <IfModule mpm_worker_module>
> ServerLimit 64
> StartServers 32
> MaxClients 2048
> MinSpareThreads 25
> MaxSpareThreads 100
> ThreadsPerChild 32
> MaxRequestsPerChild 0
> </IfModule>
Got ThreadLimit 128 somewhere? The hardcoded default is 64 for worker.
ThreadLimit * ServerLimit is the the capacity needed in the scoreboard
in case you change ThreadsPerChild or MaxClients across a graceful
restart.
> Also, I'm seeing httpd processes created and destroyed (in top)
> more frequently than I would expect. Is there something awry in
> the config that would cause this to be so?
MaxSpareThreads if your traffic ebbs and flows
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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