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 39314] - [pool] Pool grows beyond MaxActive with WHEN_EXHAUSTED_BLOCK
Date Fri, 14 Apr 2006 21:26:06 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=39314>.
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=39314


sandymac@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From sandymac@apache.org  2006-04-14 21:26 -------
maxActive limits the number of concurrently "active" poolable objects, aka
"borrowed" objects. It does not limit the total number of objects created by
makeObject for the pool.

Where you are getting confused is that GenericObjectPool has a default limit of
8 idle objects. What is happening is with your 1500 threads there will be at
most  POOLSIZE (20) active PoolWorker objects and up to 8 idle PoolWorker
objects for a total of 28 PoolWorker instances. When an active object is
returned, the idle pool may be full thus a PoolWorker is discarded. Then when
the idle pool is empty another but the number of active instances is under 20
anthor PoolWorker object will be created via makeObject.

Reopen this if you think I misunderstood you.

-- 
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