Help me in setting up MaxClients

Help me in setting up MaxClients

am 25.01.2010 14:56:37 von Vikrama Sanjeeva

--001636c5b63ebaf7b8047dfd8927
Content-Type: text/plain; charset=ISO-8859-1

Hello All,

This is regarding production servers. Recently Apache server hit MaxClient
settings; resulting in crash of sites. However, sites was back to normal
after restarting Apache.

I read about MaxClient settings and increase it from 200 to 250 (as I read
somewhere that 256 is a limit). Since then sites are working fine. But still
I see average concurrent request on Apache is 180-200 which sometime goes to
220 as well. This is threatening, as we are planning to put more sites live
on same Apache.

Therefore, I am considering to increase MaxClient in order to handle
"at-least" 600 concurrent request.

I will be grateful if somebody can assist me in setting the right values for
ServerLimit, MaxClient, MinSpareServers and MaxSpareServers. Also, what
maximum values I can have for MaxClients (*want to know max concurrent users
Apache can handle.*)


*Machine Specs are*:

*Manufacturer:* Sun
*Model:* T5240
*Operating System: *Solaris 10 10/08 s10s_u6wos_07b SPARC
*CPU(s):* 2x UltraSPARC-T2+ @1415 MHz; 128 Cores 128 Threads
*Memory:* 32544 MB


*Apache Version*:
*Server version:* Apache/2.2.11 (Unix)
*Server built:* Jan 5 2009 22:19:26

*Existing MaxClient Settings*:


StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 250
MaxRequestsPerChild 0


