commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy McArthur" <sandy...@apache.org>
Subject Re: Order of maintenance of pool
Date Wed, 14 Feb 2007 03:02:28 GMT
See the SoftMinEvictableIdleTimeMillis property:
http://jakarta.apache.org/commons/pool/apidocs/org/apache/commons/pool/impl/GenericObjectPool.html#setSoftMinEvictableIdleTimeMillis(long)

On 2/13/07, Sharma, Siddharth <Siddharth.Sharma@staples.com> wrote:
> Hi
>
> I have written a wrapper API around commons-pool 1.3.
> I have configured the pool with the following values:
>
> max-idle-objects="10"
> min-idle-objects="5"
> max-active-objects="25"
> time-between-eviction-runs-millis="60000"
> min-evictable-idle-time-millis="30000"
> test-object-on-borrow="true"
> when-exhausted-action="2"
>
> When there is absolutely no activity, there are 5 objects in the pool (since
> that is configured to be the minimum).
> The evictor thread does pool maintenance every minute. It removes all the
> objects that are idle for 30 seconds; this means all 5 objects in the pool.
> It removes them and then probably realizes that it needs to maintain minimum
> 5 objects in the pool and creates 5 new objects and pools them. Thus it
> keeps churning every minute. Why does it remove those objects only to create
> them back? Is this behavior configurable to first check "min-idle-objects"
> and if it is at the minimum threshold, then not to actually evict and
> recreate?
>
> Thanks
> Sidd
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>


-- 
Sandy McArthur

"He who dares not offend cannot be honest."
- Thomas Paine

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message