public interface SqlConnectionPooling
In some cases you can disable the behavior of closing inactive connections. For MySQL it's controlled by the wait_timeout setting in your my.cnf file). However, this could potentially cause leaked connections if applications terminate without cleaning up their database connections.
Intelligent connection pools compensate for unexpectedly closed connections automatically:
here
.
server.properties
, or disabled for a specific
database configuration via sql.dbName.pool.enabled. The following properties can
also be set on sql.pool / sql.dbName.pool and control same-named DBCP properties,
however, it is not recommended to set these properties unless you have experience with DBCP and
are troubleshooting a specific pool-related performance problem: testOnBorrow, testOnReturn,
testWhileIdle, timeBetweenEvictionRunsMillis, minEvictableIdleTimeMillis,
numTestsPerEvictionRun. If you are trying to diagnose an issue related to SQL connection
pooling, you can enable DEBUG logging for the following classes in
log4j.isc.config.xml
(see installation instructions for details about this file).
All of these classes are in package com.isomorphic.sql
: