Scoreboard and configuration question

Scoreboard and configuration question

am 30.09.2010 21:53:34 von David Dabbs

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............................ ....



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?


ServerLimit 64
StartServers 32
MaxClients 2048
MinSpareThreads 25
MaxSpareThreads 100
ThreadsPerChild 32
MaxRequestsPerChild 0


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 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: Scoreboard and configuration question

am 30.09.2010 22:00:10 von Eric Covener

> 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 =3D 2048?
>
>
> =A0 =A0ServerLimit =A0 =A0 =A0 =A0 =A064
> =A0 =A0StartServers =A0 =A0 =A0 =A0 32
> =A0 =A0MaxClients =A0 =A0 =A0 =A0 2048
> =A0 =A0MinSpareThreads =A0 =A0 =A025
> =A0 =A0MaxSpareThreads =A0 =A0 100
> =A0 =A0ThreadsPerChild =A0 =A0 =A032
> =A0 =A0MaxRequestsPerChild =A0 0
>


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

--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: Scoreboard and configuration question

am 30.09.2010 22:32:48 von David Dabbs

> -----Original Message-----
> From: Eric Covener
> Sent: Thursday, September 30, 2010 3:00 PM
>=20
> > 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 =3D 2048?
> >
> >
> > =A0 =A0ServerLimit =A0 =A0 =A0 =A0 =A064
> > =A0 =A0StartServers =A0 =A0 =A0 =A0 32
> > =A0 =A0MaxClients =A0 =A0 =A0 =A0 2048
> > =A0 =A0MinSpareThreads =A0 =A0 =A025
> > =A0 =A0MaxSpareThreads =A0 =A0 100
> > =A0 =A0ThreadsPerChild =A0 =A0 =A032
> > =A0 =A0MaxRequestsPerChild =A0 0
> >

>=20
> Got ThreadLimit 128 somewhere? The hardcoded default is 64 for =
worker.
>=20

Sorry, I don=92t follow. Why do I need ThreadLimit=3D128?

=20
> ThreadLimit * ServerLimit is the the capacity needed in the scoreboard
> in case you change ThreadsPerChild or MaxClients across a graceful
> restart.
>=20
>=20
> > 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?
>=20
> MaxSpareThreads if your traffic ebbs and flows
>=20

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 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: Scoreboard and configuration question

am 01.10.2010 00:00:25 von Eric Covener

On Thu, Sep 30, 2010 at 4:32 PM, David Dabbs 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 =3D 2048?
>> >
>> >
>> > =A0 =A0ServerLimit =A0 =A0 =A0 =A0 =A064
>> > =A0 =A0StartServers =A0 =A0 =A0 =A0 32
>> > =A0 =A0MaxClients =A0 =A0 =A0 =A0 2048
>> > =A0 =A0MinSpareThreads =A0 =A0 =A025
>> > =A0 =A0MaxSpareThreads =A0 =A0 100
>> > =A0 =A0ThreadsPerChild =A0 =A0 =A032
>> > =A0 =A0MaxRequestsPerChild =A0 0
>> >

>>
>> Got ThreadLimit 128 somewhere? =A0The hardcoded default is 64 for worker=
..
>>
>
> Sorry, I don=92t follow. Why do I need ThreadLimit=3D128?
>

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 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