The connection pool shipped with Tomcat 8 has the following changes.
Ensure that are pooling is updated to reflect the same
Tomcat 8 embeds a packaged renamed version of Apache Commons DBCP 2.x as the default implementation of a database connection pool. There are a number of notable changes between Commons DBCP 1.x (used by Tomcat 7 and earlier) and Commons DBCP 2.x which are likely to require configuration changes.
The maxActive configuration option has been renamed to maxTotal The maxWait configuration option has been renamed to maxWaitMillis The JDBC driver JAR may be placed in WEB-INF/lib as an alternative to $CATALINA_BASE/lib provided that the driver class is only used by that web application. Connection validation no longer requires both a validation query and at least one of the testXxx attributes to be set to true. If no validation query is defined and at least one of the testxxx attributes is true, connections will be validated using Connection.isValid(). The removeAbandoned configuration option has been replaced by removeAbandonedOnBorrow and removeAbandonedOnMaintenance. Additionally, Commons DBCP has added a number of new configuration options. These should be reviewed to determine which, if any, should be used.
|