Closed C-h-e-r-r-y closed 5 years ago
It looks like you need to set numTestsPerRun
:
"Number of resources to check each eviction run. Default: 3."
I meet the same problem. In _evict, the shouldEvict flag is set to true while the resource is defined idle, then the resource would be destroyed and removed from _evictionIterator. But the _evictionIterator.remove will make iterator to done, then break in the next loop.
this was fixed in #243
Consider the following pool configuration:
At the begining there are 6 phantom processes. And they evidicted one by opne with
evictionRunIntervalMillis
. So after 1 minute there 5 processes, after 2 minutes 4 etc.Is it correct behavior? I think with
softIdleTimeoutMillis
andidleTimeoutMillis
every instance should be deleted after 2 minutes.