Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-650

Jvm nio bug in windows cause cpu spike

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.4.14
    • Fix Version/s: None
    • Component/s: HttpCore NIO
    • Labels:
      None
    • Environment:
      windows

      Description

      Recently, I found cpu spike when programer run about 2 hours, the stack refer that 

      readyCount = this.selector.select(selectTimeout); in org.apache.http.impl.nio.reactor.AbstractIOReactor#execute always run. I found the same issue in other project such as jetty(https://github.com/eclipse/jetty.project/issues/2205) and netty(https://github.com/netty/netty/issues/3857). According the info from these issue, it's a jvm nio bug in windos. I want to fix it quickly, so I create a pr to fix it. https://github.com/apache/httpcomponents-core/pull/226

        Attachments

        1. 95647544-cd788580-0b02-11eb-85a2-4b682054eba3.png
          144 kB
          Yan Zhao
        2. 96202208-33488f80-0f91-11eb-937e-7116a34f4ed9.png
          10 kB
          Yan Zhao
        3. 96218711-e4622080-0fb7-11eb-9354-f060f3c55bf8.png
          21 kB
          Yan Zhao
        4. 96358431-ac82e680-1139-11eb-9fc8-e84a48e2a029.png
          107 kB
          Yan Zhao
        5. stackInfo.txt
          149 kB
          Yan Zhao
        6. windows_nio_bug.mp4
          2.08 MB
          Yan Zhao

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              horizonzy Yan Zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: