tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brain Stormer <minorityst...@gmail.com>
Subject Re: mod_jk 1.2.28 connection pooling not working
Date Fri, 03 Jul 2009 17:21:35 GMT
Well, I have the following parameters..

tomcat-maxThreads=512
httpd-MaxClients=600
http-ThreadsPerChild=60
httpd-connection_pool_size=60

And after adjusting all parameters still no pools created, only 2 to 4
threads have the ESTABLISHED connection state.

Any idea!


On Friday, July 3, 2009, Mladen Turk <mturk@apache.org> wrote:
> Brain Stormer wrote:
>
> Hello,
>
> I have a tomcat-5.5 / httpd.worker-2.2 / mod_jk-1.2.28.
>
> The problem is that connection_pool_size is set to 60 and httpd
> available threads per chilf is set to 60 and tomcat max threads set to
> 100 and min set to 60 and checking netsat tells that there are only 2
> to 4 connections between httpd.worker and tomcat AJP port.
>
>
>
> It can be caused by many things, and the probable one is the
> configuration.
>
> And BTW, your stup won't work well.
> If the connection_pool_size is 60 you will have
> 60 * MaxClients/ThreadsPerChild connections to Tomcat, and
> given your 100 limit this will not work.
>
> The proper number is:
> connection_pool_size = maxThreads in Tomcat / (MaxClients / ThreadsPerChild)
>
> If you have in httpd.conf
> MaxClients 600
> ThreadsPerChild 60
>
> and
> maxThreads="100" for AJP Connector in server.xml
>
> this would give
> worker.xxx.connection_pool_size=10 (100/(600/60))
>
>
> Regards
> --
> ^(TM)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Mime
View raw message