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=35617>.
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=35617

           Summary: NumActive goes to negative when the pool can't create
                    more objects
           Product: Commons
           Version: 1.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Pool
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Under heavy usage on multithreaded environment, the pool start to show 
NumActive property as negative value.

We've implemented a pool of sockets and if there is a problem creating new 
sockets after some time of successful operation, the pool starts trying to 
create new sockets but while trying to create them, it goes removing invalid 
instances from the pool and after the evictor runs, it starts to invalidate the 
objects, making the numActive property stay negative.

I changed the class GenericObjectPoolImpl to check if _numActive property is 
bigger than Zero, before decrementing it and I'd like to know if this is ok so 
I can submit a patch. From my tests, it's working fine after checking if 
numActive is > than zero before executing numActive--.

Daniel

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to