tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsimranjit singh Kler <simran...@gmail.com>
Subject Re: modjk apache response questions
Date Mon, 02 May 2011 18:16:06 GMT
Yes .Three tomcats(500+500+500 each).



Latest configuration .


worker.list=balancer

#For tomcat 1

worker.worker1.type=ajp13

worker.worker1.host=10.50.16.10

worker.worker1.port=8009

worker.worker1.lbfactor=1

 #For tomcat 2

worker2.worker2.type=ajp13

worker.worker2.host=10.50.16.10

worker.worker2.port=8010

worker.worker2.lbfactor=1

#For tomcat 3

worker.worker3.type=ajp13

worker.worker3.host=10.50.16.10

worker.worker3.port=8011

worker.worker3.lbfactor=1

 worker.balancer.type=lb

worker.balancer.balance_workers=worker1,worker2,worker3

worker.balancer.sticky_session=1



regards
Harsimran





On Mon, May 2, 2011 at 10:10 PM, André Warnier <aw@ice-sa.com> wrote:

>  Christopher Schultz wrote:
>
>> -----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.
>>
>
> He has 3 tomcats though.
> Or did I misread that ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message