You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Torsten Krah <kr...@gmail.com> on 2018/03/19 09:33:31 UTC

mindIdle does not inherit default value from initalSize - tomcat 8.5.x

Tomcat docs for minIdle reads this:

https://tomcat.apache.org/tomcat-8.5-doc/jdbc-pool.html

minIdle	

(int) The minimum number of established connections that should be kept
in the pool at all times. The connection pool can shrink below this
number if validation queries fail. Default value is derived from
initialSize:10 (also see testWhileIdle) 


Setting this to a DS an starting the pool:

ds.setInitialSize(1);
ds.setMaxIdle(1)
ds.setMaxActive(10);

results in:

WARN  org.apache.tomcat.jdbc.pool.ConnectionPool [JuliLog.java:137] -
maxIdle is smaller than minIdle, setting maxIdle to: 10

If minIdle would be retrieved from initialSize it is not smaller - seems
like a Bug.
Do you agree? Should i open a bug report for that?