Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
I start 1000 thread for NM and 1000 thread for AM in fairscheduler pressure test, using Scheduler Load Simulator(SLS) tool.
In jstack log, I found SocketIOWithTimeout remove idle selectors after every select Operation.
That will block 1000+ threads when doing iterator .
for(Iterator<SelectorInfo> it = pList.queue.iterator(); it.hasNext();) { SelectorInfo info = it.next(); if (info.lastActivityTime > cutoff) { break; } it.remove(); info.close(); }