You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by boulot BOULOT <ma...@yahoo.fr> on 2007/04/19 16:25:23 UTC

connection_pool_size seems not to have any incidence

Hi,

I have some Application Servers (tomcat) and 1 web server (httpd apache). (Linux RedHtat 3)
Apache works with the worker mpm.
There is an Apache Tomcat connector to link the web server to the ASs.
I'm trying to limit the number of connection from the web server to the ASs, using the worker.properties item "connection_pool_size".

For example, I set the following properties in the httpd.conf :

<IfModule worker.c>
ServerLimit         20
StartServers        20
MaxClients        400
MinSpareThreads     40
MaxSpareThreads    100
ThreadsPerChild     20
MaxRequestsPerChild  0
</IfModule>

And set, in the workers.properties of the web server, for all the ASs :

worker.<server_name>.connection_pool_size=1

So, there should be at the maximum, 20 connections (20 worker.httpd process * connection_pool_size = 20) from the apache web server to each AS, but in fact, I saw up to 30 connections from the web server to each AS.

Did I understand well how it works ? Why does the "connection_pool_size" doesn't work ?

Thanks, 

Benoit.







      
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: connection_pool_size seems not to have any incidence

Posted by Rainer Jung <ra...@kippdata.de>.
A pool size of 1 for a thread count of 20 per process is somewhat 
strange. But OK, you could insist on this wish. Yes, it should be 
configurable like that.

Start apache with JkLogLevel debug and check the log file about messages 
concerning the pool size. You don't need to produce any traffic for 
these messages.

Regards,

Rainer
boulot BOULOT wrote:
> Hi,
> 
> I have some Application Servers (tomcat) and 1 web server (httpd apache). (Linux RedHtat 3)
> Apache works with the worker mpm.
> There is an Apache Tomcat connector to link the web server to the ASs.
> I'm trying to limit the number of connection from the web server to the ASs, using the worker.properties item "connection_pool_size".
> 
> For example, I set the following properties in the httpd.conf :
> 
> <IfModule worker.c>
> ServerLimit         20
> StartServers        20
> MaxClients        400
> MinSpareThreads     40
> MaxSpareThreads    100
> ThreadsPerChild     20
> MaxRequestsPerChild  0
> </IfModule>
> 
> And set, in the workers.properties of the web server, for all the ASs :
> 
> worker.<server_name>.connection_pool_size=1
> 
> So, there should be at the maximum, 20 connections (20 worker.httpd process * connection_pool_size = 20) from the apache web server to each AS, but in fact, I saw up to 30 connections from the web server to each AS.
> 
> Did I understand well how it works ? Why does the "connection_pool_size" doesn't work ?
> 
> Thanks, 
> 
> Benoit.

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