https://bz.apache.org/bugzilla/show_bug.cgi?id=61032
Bug ID: 61032
Summary: min pool size is not being respected
Product: Tomcat Modules
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: jdbc-pool
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
The problem seems not to be specific for a tomcat version. However, the version
used on production which showed the problem is 8.5.9
(org.apache.tomcat:tomcat-jdbc:8.5.9). Used together with Java 8, but Java 7
should have similar results.
The tomcat documentation indicates a minimum pool of idle connections should be
available. It scared me when I first saw this dropped below the minimum size.
>From the documentation at
https://tomcat.apache.org/tomcat-9.0-doc/jdbc-pool.html (or
https://tomcat.apache.org/tomcat-8.0-doc/jdbc-pool.html, the version I used);
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)
I created a PR for this problem at https://github.com/apache/tomcat/pull/54.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]