tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: modjk apache response questions
Date Mon, 02 May 2011 14:20:09 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

harsimran,

On 5/1/2011 1:09 PM, Harsimranjit singh Kler wrote:
> Server MPM: Worker
> threaded: yes (fixed thread count)
> forked: yes (variable process count)

> ServerLimit 30
> StartServers 20
> MaxClients 1500
> MinSpareThreads 40
> MaxSpareThreads 100
> ThreadsPerChild 50
> MaxRequestsPerChild 0

So you have a maximum of 50 * 30 = 1500 incoming connections for Apache
httpd.

> #For tomcat 1
> worker.list=worker1
> #worker.worker1.domain=worker1
> worker.worker1.type=ajp13
> worker.worker1.host=

Hmm. What does host="" get you? I hope localhost, by default.

> worker.worker1.port=8009
> worker.worker1.lbfactor=1

Default connection_pool_size is "do whatever makes sense" which should
be "1": that will give you 1500 connections to your backend.

> server.xml(tomcats)
> Connector port=”8009″
> enableLookups=”false” redirectPort=”8443″
> maxThreads=”500″ minSpareThreads=”25″
> maxSpareThreads=”75″ protocol=”AJP/1.3

You have configured httpd to make 1500 connections to Tomcat, but Tomcat
can only accept 500 connections. You will have lots of
connection-thrashing on the httpd side.

You want to make sure that the number of mod_jk connections you expect
to make from the httpd side is the same as the number of connections you
can handle on the Tomcat side.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2+vZkACgkQ9CaO5/Lv0PCc4gCfd7WJ0T5y1cmjUZR02NPE26RH
JDEAnRW/feEcrk89HBunN3yFW5S0pdOT
=r1rr
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message