On May 12, 2005, at 9:44 PM, Bryan Lewis wrote:
> This might be a newbie-ish question, but anyway...
>
> Ive got a max of 10 connections configured in my DataNode's
> connectionPool. Yet when I look in the app's logs I see more than ten
> lines saying "Opening connection". Seventeen, for example, in a
> routine day with no redeploys. How can that be? Do connections get
> closed and re-opened?
Yeah, unused connections are periodically closed if Cayenne decides
that there is too many open idle connections. Algorithm is pretty
naive, but AFAIK it does its job pretty well. Check
PoolManager.PoolMaintenanceThread inner class for details.
Andrus
This archive was generated by hypermail 2.0.0 : Thu May 12 2005 - 22:31:32 EDT