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?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to