commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33265] New: - GenericObjectPool
Date Thu, 27 Jan 2005 08:05:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33265>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33265

           Summary: GenericObjectPool
           Product: Commons
           Version: 1.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Pool
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: thomas@schuerger.com


Hi,

if numTestsPerEvictionRun is set to n and there are less than n idle objects in
the pool, the evictor thread will still make n tests on these objects in a
round-robin manner, i.e. idle objects can be tested more than once per eviction
run. As this also includes validity tests if testWhileIdle is enbabled and
validity tests may be time-consuming, this is a rather unwanted behavior.

Instead of testing getNumTests() objects, the pool should test
min(_pool.size(),getNumTests()) objects per eviction run.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message