You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Wm.A.Stafford" <st...@marine.rutgers.edu> on 2008/08/26 20:38:19 UTC
DBCP What does minIdle control?
The description of the minIdle param on the DBCP javadoc page is
confusing me. The actual text is:
"The minimum number of active connections that can remain idle in the
pool, without extra ones being created, or 0 to create none."
I'm confused by the reference to "active connections". I think of
"active" and "idle" as mutually exclusive states. But this
documentation seems to imply that a connection can be both or that there
is some other class of idle connection that was not at one time active.
Intuitively I would think minIdle is the cut off point for idle
connections. When this value is reached, i.e. numIdle=<minIdle, new
connections must be obtained to push numIdle > minIdle. But, in most
cases, I would think these new connections would immediately be idle,
not active. They are just being created to push the number if idle
connections above the cut off point.
Can anyone clarify this?
Thanks,
-=bill
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org