Note: I am not good in Solaris/*.nix commands :(

Bye,
Viki.

--001636c5b63ebaf7b8047dfd8927
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello All,

This is regarding production servers. Re=
cently Apache server hit MaxClient settings; resulting in crash of sites. H=
owever, sites was back to normal after restarting Apache.

I read abo=
ut MaxClient settings and increase it from 200 to 250 (as I read somewhere =
that 256 is a limit). Since then sites are working fine. But still I see av=
erage concurrent request on Apache is 180-200 which sometime goes to 220 as=
well. This is threatening, as we are planning to put more sites live on sa=
me Apache.


Therefore, I am considering to increase MaxClient in order to handle &q=
uot;at-least" 600 concurrent request.


I will be grateful if somebody can assist me in setting the right value=
s for ServerLimit, MaxClient, MinSpareServers and MaxSpareServers. Also, wh=
at maximum values I can have for MaxClients (want to know max concurrent=
users Apache can handle.
)




Machine Specs are:

Manufac=
turer:
Sun
Model: T5240
Operating System: Solaris 1=
0 10/08 s10s_u6wos_07b SPARC
CPU(s): 2x UltraSPARC-T2+ @1415 MHz;=
128 Cores 128 Threads


Memory: 32544 MB



Apache Version:
=
Server version: Apache/2.2.11 (Unix)
Server b=
uilt:
   Jan=A0 5 2009 22:19:26


Existing MaxClie=
nt Settings
:



<IfModule prefork.c>
StartServers    =
   8
MinSpareServers  =A0 5
MaxSpareServers   20
MaxCl=
ients       250
MaxRequestsPerChild=A0 0
</IfModule>=
;


Note: I am not good in Solaris/*.nix commands :(



Bye,
Viki.









=A0


--001636c5b63ebaf7b8047dfd8927--

RE: Help me in setting up MaxClients

am 25.01.2010 15:16:42 von daniel.goulder

--=_alternative 004E6EA8802576B6_=
Content-Type: text/html; charset="us-ascii"



Content-Type:>
Content-Type: --001636c5b63ebaf7b8047dfd8927 html; text quoted-printable
Content-Transfer-Encoding:>


size=2 face=Arial>You need to increase ServerLimit and MaxClients to 600 for
example.

size=2 face=Arial> 

size=2 face=Arial>MaxClients is limited by ServerLimit.  In turn
ServerLimit is limited by the physical resources you have at your
disposal.

size=2 face=Arial> 

size=2 face=Arial>Considering you have a highly thread-capable server with
plentiful memory 600 should be a safe limit, provided you only load the modules
that you need.

size=2 face=Arial> 

size=2 face=Arial>Also you could consider using the worker MPM, which will
require much fewer child processes.

size=2 face=Arial> 

size=2 face=Arial>Danny


style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">



From: Vikrama Sanjeeva
<viki.sanjeeva@gmail.com> [mailto:Vikrama Sanjeeva
<viki.sanjeeva@gmail.com>]
Sent: 25 January 2010
13:57
To: users@httpd.apache.org
Subject: [users@httpd]
Help me in setting up MaxClients



Hello All,

This is regarding production servers. Recently
Apache server hit MaxClient settings; resulting in crash of sites. However,
sites was back to normal after restarting Apache.

I read about
MaxClient settings and increase it from 200 to 250 (as I read somewhere that
256 is a limit). Since then sites are working fine. But still I see average
concurrent request on Apache is 180-200 which sometime goes to 220 as well.
This is threatening, as we are planning to put more sites live on same Apache.


Therefore, I am considering to increase MaxClient in order to handle
"at-least" 600 concurrent request.

I will be grateful if somebody can
assist me in setting the right values for ServerLimit, MaxClient,
MinSpareServers and MaxSpareServers. Also, what maximum values I can have for
MaxClients (want to know max concurrent users Apache can
handle.
)


Machine Specs are:

size=1>Manufacturer: Sun
Model: T5240
Operating System:
Solaris 10 10/08 s10s_u6wos_07b SPARC
CPU(s): 2x UltraSPARC-T2+
@1415 MHz; 128 Cores 128 Threads
Memory: 32544
MB



Apache Version:
Server
version:
Apache/2.2.11 (Unix)
Server built:  
Jan  5 2009 22:19:26


Existing MaxClient
Settings
:

<IfModule
prefork.c>
StartServers      
8
MinSpareServers    5
MaxSpareServers  
20
MaxClients      
250
MaxRequestsPerChild  0
</IfModule>


Note: I
am not good in Solaris/*.nix commands
:(

Bye,
Viki.









 

____________________________________________________________ __________
This
email has been scanned by the MessageLabs Email Security System.
For more
information please visit http://www.messagelabs.com/email

____________________________________________________________ __________


____________________________________________________________ __________

This e-mail and any attached files are intended for the named addressee only. It contains information, which may be confidential and legally privileged and also protected by copyright. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use it, or disclose it to anyone else. If you received it in error please notify the sender immediately and then delete it from your system. Please be advised that the views and opinions expressed in this e-mail may not reflect the views and opinions of Associated Newspapers Limited or any of its subsidiary companies. We make every effort to keep our network free from viruses. However, you do need to check this e-mail and any attachments to it for viruses as we can take no responsibility for any computer virus
which may be transferred by way of this e-mail. Use of this or any other e-mail facility signifies consent to any interception we might lawfully carry out to prevent abuse of these faciliti
es.

Associated Newspapers Ltd. Registered Office: Northcliffe House, 2 Derry St, Kensington, London, W8 5TT. Registered No 84121 England.



--=_alternative 004E6EA8802576B6_=
Content-Type: text/plain; charset="us-ascii"

You need to increase ServerLimit and MaxClients to 600 for example.

MaxClients is limited by ServerLimit. In turn ServerLimit is limited by
the physical resources you have at your disposal.

Considering you have a highly thread-capable server with plentiful
memory 600 should be a safe limit, provided you only load the modules
that you need.

Also you could consider using the worker MPM, which will require much
fewer child processes.

Danny


________________________________

From: Vikrama Sanjeeva [mailto:Vikrama
Sanjeeva ]
Sent: 25 January 2010 13:57
To: users@httpd.apache.org
Subject: [users@httpd] Help me in setting up MaxClients


Hello All,

This is regarding production servers. Recently Apache server hit
MaxClient settings; resulting in crash of sites. However, sites was back
to normal after restarting Apache.

I read about MaxClient settings and increase it from 200 to 250
(as I read somewhere that 256 is a limit). Since then sites are working
fine. But still I see average concurrent request on Apache is 180-200
which sometime goes to 220 as well. This is threatening, as we are
planning to put more sites live on same Apache.

Therefore, I am considering to increase MaxClient in order to
handle "at-least" 600 concurrent request.

I will be grateful if somebody can assist me in setting the
right values for ServerLimit, MaxClient, MinSpareServers and
MaxSpareServers. Also, what maximum values I can have for MaxClients
(want to know max concurrent users Apache can handle.)


Machine Specs are:

Manufacturer: Sun
Model: T5240
Operating System: Solaris 10 10/08 s10s_u6wos_07b SPARC
CPU(s): 2x UltraSPARC-T2+ @1415 MHz; 128 Cores 128 Threads
Memory: 32544 MB


Apache Version:
Server version: Apache/2.2.11 (Unix)
Server built: Jan 5 2009 22:19:26

Existing MaxClient Settings:


StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 250
MaxRequestsPerChild 0


Note: I am not good in Solaris/*.nix commands :(

Bye,
Viki.













____________________________________________________________ __________
This email has been scanned by the MessageLabs Email Security
System.
For more information please visit
http://www.messagelabs.com/email

____________________________________________________________ __________



____________________________________________________________ __________
This e-mail and any attached files are intended for the named addressee only. It contains information, which may be confidential and legally privileged and also protected by copyright. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use it, or disclose it to anyone else. If you received it in error please notify the sender immediately and then delete it from your system. Please be advised that the views and opinions expressed in this e-mail may not reflect the views and opinions of Associated Newspapers Limited or any of its subsidiary companies. We make every effort to keep our network free from viruses. However, you do need to check this e-mail and any attachments to it for viruses as we can take no responsibility for any computer virus
which may be transferred by way of this e-mail. Use of this or any other e-mail facility signifies consent to any interception we might lawfully carry out to prevent abuse of these faciliti
es.
Associated Newspapers Ltd. Registered Office: Northcliffe House, 2 Derry St, Kensington, London, W8 5TT. Registered No 84121 England.
--=_alternative 004E6EA8802576B6_=--

Re: Help me in setting up MaxClients

am 25.01.2010 15:32:24 von Jeff Trawick

On Mon, Jan 25, 2010 at 9:16 AM, wrote:
> You need to increase ServerLimit and MaxClients to 600 for example.
>
> MaxClients is limited by ServerLimit. =A0In turn ServerLimit is limited b=
y
> the physical resources you have at your disposal.
>
> Considering you have a highly thread-capable server with plentiful
> memory 600 should be a safe limit, provided you only load the modules
> that you need.

Most any server, certainly those, can handle far in access of 600.
Unless there's some high CPU in-process application process, this box
should be able to support thousands of concurrent clients.

BUT whether setting MaxClients to 200 or 2000 or 20000, for Solaris
and some other non-Linux platforms you absolutely must ensure there is
adequate swap space defined before increasing MaxClients, because swap
space is reserved per process based on virtual memory size.

> Also you could consider using the worker MPM, which will require much
> fewer child processes.

which helps drastically with swap space

------------------------------------------------------------ ---------
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: Help me in setting up MaxClients

am 25.01.2010 15:44:35 von Jeff Trawick

On Mon, Jan 25, 2010 at 8:56 AM, Vikrama Sanjeeva
wrote:
> Hello All,
>
> This is regarding production servers. Recently Apache server hit MaxClient
> settings; resulting in crash of sites. However, sites was back to normal
> after restarting Apache.

The expected symptom is that Apache is unresponsive to additional
requests until some of the child processes finish what they're working
on.

Restarting Apache without increasing MaxClients isn't helpful; if it
is a hard restart it trashes the current connections.

> I read about MaxClient settings and increase it from 200 to 250 (as I read
> somewhere that 256 is a limit).

Run apachectl -V to see the limit; it should be in the tens of thousands.

> Since then sites are working fine. But still
> I see average concurrent request on Apache is 180-200 which sometime goes to
> 220 as well. This is threatening, as we are planning to put more sites live
> on same Apache.
>
> Therefore, I am considering to increase MaxClient in order to handle
> "at-least" 600 concurrent request.
>
> I will be grateful if somebody can assist me in setting the right values for
> ServerLimit, MaxClient, MinSpareServers and MaxSpareServers.

(I'm trying to get a public URL for the slides I sent you privately
which offer some advice here.)

> Also, what
> maximum values I can have for MaxClients (want to know max concurrent users
> Apache can handle.)

That's workload-specific. Here are some interesting notes from
someone playing with a similar box a few years ago:

http://www.stdlib.net/~colmmacc/2006/03/23/niagara-vs-ftphea netie-showdown/

------------------------------------------------------------ ---------
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: Help me in setting up MaxClients

am 25.01.2010 17:36:17 von Mark Watts

--=-K10pu4XgKWaPY49bPgL+
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2010-01-25 at 09:44 -0500, Jeff Trawick wrote:
> On Mon, Jan 25, 2010 at 8:56 AM, Vikrama Sanjeeva
> wrote:
> > Hello All,
> >
> > This is regarding production servers. Recently Apache server hit MaxCli=
ent
> > settings; resulting in crash of sites. However, sites was back to norma=
l
> > after restarting Apache.
>=20
> The expected symptom is that Apache is unresponsive to additional
> requests until some of the child processes finish what they're working
> on.
>=20
> Restarting Apache without increasing MaxClients isn't helpful; if it
> is a hard restart it trashes the current connections.
>=20
> > I read about MaxClient settings and increase it from 200 to 250 (as I r=
ead
> > somewhere that 256 is a limit).
>=20
> Run apachectl -V to see the limit; it should be in the tens of thousands.

Umm, does it?


# apachectl -V
Server version: Apache/2.2.13 (Unix)
Server built: Sep 17 2009 15:37:59
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.3, APR-Util 1.3.4
Compiled using: APR 1.3.3, APR-Util 1.2.7
Architecture: 32-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR=3D"server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=3D128
-D HTTPD_ROOT=3D"/etc/httpd"
-D SUEXEC_BIN=3D"/usr/sbin/suexec"
-D DEFAULT_SCOREBOARD=3D"logs/apache_runtime_status"
-D DEFAULT_ERRORLOG=3D"logs/error_log"
-D AP_TYPES_CONFIG_FILE=3D"conf/mime.types"
-D SERVER_CONFIG_FILE=3D"conf/httpd.conf"

# apachectl -V
Server version: Apache/2.2.14 (Unix)
Server built: Dec 3 2009 10:25:53
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR=3D"server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=3D128
-D HTTPD_ROOT=3D"/etc/httpd"
-D SUEXEC_BIN=3D"/usr/sbin/suexec"
-D DEFAULT_PIDLOG=3D"logs/httpd.pid"
-D DEFAULT_SCOREBOARD=3D"logs/apache_runtime_status"
-D DEFAULT_LOCKFILE=3D"logs/accept.lock"
-D DEFAULT_ERRORLOG=3D"logs/error_log"
-D AP_TYPES_CONFIG_FILE=3D"conf/mime.types"
-D SERVER_CONFIG_FILE=3D"conf/httpd.conf"


--=20
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg

--=-K10pu4XgKWaPY49bPgL+
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAktdyIAACgkQBn4EFUVUIO3uugCgt0anCHEpf6pdrNZ0WsMH E4jP
+KQAoIKjYFbWrBNvhzf4Shd/5nGkRk66
=v+PE
-----END PGP SIGNATURE-----

--=-K10pu4XgKWaPY49bPgL+--

Re: Help me in setting up MaxClients

am 25.01.2010 17:47:27 von Jeff Trawick

On Mon, Jan 25, 2010 at 11:36 AM, Mark Watts wrote:
> On Mon, 2010-01-25 at 09:44 -0500, Jeff Trawick wrote:
>> On Mon, Jan 25, 2010 at 8:56 AM, Vikrama Sanjeeva
>> wrote:
>> > Hello All,
>> >
>> > This is regarding production servers. Recently Apache server hit MaxClient
>> > settings; resulting in crash of sites. However, sites was back to normal
>> > after restarting Apache.
>>
>> The expected symptom is that Apache is unresponsive to additional
>> requests until some of the child processes finish what they're working
>> on.
>>
>> Restarting Apache without increasing MaxClients isn't helpful; if it
>> is a hard restart it trashes the current connections.
>>
>> > I read about MaxClient settings and increase it from 200 to 250 (as I read
>> > somewhere that 256 is a limit).
>>
>> Run apachectl -V to see the limit; it should be in the tens of thousands.
>
> Umm, does it?
>
>
> # apachectl -V

my bad; it doesn't, as you point out

for httpd 2.2.x:

prefork's hard limit is 200000 child processes; worker's limits are
20000 child processes and 20000 threads per process

(expect to hit system limits long before that)

------------------------------------------------------------ ---------
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: Help me in setting up MaxClients

am 25.01.2010 17:50:48 von Mark Watts

--=-hPiy1MtWtWNDN84ef/0b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2010-01-25 at 11:47 -0500, Jeff Trawick wrote:
> my bad; it doesn't, as you point out

Out of interest, is it possible/feasible to get httpd to dump its
running config? Could be quite useful...

> for httpd 2.2.x:
>=20
> prefork's hard limit is 200000 child processes; worker's limits are
> 20000 child processes and 20000 threads per process
>=20
> (expect to hit system limits long before that)

We usually hit bandwidth limits first :)

Mark.

--=20
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg

--=-hPiy1MtWtWNDN84ef/0b
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAktdy+gACgkQBn4EFUVUIO1fSgCgyJkGAK0zzGm6ZG227gBf jO6p
NxoAn214WZUdARljObP3LWOS4LfJgdxZ
=lCiU
-----END PGP SIGNATURE-----

--=-hPiy1MtWtWNDN84ef/0b--

Re: Help me in setting up MaxClients

am 25.01.2010 19:26:32 von Vikrama Sanjeeva

--000e0ce004820aec19047e014f7a
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

Thanks Jeff for the presentation. Its informative.

Actually, I am trying to calculate what MaxClient I can set. I know my
server is strong and as Danny and you said, setting 600 will not be a risk.
I however, will prefer to do some calculation to drive this value. Since I
am not Solaris command expert, therefore I am having difficulty in doing
calculation.

My objective is to follow below formula to calculate MaxClient as mentioned
on Apache site:
http://httpd.apache.org/docs/2.2/misc/perf-tuning.html

"*This procedure for doing this is simple: determine the size of your
average Apache process, by looking at your process list via a tool such as
top, and divide this into your total available memory, leaving some room for
other processes.*"

As I understand, it says: (RAM Size / Avg HTTPD Process Size) - some
room for other proceeses

Out of these 3 variables, I am able to conclude:
RAM Size = 32544 MB
Avg httpd process size: 12 MB

But how to calculcate "size for other processes" ? One thing I want to
highlight here is that; we are running application server (JBOSS) on same
machine with almost 10 JVM nodes. Average Java process size for these are
3-4 GB. No other applications are running on this machine. And yes, we are
using "mod_jk" for backend server loadbalancing.

Bye,
Viki.


On Mon, Jan 25, 2010 at 5:44 PM, Jeff Trawick wrote:

> On Mon, Jan 25, 2010 at 8:56 AM, Vikrama Sanjeeva
> wrote:
> > Hello All,
> >
> > This is regarding production servers. Recently Apache server hit
> MaxClient
> > settings; resulting in crash of sites. However, sites was back to normal
> > after restarting Apache.
>
> The expected symptom is that Apache is unresponsive to additional
> requests until some of the child processes finish what they're working
> on.
>
> Restarting Apache without increasing MaxClients isn't helpful; if it
> is a hard restart it trashes the current connections.
>
> > I read about MaxClient settings and increase it from 200 to 250 (as I
> read
> > somewhere that 256 is a limit).
>
> Run apachectl -V to see the limit; it should be in the tens of thousands.
>
> > Since then sites are working fine.
> But still
> > I see average concurrent request on Apache is 180-200 which sometime goes
> to
> > 220 as well. This is threatening, as we are planning to put more sites
> live
> > on same Apache.
> >
> > Therefore, I am considering to increase MaxClient in order to handle
> > "at-least" 600 concurrent request.
> >
> > I will be grateful if somebody can assist me in setting the right values
> for
> > ServerLimit, MaxClient, MinSpareServers and MaxSpareServers.
>
> (I'm trying to get a public URL for the slides I sent you privately
> which offer some advice here.)
>
> > Also, what
> > maximum values I can have for MaxClients (want to know max concurrent
> users
> > Apache can handle.)
>
> That's workload-specific. Here are some interesting notes from
> someone playing with a similar box a few years ago:
>
> http://www.stdlib.net/~colmmacc/2006/03/23/niagara-vs-ftphea netie-showdown/
>
> ------------------------------------------------------------ ---------
> 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
>
>

--000e0ce004820aec19047e014f7a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi All,

   Thanks Jeff for the presentation. Its informative. >
Actually, I am trying to calculate what MaxClient I can set. I know my=
server is strong and as Danny and you said, setting 600 will not be a risk=
.. I however, will prefer to do some calculation to drive this value. Since =
I am not Solaris command expert, therefore I am having difficulty in doing =
calculation.


My objective is to follow below formula to calculate MaxClient as menti=
oned on Apache site:
rf-tuning.html">http://httpd.apache.org/docs/2.2/misc/perf-t uning.html<=
br>

"This procedure
for doing this is simple: determine the size of your average Apache
process, by looking at your process list via a tool such as
top, and divide this into your total available memory,
leaving some room for other processes.
"

As I understand=
, it says: =A0 =A0 =A0(RAM Size / Avg HTTPD Process Size) - some room for o=
ther proceeses

Out of these 3 variables, I am able to conclude:
=
RAM Size =3D 32544 MB

Avg httpd process size: 12 MB


But how to calculcate "siz=
e for other processes" ? One thing I want to highlight here is that; w=
e are running application server (JBOSS) on same machine with almost 10 JVM=
nodes. Average Java process size for these are 3-4 GB. No other applicatio=
ns are running on this machine. And yes, we are using "mod_jk" fo=
r backend server loadbalancing.


Bye,
Viki.


On Mon, Jan 25, 2010 at 5:44 PM, Jeff Trawick=
<trawick@gmail.c=
om
>
wrote:

"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0=
pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Jan 25, 2010 at 8:56 AM, Vikrama Sanjeeva

<&=
gt; wrote:

> Hello All,

>

> This is regarding production servers. Recently Apache server hit MaxCl=
ient

> settings; resulting in crash of sites. However, sites was back to norm=
al

> after restarting Apache.



The expected symptom is that Apache is unresponsive to additional

requests until some of the child processes finish what they're working<=
br>
on.



Restarting Apache without increasing MaxClients isn't helpful; if it >
is a hard restart it trashes the current connections.



> I read about MaxClient settings and increase it from 200 to 250 (as I =
read

> somewhere that 256 is a limit).



Run apachectl -V to see the limit; it should be in the tens of thousa=
nds.



> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 Since then sites are working fine. But still

> I see average concurrent request on Apache is 180-200 which sometime g=
oes to

> 220 as well. This is threatening, as we are planning to put more sites=
live

> on same Apache.

>

> Therefore, I am considering to increase MaxClient in order to handle r>
> "at-least" 600 concurrent request.

>

> I will be grateful if somebody can assist me in setting the right valu=
es for

> ServerLimit, MaxClient, MinSpareServers and MaxSpareServers.



(I'm trying to get a public URL for the slides I sent you private=
ly

which offer some advice here.)



> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Also, what

> maximum values I can have for MaxClients (want to know max concurrent =
users

> Apache can handle.)



That's workload-specific. =A0Here are some interesting notes from=


someone playing with a similar box a few years ago:



tie-showdown/" target=3D"_blank">http://www.stdlib.net/~colmmacc/2006/03/23 =
/niagara-vs-ftpheanetie-showdown/




------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--000e0ce004820aec19047e014f7a--

Re: Help me in setting up MaxClients

am 25.01.2010 20:48:36 von Jeff Trawick

On Mon, Jan 25, 2010 at 1:26 PM, Vikrama Sanjeeva
wrote:
> Hi All,
>
>    Thanks Jeff for the presentation. Its informative.
>
> Actually, I am trying to calculate what MaxClient I can set. I know my
> server is strong and as Danny and you said, setting 600 will not be a ris=
k.
> I however, will prefer to do some calculation to drive this value. Since =
I
> am not Solaris command expert, therefore I am having difficulty in doing
> calculation.
>
> My objective is to follow below formula to calculate MaxClient as mention=
ed
> on Apache site:
> http://httpd.apache.org/docs/2.2/misc/perf-tuning.html
>
> "This procedure for doing this is simple: determine the size of your aver=
age
> Apache process, by looking at your process list via a tool such as top, a=
nd
> divide this into your total available memory, leaving some room for other
> processes."
>
> As I understand, it says: =A0 =A0 =A0(RAM Size / Avg HTTPD Process Size) =
- some
> room for other proceeses
>
> Out of these 3 variables, I am able to conclude:
> RAM Size =3D 32544 MB
> Avg httpd process size: 12 MB

Hmmm, 12 MB is a typical prefork child process size at least on x86
*including* the httpd executable code; there's only one copy of that
executable code living in RAM across the processes. I don't know a
handy command to get the size of process-unique data (stack, heap,
etc.). It probably requires looking at pmap output? I guess you
could use 12MB as an extremely conservative (i.e., worst case) number.

Also remember the need for a separate swap space sanity check on Solaris:

potential httpd swap use is entire httpd child process size *
MaxClients (if using prefork MPM); make sure you have enough swap
space
make sure you have enough swap space


> But how to calculcate "size for other processes" ? One thing I want to
> highlight here is that; we are running application server (JBOSS) on same
> machine with almost 10 JVM nodes. Average Java process size for these are
> 3-4 GB. No other applications are running on this machine. And yes, we ar=
e
> using "mod_jk" for backend server loadbalancing.

Here are some hints on calculating free memory and free swap space:

http://forums.sun.com/thread.jspa?threadID=3D5100488

If you find free memory and free swap space with all the normal
services but httpd running, then set aside perhaps 30% for growth of
those processes or other things you didn't measure, then you find out
how much memory and swap is potentially available for httpd.

(BTW, you'd want to duplicate this sort of sanity check every so often
-- make sure there is free memory and swap space while everything is
running, including httpd.)

------------------------------------------------------------ ---------
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: Help me in setting up MaxClients

am 25.01.2010 20:54:44 von Jeff Trawick

On Mon, Jan 25, 2010 at 1:26 PM, Vikrama Sanjeeva
wrote:
> Hi All,
>
>    Thanks Jeff for the presentation. Its informative.
>
> Actually, I am trying to calculate what MaxClient I can set. I know my
> server is strong and as Danny and you said, setting 600 will not be a ris=
k.
> I however, will prefer to do some calculation to drive this value. Since =
I
> am not Solaris command expert, therefore I am having difficulty in doing
> calculation.
>
> My objective is to follow below formula to calculate MaxClient as mention=
ed
> on Apache site:
> http://httpd.apache.org/docs/2.2/misc/perf-tuning.html
>
> "This procedure for doing this is simple: determine the size of your aver=
age
> Apache process, by looking at your process list via a tool such as top, a=
nd
> divide this into your total available memory, leaving some room for other
> processes."
>
> As I understand, it says: =A0 =A0 =A0(RAM Size / Avg HTTPD Process Size) =
- some
> room for other proceeses

slight fix to your formula:

Max httpd processes =3D (RAM Size - some room for other processes) / Avg
HTTPD Process Size

------------------------------------------------------------ ---------
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: Help me in setting up MaxClients

am 26.01.2010 00:13:15 von Vikrama Sanjeeva

--001636c5b63e667544047e05500e
Content-Type: text/plain; charset=ISO-8859-1

Hi Jeff,

Below is statistics from vmstat while everything is running including
httpd:

>> vmstat 2 3
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr rm s0 s1 s3 in sy cs us sy
id
0 0 0 32953272 20946824 11 22 0 3 3 0 0 -0 0 1 -0 872 1041 601 0 0
100
0 0 0 23225344 11281392 51 104 0 0 0 0 0 0 0 3 0 1024 1767 684 0 0
100
0 0 0 23224768 11280792 1 4 0 0 0 0 0 0 0 0 0 892 1080 473 0 0
100

So with this, I have:
Free Swap: 22 GB
Free RAM: 10 GB

Here I am doing a defensive supposition by assuming 5/10 GB of Free RAM
"could be" occupied by future applications (if any). So, I am left with 5 GB
of Free Memory. Same for Free Swap, assuming I am left with 5 GB Free Swap

Putting values in MaxClient Formula:

MaxClient = (RAM Size - some room for other processes) / Avg
HTTPD Process Size

MaxClient = (32768 - 27648) / 12 = 426 (approx)

Does it mean, I can set MaxClient value to 426 ? If yes, then:

(i) I have to make sure ServerLimit is also = 426 [As per your presentation
for MPM prefork] ?
(ii) Make sure backend server node (tomcat AJP port) can accept 426
concurrent requests ?

Bye,
Viki.






On Mon, Jan 25, 2010 at 10:54 PM, Jeff Trawick wrote:

> On Mon, Jan 25, 2010 at 1:26 PM, Vikrama Sanjeeva
> wrote:
> > Hi All,
> >
> > Thanks Jeff for the presentation. Its informative.
> >
> > Actually, I am trying to calculate what MaxClient I can set. I know my
> > server is strong and as Danny and you said, setting 600 will not be a
> risk.
> > I however, will prefer to do some calculation to drive this value. Since
> I
> > am not Solaris command expert, therefore I am having difficulty in doing
> > calculation.
> >
> > My objective is to follow below formula to calculate MaxClient as
> mentioned
> > on Apache site:
> > http://httpd.apache.org/docs/2.2/misc/perf-tuning.html
> >
> > "This procedure for doing this is simple: determine the size of your
> average
> > Apache process, by looking at your process list via a tool such as top,
> and
> > divide this into your total available memory, leaving some room for other
> > processes."
> >
> > As I understand, it says: (RAM Size / Avg HTTPD Process Size) - some
> > room for other proceeses
>
> slight fix to your formula:
>
> Max httpd processes = (RAM Size - some room for other processes) / Avg
> HTTPD Process Size
>
> ------------------------------------------------------------ ---------
> 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
>
>

--001636c5b63e667544047e05500e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Jeff,

  =A0 Below is statistics from vmstat while everything =
is running including httpd:

>> vmstat 2 3
=A0kthr  =A0=
   memory          =A0 page        =
  =A0 disk        =A0 faults    =A0 cpu
=A0r=
b w   swap=A0 free=A0 re=A0 mf pi po fr de sr rm s0 s1 s3   in=A0=
=A0 sy   cs us sy id

=A00 0 0 32953272 20946824 11 22 0 3 3=A0 0=A0 0 -0=A0 0=A0 1 -0=A0 872 104=
1=A0 601=A0 0=A0 0 100
=A00 0 0 23225344 11281392 51 104 0 0 0 0=A0 0=A0=
0=A0 0=A0 3=A0 0 1024 1767=A0 684=A0 0=A0 0 100
=A00 0 0 23224768 11280=
792 1 4 0=A0 0=A0 0=A0 0=A0 0=A0 0=A0 0=A0 0=A0 0=A0 892 1080=A0 473=A0 0=
=A0 0 100


So with this, I have:
Free Swap: 22=A0 GB
Free RAM: 10 GB
>Here I am doing a defensive supposition by assuming 5/10 GB of Free RAM &q=
uot;could be" occupied by future applications (if any). So, I am left =
with 5 GB of Free Memory. Same for Free Swap, assuming I am left with 5 GB =
Free Swap


Putting values in MaxClient Formula:

MaxClient =3D (RAM Size - s=
ome room for other processes) / Avg

HTTPD Process Size

MaxClient =3D (32768 - 27648) / 12 =3D 426 (appro=
x)

=A0 Does it mean, I can set MaxClient value to 426 ? If yes, then=
:

(i) I have to make sure ServerLimit is also =3D 426=A0 [As per you=
r presentation for MPM prefork] ?

(ii) Make sure backend server node (tomcat AJP port) can accept 426 concurr=
ent requests ?

Bye,
Viki.




  =A0

iv class=3D"gmail_quote">On Mon, Jan 25, 2010 at 10:54 PM, Jeff Trawick an dir=3D"ltr"><trawick@gmail.com a>> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, Jan 25, 2=
010 at 1:26 PM, Vikrama Sanjeeva

> Hi All,

>

>    Thanks Jeff for the presentation. Its informative.

>

> Actually, I am trying to calculate what MaxClient I can set. I know my=


> server is strong and as Danny and you said, setting 600 will not be a =
risk.

> I however, will prefer to do some calculation to drive this value. Sin=
ce I

> am not Solaris command expert, therefore I am having difficulty in doi=
ng

> calculation.

>

> My objective is to follow below formula to calculate MaxClient as ment=
ioned

> on Apache site:

> get=3D"_blank">http://httpd.apache.org/docs/2.2/misc/perf-tu ning.html r>
>

> "This procedure for doing this is simple: determine the size of y=
our average

> Apache process, by looking at your process list via a tool such as top=
, and

> divide this into your total available memory, leaving some room for ot=
her

> processes."

>

> As I understand, it says: =A0 =A0 =A0(RAM Size / Avg HTTPD Process Siz=
e) - some

> room for other proceeses



slight fix to your formula:



Max httpd processes =3D (RAM Size - some room for other processes) / Avg >
HTTPD Process Size



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--001636c5b63e667544047e05500e--

Re: Help me in setting up MaxClients

am 30.01.2010 00:42:14 von Vikrama Sanjeeva

Hi,

Can somebody help me with this ?

Thanks

Bye,
Viki.

On 1/26/10, Vikrama Sanjeeva wrote:
> Hi Jeff,
>
> Below is statistics from vmstat while everything is running including
> httpd:
>
>>> vmstat 2 3
> kthr memory page disk faults cpu
> r b w swap free re mf pi po fr de sr rm s0 s1 s3 in sy cs us sy
> id
> 0 0 0 32953272 20946824 11 22 0 3 3 0 0 -0 0 1 -0 872 1041 601 0 0
> 100
> 0 0 0 23225344 11281392 51 104 0 0 0 0 0 0 0 3 0 1024 1767 684 0 0
> 100
> 0 0 0 23224768 11280792 1 4 0 0 0 0 0 0 0 0 0 892 1080 473 0 0
> 100
>
> So with this, I have:
> Free Swap: 22 GB
> Free RAM: 10 GB
>
> Here I am doing a defensive supposition by assuming 5/10 GB of Free RAM
> "could be" occupied by future applications (if any). So, I am left with 5
> GB
> of Free Memory. Same for Free Swap, assuming I am left with 5 GB Free Swap
>
> Putting values in MaxClient Formula:
>
> MaxClient = (RAM Size - some room for other processes) / Avg
> HTTPD Process Size
>
> MaxClient = (32768 - 27648) / 12 = 426 (approx)
>
> Does it mean, I can set MaxClient value to 426 ? If yes, then:
>
> (i) I have to make sure ServerLimit is also = 426 [As per your
> presentation
> for MPM prefork] ?
> (ii) Make sure backend server node (tomcat AJP port) can accept 426
> concurrent requests ?
>
> Bye,
> Viki.
>
>
>
>
>
>
> On Mon, Jan 25, 2010 at 10:54 PM, Jeff Trawick wrote:
>
>> On Mon, Jan 25, 2010 at 1:26 PM, Vikrama Sanjeeva
>> wrote:
>> > Hi All,
>> >
>> > Thanks Jeff for the presentation. Its informative.
>> >
>> > Actually, I am trying to calculate what MaxClient I can set. I know my
>> > server is strong and as Danny and you said, setting 600 will not be a
>> risk.
>> > I however, will prefer to do some calculation to drive this value.
>> > Since
>> I
>> > am not Solaris command expert, therefore I am having difficulty in
>> > doing
>> > calculation.
>> >
>> > My objective is to follow below formula to calculate MaxClient as
>> mentioned
>> > on Apache site:
>> > http://httpd.apache.org/docs/2.2/misc/perf-tuning.html
>> >
>> > "This procedure for doing this is simple: determine the size of your
>> average
>> > Apache process, by looking at your process list via a tool such as top,
>> and
>> > divide this into your total available memory, leaving some room for
>> > other
>> > processes."
>> >
>> > As I understand, it says: (RAM Size / Avg HTTPD Process Size) -
>> > some
>> > room for other proceeses
>>
>> slight fix to your formula:
>>
>> Max httpd processes = (RAM Size - some room for other processes) / Avg
>> HTTPD Process Size
>>
>> ------------------------------------------------------------ ---------
>> 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
>>
>>
>

------------------------------------------------------------ ---------
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: Help me in setting up MaxClients

am 30.01.2010 01:38:37 von Eric Covener

On Fri, Jan 29, 2010 at 6:42 PM, Vikrama Sanjeeva
wrote:
> Hi,
>
> =A0Can somebody help me with this ?

With what? You posted at the top of a giant thread with no context.

--=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: Help me in setting up MaxClients

am 31.01.2010 08:00:15 von Vikrama Sanjeeva

--000e0cdf940ebb31e4047e706b3b
Content-Type: text/plain; charset=ISO-8859-1

Hi Eric,

I don't know why you didn't got the my previous post on which I asked for
help. Anyways, here it is again: I need help in making calculation based on
memory statistics which I provided.


On 1/26/10, Vikrama Sanjeeva wrote:
> Hi Jeff,
>
> Below is statistics from vmstat while everything is running including
> httpd:
>
>>> vmstat 2 3
> kthr memory page disk faults cpu
> r b w swap free re mf pi po fr de sr rm s0 s1 s3 in sy cs us
sy
> id
> 0 0 0 32953272 20946824 11 22 0 3 3 0 0 -0 0 1 -0 872 1041 601 0
0
> 100
> 0 0 0 23225344 11281392 51 104 0 0 0 0 0 0 0 3 0 1024 1767 684 0
0
> 100
> 0 0 0 23224768 11280792 1 4 0 0 0 0 0 0 0 0 0 892 1080 473 0
0
> 100
>
> So with this, I have:
> Free Swap: 22 GB
> Free RAM: 10 GB
>
> Here I am doing a defensive supposition by assuming 5/10 GB of Free RAM
> "could be" occupied by future applications (if any). So, I am left with 5
> GB
> of Free Memory. Same for Free Swap, assuming I am left with 5 GB Free Swap
>
> Putting values in MaxClient Formula:
>
> MaxClient = (RAM Size - some room for other processes) / Avg
> HTTPD Process Size
>
> MaxClient = (32768 - 27648) / 12 = 426 (approx)
>
> Does it mean, I can set MaxClient value to 426 ? If yes, then:
>
> (i) I have to make sure ServerLimit is also = 426 [As per your
> presentation
> for MPM prefork] ?
> (ii) Make sure backend server node (tomcat AJP port) can accept 426
> concurrent requests ?
>
> Bye,
> Viki.

Bye,
Viki.

On Sat, Jan 30, 2010 at 3:38 AM, Eric Covener wrote:

> On Fri, Jan 29, 2010 at 6:42 PM, Vikrama Sanjeeva
> wrote:
> > Hi,
> >
> > Can somebody help me with this ?
>
> With what? You posted at the top of a giant thread with no context.
>
> --
> 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
>
>

--000e0cdf940ebb31e4047e706b3b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Eric,

=A0 I don't know why you didn't got the my previous=
post on which I asked for help. Anyways, here it is again: I need help in =
making calculation based on memory statistics which I provided.



On 1/26/10, Vikrama Sanjeeva < >viki.sanjeeva@gmail.com> wrote:

> Hi Jeff,

>

> =A0 =A0 Below is statistics from vmstat while everything is running in=
cluding

> httpd:

>

>>> vmstat 2 3

> =A0kthr =A0 =A0 =A0memory =A0 =A0 =A0 =A0 =A0 =A0page =A0 =A0 =A0 =A0 =
=A0 =A0disk =A0 =A0 =A0 =A0 =A0faults =A0 =A0 =A0cpu

> =A0r b w =A0 swap =A0free =A0re =A0mf pi po fr de sr rm s0 s1 s3 =A0 i=
n =A0 sy =A0 cs us sy

> id

> =A00 0 0 32953272 20946824 11 22 0 3 3 =A00 =A00 -0 =A00 =A01 -0 =A087=
2 1041 =A0601 =A00 =A00

> 100

> =A00 0 0 23225344 11281392 51 104 0 0 0 0 =A00 =A00 =A00 =A03 =A00 102=
4 1767 =A0684 =A00 =A00

> 100

> =A00 0 0 23224768 11280792 1 4 0 =A00 =A00 =A00 =A00 =A00 =A00 =A00 =
=A00 =A0892 1080 =A0473 =A00 =A00

> 100

>

> So with this, I have:

> Free Swap: 22 =A0GB

> Free RAM: 10 GB

>

> Here I am doing a defensive supposition by assuming 5/10 GB of Free RA=
M

> "could be" occupied by future applications (if any). So, I a=
m left with 5

> GB

> of Free Memory. Same for Free Swap, assuming I am left with 5 GB Free =
Swap

>

> Putting values in MaxClient Formula:

>

> MaxClient =3D (RAM Size - some room for other processes) / Avg

> HTTPD Process Size

>

> MaxClient =3D (32768 - 27648) / 12 =3D 426 (approx)

>

> =A0 Does it mean, I can set MaxClient value to 426 ? If yes, then:

>

> (i) I have to make sure ServerLimit is also =3D 426 =A0[As per your >
> presentation

> for MPM prefork] ?

> (ii) Make sure backend server node (tomcat AJP port) can accept 426 >
> concurrent requests ?

>

> Bye,

> Viki.

Bye,
Viki.

On Sat, J=
an 30, 2010 at 3:38 AM, Eric Covener < o:covener@gmail.com">covener@gmail.com> wrote:
class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); =
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Jan 29, 2010 at 6:42 PM, Vikrama Sanjeeva

> Hi,

>

> =A0Can somebody help me with this ?



With what? You posted at the top of a giant thread with no context. r>


--

Eric Covener





------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--000e0cdf940ebb31e4047e706b3b--

Re: Help me in setting up MaxClients

am 31.01.2010 12:55:13 von Eric Covener

On Sun, Jan 31, 2010 at 2:00 AM, Vikrama Sanjeeva
wrote:
> Hi Eric,
>
> =A0 I don't know why you didn't got the my previous post on which I asked=
for
> help. Anyways, here it is again: I need help in making calculation based =
on
> memory statistics which I provided.
>

Jeff has already described how this calculation exaggerates the
physical RAM requirements by assuming that none of the memory is
shared across processes. As a sanity check, predict your ram and swap
usage for doubling MaxClients then check your results experimentally.

I sure hope you weren't waiting around for answers to these:

> (i) I have to make sure ServerLimit is also =3D 426 [As per your
> presentation for MPM prefork] ?

ServerLimit has to be greater than or equal to your new MaxClients, as
per the manual and the initial response to this thread.

> (ii) Make sure backend server node (tomcat AJP port) can accept 426
> concurrent requests ?
>

Discussion of the number of web container connections/threads for
Tomcat is off-topic here. Surely a million results are waiting on
google.

--=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: Help me in setting up MaxClients

am 31.01.2010 13:19:36 von Jeff Trawick

On Mon, Jan 25, 2010 at 6:13 PM, Vikrama Sanjeeva
wrote:
> Hi Jeff,
>
>   =A0 Below is statistics from vmstat while everything is running inc=
luding
> httpd:
>
>>> vmstat 2 3
> =A0kthr    =A0 memory          =A0 page  =
        =A0 disk        =A0 faults  =A0=
   cpu
> =A0r b w   swap=A0 free=A0 re=A0 mf pi po fr de sr rm s0 s1 s3   =
in   sy   cs us sy
> id
> =A00 0 0 32953272 20946824 11 22 0 3 3=A0 0=A0 0 -0=A0 0=A0 1 -0=A0 872 1=
041=A0 601=A0 0=A0 0
> 100
> =A00 0 0 23225344 11281392 51 104 0 0 0 0=A0 0=A0 0=A0 0=A0 3=A0 0 1024 1=
767=A0 684=A0 0=A0 0
> 100
> =A00 0 0 23224768 11280792 1 4 0=A0 0=A0 0=A0 0=A0 0=A0 0=A0 0=A0 0=A0 0=
=A0 892 1080=A0 473=A0 0=A0 0
> 100
>
> So with this, I have:
> Free Swap: 22=A0 GB
> Free RAM: 10 GB
>
> Here I am doing a defensive supposition by assuming 5/10 GB of Free RAM
> "could be" occupied by future applications (if any). So, I am left with 5=
GB
> of Free Memory. Same for Free Swap, assuming I am left with 5 GB Free Swa=
p
>
> Putting values in MaxClient Formula:
>
> MaxClient =3D (RAM Size - some room for other processes) / Avg
> HTTPD Process Size
>
> MaxClient =3D (32768 - 27648) / 12 =3D 426 (approx)
>
> =A0 Does it mean, I can set MaxClient value to 426 ? If yes, then:

yes, 426 is very safe as far as RAM goes

(as I mentioned before, 12MB is in excess of the per-process RAM
requirements, so I expect you could go much higher; unfortunately I
don't have clear instructions on how to use pmap or other tools to
find the real per-process RAM requirements)

also confirm that 12M * 426 is less than the available swap space

>
> (i) I have to make sure ServerLimit is also =3D 426=A0 [As per your prese=
ntation
> for MPM prefork] ?

y

> (ii) Make sure backend server node (tomcat AJP port) can accept 426
> concurrent requests ?

the big picture for that part of the presentation is to consider the
relationship between number of connections hitting Apache and number
of clients hitting the backend (e.g., Tomcat)

if every connection that hits Apache gets forwarded to Tomcat, you
should align the capacity of Apache and Tomcat fairly closely

if only some connections that hit Apache get forwarded to Tomcat,
you'd expect that the capacity of Apache should be much larger than
that of Tomcat

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