DBCP 1.4删除了废弃的条件

时间:2018-10-04 22:37:45

标签: apache-commons-dbcp

为什么在删除废弃的连接时,Apache DBCP池在criteira下面?

Abandonded connections are identified and removed when getConnection() is 
invoked and the following conditions hold

getRemoveAbandoned() = true

getNumActive() > getMaxActive() - 3
getNumIdle() < 2 

为什么这些魔术数字2和3?谁能解释?

0 个答案:

没有答案