Calculating settings for mpm-worker/mod_proxy_ajp/Tomcat

------_=_NextPart_001_01CA7D73.6CF14BBB
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,



can anybody tell me how to adjust the different min/max settings for the =


MPM worker, mod_proxy_ajp and Tomcat connector so that the configuration

is aligned and there is no miss configuration on either side?



On Tomcat's side i use the default value for the AJP connector of =
maxThread=3D200,

on mod_proxy_ajp the MPM workers ThreadsPerChild of 25. I think that

ThreadsPerchild can increase to ThreadLimit of 64 if the load increases, =
right?



If I understand correct then the ServerLimit of the MPM worker is set to =
default 16.



Is it correct if I assume that under full load Apache might create:



ThreadLimit * ServerLimit =3D 64 * 16 =3D 600 connections



via mod_proxy_ajp to Tomcat? Is this correct?



And how does the MaxClients and MaxThreads of the Tomcat AJP connector =
fit in that

scenario? (MaxChilds of MPM worker is set to 150)



Thanks,



Chris


------_=_NextPart_001_01CA7D73.6CF14BBB
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" =
xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
xmlns:a=3D"urn:schemas-microsoft-com:office:access" =
xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" =
xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" =
xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema" =
xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" =
xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" =
xmlns:c=3D"urn:schemas-microsoft-com:office:component:spread sheet" =
xmlns:odc=3D"urn:schemas-microsoft-com:office:odc" =
xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" =
xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" =
xmlns:rtc=3D"http://microsoft.com/officenet/conferencing" =
xmlns:D=3D"DAV:" xmlns:Repl=3D"http://schemas.microsoft.com/repl/" =
xmlns:mt=3D"http://schemas.microsoft.com/sharepoint/soap/mee tings/" =
xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2003/x ml" =
xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" =
xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/oi s/" =
xmlns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/di rectory/" =
xmlns:ds=3D"http://www.w3.org/2000/09/xmldsig#" =
xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint/dsp" =
xmlns:udc=3D"http://schemas.microsoft.com/data/udc" =
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" =
xmlns:sub=3D"http://schemas.microsoft.com/sharepoint/soap/20 02/1/alerts/"=
xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#" =
xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" =
xmlns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" =
xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/soap" =
xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile " =
xmlns:udcp2p=3D"http://schemas.microsoft.com/data/udc/partto part" =
xmlns:wf=3D"http://schemas.microsoft.com/sharepoint/soap/wor kflow/" =
xmlns:dsss=3D"http://schemas.microsoft.com/office/2006/digsi g-setup" =
xmlns:dssi=3D"http://schemas.microsoft.com/office/2006/digsi g" =
xmlns:mdssi=3D"http://schemas.openxmlformats.org/package/200 6/digital-sig=
nature" =
xmlns:mver=3D"http://schemas.openxmlformats.org/markup-compa tibility/2006=
" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns:mrels=3D"http://schemas.openxmlformats.org/package/200 6/relationshi=
ps" xmlns:spwp=3D"http://microsoft.com/sharepoint/webpartpages" =
xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/service s/2006/types"=
=
xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/service s/2006/messag=
es" =
xmlns:pptsl=3D"http://schemas.microsoft.com/sharepoint/soap/ SlideLibrary/=
" =
xmlns:spsl=3D"http://microsoft.com/webservices/SharePointPor talServer/Pub=
lishedLinksService" xmlns:Z=3D"urn:schemas-microsoft-com:" =
xmlns:st=3D"" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
..MsoChpDefault
{mso-style-type:export-only;}
[at] page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>

<body lang=3DDE-AT link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>Hello,<o:p></o:p></p>

<p class=3DMsoNormal><o:p> </o:p></p>

