Skip to content

Commit

Permalink
调整DBCP数据库连接池默认配置参数
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc authored and ysc committed Mar 24, 2013
1 parent 779c77d commit 9b2627b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions APDPlat_Core/src/main/resources/com/apdplat/db.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ jpa.database=HSQL
#\u4f7f\u7528dataSource
dataSource=dataSource

#http://commons.apache.org/proper/commons-dbcp//configuration.html
#The initial number of connections that are created when the pool is started.
pool.initialSize=10
#The maximum number of active connections that can be allocated from this pool at the same time, or negative for no limit.
pool.maxActive=100
#The maximum number of connections that can remain idle in the pool, without extra ones being released, or negative for no limit.
pool.maxIdle=100
#The minimum number of connections that can remain idle in the pool, without extra ones being created, or zero to create none.
pool.minIdle=10
#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.
pool.maxWait=-1

pool.initialSize=5
pool.maxActive=500
pool.maxIdle=30
pool.maxWait=1000
pool.poolPreparedStatements=true
pool.defaultAutoCommit=false
jpa.show_sql=false
Expand Down

0 comments on commit 9b2627b

Please sign in to comment.