Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: mod_jk - connection_pool_size and connection_pool_minsize

Rainer Jung

2007-01-30

Replies:

Hi Henk,

>>> From reading the documentation I understand that connection_pool_size
>>> is set
>> to its default value, the ThreadsPerChild setting from Apache.
>> According to the documentation the connection_pool_minsize is only
>> used when
>> the connection_pool_size is specified. Since I didn't specify the
>> connection_pool_size, I conclude that the connection_pool_minsize is not
>> used. But how does it work then? Is there no minimum size for the
>> connection
>> pool and will all connections be freed (after the connection_pool_timeout
>> value)? Or will connections never be freed?
>>
>> Does anyone know?
>
> Yes. I know :)
>
> default
> connection_pool_minsize = (connection_pool_size + 1) / 2
> Since default connection_pool_size is ThreadsPerChild
> the connection_pool_minsize is ThreadsPerChild/2

I deleted the misleading statement about only being used when
connections_pool_size is set from the docs (for 1.2.21) and made the
default formula more exact. Thanks for sharing your observation and
trying to uderstand the details :)

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.