|
| Parameter | Beschreibung |
|---|
| PoolAcquireIncrement | When the available connections are about to run out, the pool will dynamically create new ones in batches. This property controls how many new connections to create in one go (up to a maximum of PoolMaxConnectionsPerPartition). Default: 2. |
|---|
| PoolPartitionCount | Sets number of partitions to use. In order to reduce lock contention and thus improve performance, each incoming connection request picks off a connection from a pool that has thread-affinity, i.e. pool[threadId % partition_count]. The higher this number, the better your performance will be for the case when you have plenty of short-lived threads. Beyond a certain threshold, maintenance of these pools will start to have a negative effect on performance (and only for the case when connections on a partition start running out). Default: 1, minimum: 1, recommended: 2-4 (but very app specific) |
|---|
| PoolMinConnectionsPerPartition | Sets the minimum number of connections that will be contained in every partition. Default: 0. In a DLE Server environment, the default will be the number of MinWorkers (Server Property). |
|---|
| PoolMaxConnectionsPerPartition | Sets the maximum number of connections that will be contained in every partition. Setting this to 5 with 3 partitions means you will have 15 unique connections to the database. Note that the connection pool will not create all these connections in one go but rather start off with PoolMinConnectionsPerPartition and gradually increase connections as required. Default: 20. In a DLE Server environment, the default will be the number of MaxWorkers (Server Property) plus 3 (to cover the initial internal session and 2 possible DPE queues). |
|---|
| PoolIdleConnectionTestPeriodInMinutes | This sets the time (in minutes), for a connection to remain idle before sending a test query to the DB. This is useful to prevent a DB from timing out connections on its end. Do not use aggressive values here! Default: 240 min, set to 0 to disable. |
|---|
| PoolIdleMaxAgeInMinutes | The time (in minutes), for a connection to remain unused before it is closed off. Do not use aggressive values here! Default: 30 minutes, set to 0 to disable. |
|---|
| PoolConnectionTestStatement | The query to send to the DB to maintain keep-alives and test for dead connections. This is database specific and should be set to a query that consumes the minimal amount of load on the server. Examples: MySQL: "/* ping *\/ SELECT 1", PostgreSQL: "SELECT NOW()". If you do not set this, then the pool will issue a metadata request instead that should work on all databases but is probably slower. (Note: In MySQL, prefixing the statement by /* ping *\/ makes the driver issue 1 fast packet instead. See http://blogs.sun.com/SDNChannel/entry/mysql_tips_for_java_developers |
|---|
| PoolStatementsCacheSize | The number of statements to cache. Default: 50. |
|---|
| PoolReleaseHelperThreads | Sets number of helper threads to create that will handle releasing a connection. When this value is set to zero, the application thread is blocked until the pool is able to perform all the necessary cleanup to recycle the connection and make it available for another thread. When a non-zero value is set, the pool will create threads that will take care of recycling a connection when it is closed (the application dumps the connection into a temporary queue to be processed asynchronously to the application via the release helper threads). Useful when your application is doing lots of work on each connection (i.e. perform an SQL query, do lots of non-DB stuff and perform another query), otherwise will probably slow things down. Default: 3. |
|---|
| PoolInitSQL | Specifies an initial SQL statement that is run only when a connection is first created. |
|---|
| PoolCloseConnectionWatch | Instruct the pool to create a helper thread to watch over connection acquires that are never released (or released twice). This is for debugging purposes only and will create a new thread for each call to getConnection(). Enabling this option will have a big negative impact on pool performance. Default: False. |
|---|
| PoolLogStatementsEnabled | If enabled, log SQL statements being executed. Default: False. |
|---|
| PoolAcquireRetryDelayInMs | Sets the number of ms to wait before attempting to obtain a connection again after a failure. Default: 7000. |
|---|
| PoolLazyInit | Set to true to force the connection pool to obtain the initial connections lazily. Default: False. |
|---|
| PoolTransactionRecoveryEnabled | Set to true to enable recording of all transaction activity and replay the transaction automatically in case of a connection failure. Default: False. |
|---|
| PoolAcquireRetryAttempts | After attempting to acquire a connection and failing, try to connect these many times before giving up. Default 5. |
|---|
| PoolDisableJMX | Set to true to disable JMX. Default: False. |
|---|
| PoolQueryExecuteTimeLimitInMs | Queries taking longer than this limit to execute are logged. The statement is not canceled! Default: |
|---|
| PoolPoolAvailabilityThreshold | The pool watch thread attempts to maintain a number of connections always available (between PoolMinConnections and PoolMaxConnections). This value sets the percentage value to maintain. For example, setting it to 20 means that if the following condition holds: Free Connections / MaxConnections < poolAvailabilityThreshold new connections will be created. In other words, it tries to keep at least 20% of the pool full of connections. Setting the value to zero will make the pool create new connections when it needs them but it also means your application may have to wait for new connections to be obtained at times. Default: 0. |
|---|
| PoolDisableConnectionTracking | If set to true, the pool will not monitor connections for proper closure. Enable this option if you only ever obtain your connections via a mechanism that is guaranteed to release the connection back to the pool. (Do not set this to false in DLE) |
|---|
| PoolConnectionTimeoutInMs | Sets the maximum time (in milliseconds) to wait before a call to get a connection is timed out. Default: 120000 ( 0 = wait forever ) |
|---|
| PoolCloseConnectionWatchTimeoutInMs | Sets the no of ms to wait when close connection watch threads are enabled. Default: 0 = wait forever. |
|---|
| PoolStatementReleaseHelperThreads | Sets number of statement helper threads to create that will handle releasing a statement. When this value is set to zero, the application thread is blocked until the pool and JDBC driver are able to close off the statement. When a non-zero value is set, the pool will create threads that will take care of closing off the statement asychronously to the application via the release helper threads). Useful when your application is opening up lots of statements otherwise will probably slow things down. Default: 3. |
|---|
| PoolMaxConnectionAgeInSeconds | Any connections older than this setting will be closed off whether it is idle or not. Connections currently in use will not be affected until they are returned to the pool. Default: 14400 (4 hours) (0 = never close). |
|---|
| PoolConfigFile | If configured, this will cause the pool to initialize using the configuration file. |
|---|
| PoolServiceOrder | Values currently understood are FIFO and LIFO. Default: FIFO. |
|---|
| PoolStatisticsEnabled | If set to true, keep track of some more statistics for exposure via JMX. It will slow down the pool operation. Default: False. |
|---|
| PoolDefaultAutoCommit | Sets the defaultAutoCommit setting for newly created connections. If not set, use driver default. Do not use this flag with the DLE, as it is set through the transaction level parameter. |
|---|
| PoolDefaultCatalog | Sets the defaultCatalog setting for newly created connections. If not set, use driver default. |
|---|
| PoolDefaultReadOnly | Sets the defaultReadOnly setting for newly created connections. If not set, use driver default. |
|---|
| PoolDefaultTransactionIsolation | Sets the defaultTransactionIsolation. Should be set to one of: NONE, READ_COMMITTED, READ_UNCOMMITTED, REPEATABLE_READ or SERIALIZABLE. If not set, will use driver default. |
|---|