Thanks for your help.

This is what I get in the mod_jk.log :

[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] wc_create_worker::jk_worker.c 
(144): about to create instance server1-instance1 of ajp13
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] wc_create_worker::jk_worker.c 
(157): about to validate and init server1-instance1
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_validate::jk_ajp_common.c 
(1985): worker server1-instance1 contact is 'server1.bi1.local:8009'
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2112): setting endpoint options:
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2115): keepalive:        1
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2119): timeout:          5
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2123): buffer size:      0
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2127): pool timeout:     100
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2131): connect timeout:  0
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2135): reply timeout:    10000
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2139): prepost timeout:  0
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2143): recovery options: 0
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2147): retries:          1
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2151): max packet size:  8192
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] 
ajp_create_endpoint_cache::jk_ajp_common.c (2022): setting connection pool size 
to 1 with min 1

So the connection_pool_size seems to be set to 1 (min 1) but when I check (on 
my webserver) the connections from my webserver to the server1-instance1 
("netstat -an | grep server1_IP:8009 | grep ESTABLISHED | wc -l") I get more 
than 20.

Do I check the bad informations ? What do you suggest me to look for ?

Regards,

Benoit.


De : Rainer Jung <[EMAIL PROTECTED]>:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








      
___________________________________________________________________________ 
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

Reply via email to