Created
April 11, 2012 18:55
-
-
Save MichaelAstreiko/2361373 to your computer and use it in GitHub Desktop.
DataSource properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
properties { | |
/** The maximum number of active connections that can be allocated from | |
* this pool at the same time, or zero for no limit. | |
* Make it '-1' to prevent performance problems with idle connections | |
*/ | |
maxActive = -1 | |
/** | |
* The maximum number of active connections that can remain idle in the | |
* pool, without extra ones being released, or zero for no limit. | |
*/ | |
maxIdle = 8 | |
/** | |
* The minimum number of active connections that can remain idle in the | |
* pool, without extra ones being created, or 0 to create none. | |
*/ | |
minIdle = 0 | |
/** | |
* The maximum number of milliseconds that the pool will wait (when there | |
* are no available connections) for a connection to be returned before | |
* throwing an exception, or -1 to wait indefinitely. | |
*/ | |
maxWait = 180000 | |
minEvictableIdleTimeMillis = 1000 * 60 * 15 | |
timeBetweenEvictionRunsMillis = 1000 * 60 * 15 | |
numTestsPerEvictionRun = 3 | |
testOnBorrow = true | |
testWhileIdle = true | |
testOnReturn = false | |
validationQuery = "select 1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment