ADDITIONAL SYSTEM INFORMATION :
os: Windows 10.
jdk: java version "1.8.0_191" Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Recently, I found that java.nio (windows) can't block, invoke selector.select(1000) without connect event, but it just return.
I notice JDK-4408470 is the same issue, but it signed solved. In fact, some people still meet this case.
Some open source meet same case.
netty: https://github.com/netty/netty/issues/3857
jetty: https://github.com/netty/netty/issues/3857
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
step1. Find a windows pc.
step2. Install HttpDebugger
step3. Run application which use nio selector.select()
step4. Wait 2 hours
step5. CPU spikes
HttpDebugger looks to be an application that uses Windows Layered Service Provider or Windows Filtering Platform to do proxy-less network interception.
ACTUAL -
cpu spikes
FREQUENCY : always