<p class=3DMsoNormal><span lang=3DEN-US>can anybody tell me how to =
adjust the
different min/max settings for the <o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>MPM worker, mod_proxy_ajp and =
Tomcat
connector so that the configuration<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>is aligned and there is no miss =
configuration
on either side?<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>On Tomcat’s side i use the =
default
value for the AJP connector of maxThread=3D200,<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>on mod_proxy_ajp the MPM workers =
=A0ThreadsPerChild
of 25. I think that <o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>ThreadsPerchild can increase to =
ThreadLimit
of 64 if the load increases, right?<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>If I understand correct then the
ServerLimit of the MPM worker is set to default =
16.<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>Is it correct if I assume that =
under full
load Apache might create:<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>ThreadLimit * ServerLimit =3D 64 =
* 16 =3D 600
connections <o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>via mod_proxy_ajp to Tomcat? Is =
this
correct?<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>And how does the MaxClients and =
MaxThreads
of the Tomcat AJP connector fit in that<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>scenario? (MaxChilds of MPM =
worker is set
to 150)<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>Thanks,<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US>Chris<o:p></o:p></span></p>

</div>

</body>

</html>

------_=_NextPart_001_01CA7D73.6CF14BBB--
chris.joelly [ Di, 15 Dezember 2009 11:43 ] [ ID #2026083 ]

Re: Calculating settings for mpm-worker/mod_proxy_ajp/Tomcat

On Tue, Dec 15, 2009 at 5:43 AM, Chris Jölly <chris.joelly [at] unycom.com> wr=
ote:
> Hello,
>
> on mod_proxy_ajp the MPM workers =A0ThreadsPerChild of 25. I think that
>
> ThreadsPerchild can increase to ThreadLimit of 64 if the load increases,
> right?

No. ThreadsPerChild doesn't change at runtime, it's always exactly
what you configure it at.

You can change the value of ThreadsPerChild up to the value of
ThreadLimit during a restart.

> ThreadLimit * ServerLimit =3D 64 * 16 =3D 600 connections

No, just MaxClients connections. ThreadLimit and ServerLimit are
pretty unimportant on their own [just an upper bound on other
explicitly configured things].

--
Eric Covener
covener [at] 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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Eric Covener [ Di, 15 Dezember 2009 13:05 ] [ ID #2026084 ]

RE: Calculating settings for mpm-worker/mod_proxy_ajp/Tomcat

> -----Original Message-----
> From: Eric Covener [mailto:covener [at] gmail.com]
> Sent: Dienstag, 15. Dezember 2009 13:06
> To: users [at] httpd.apache.org
> Subject: Re: [users [at] httpd] Calculating settings for mpm-
> worker/mod_proxy_ajp/Tomcat
>
> On Tue, Dec 15, 2009 at 5:43 AM, Chris Jölly =
<chris.joelly [at] unycom.com> wrote:
> >
> > on mod_proxy_ajp the MPM workers =A0ThreadsPerChild of 25. I think =
that
> > ThreadsPerchild can increase to ThreadLimit of 64 if the load
> > increases, right?
>
> No. ThreadsPerChild doesn't change at runtime, it's always exactly
> what you configure it at.
>
> You can change the value of ThreadsPerChild up to the value of
> ThreadLimit during a restart.

this means that i can change ThreadLimit only on a "full" restart,
and ThreadsPerChild during a graceful restart?

> > ThreadLimit * ServerLimit =3D 64 * 16 =3D 600 connections
>
> No, just MaxClients connections. ThreadLimit and ServerLimit are
> pretty unimportant on their own [just an upper bound on other
> explicitly configured things].

so, then i don't understand the following post :)
http://marc.info/?l=3Dapache-httpd-dev&m=3D112552197217868&w =3D2

So if I set MaxClients of MPM worker and the maxThreads attribute on the =

Tomcat AJP connector to 200 then, regardless how the other values are
set, I can guarantee that there will always be enough connections to
Tomcat so that all incoming requests up to 200 can be served?
I think that there will be more requests per client connection if http
pipelining is active. Or is this assumption not correct? How does this
affect the number of connections through mod_proxy_ajp?

thx, Chris


------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
chris.joelly [ Di, 15 Dezember 2009 13:38 ] [ ID #2026085 ]
Webserver » gmane.comp.apache.user » Calculating settings for mpm-worker/mod_proxy_ajp/Tomcat

Vorheriges Thema: Questions about implementing SSL/VirtualHosts
Nächstes Thema: about ServerLimit and ThreadLimit