commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <>
Subject [pool] Exception in GKOP allocate()
Date Mon, 25 May 2009 14:22:18 GMT
I just saw this in one of my load tests

[java] java.util.NoSuchElementException
     [java]     at java.util.LinkedList.remove(
     [java]     at java.util.LinkedList.removeFirst(
     [java]     at 
     [java]     at 

Looks to me like before entering the permit-dispensing block, we need to 
make sure there are latches left to be served in the allocation queue.

IIRC what is going on,  this should happen (so could be unit-tested) 
when there are n threads waiting and m instances in one of the pools, 
with n < = m < maxActive, so they all get served from the idle pool, but 
there is still capacity to create.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message