Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255627

(se) Non-blocking I/O error in java.nio still exists (windows)

XMLWordPrintable

    • x86_64
    • windows_10

      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


        1. test.mp4
          1.53 MB
        2. test.java
          0.4 kB

            bpb Brian Burkhalter
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: