You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "赵延 (Jira)" <ji...@apache.org> on 2020/11/06 03:29:00 UTC

[jira] [Commented] (HTTPCORE-650) Jvm nio bug in windows cause cpu spike

    [ https://issues.apache.org/jira/browse/HTTPCORE-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17227145#comment-17227145 ] 

赵延 commented on HTTPCORE-650:
-----------------------------

[~olegk] Hi, I report it to oracle jdk team, they is tracing this issue [https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8255627.] It's show that this is an jvm in windows error. we use http-core in a open source project, if we fix it locally, we can't upgrade followed http-core release version. Can you support a way to work around to void it.

> Jvm nio bug in windows cause cpu spike
> --------------------------------------
>
>                 Key: HTTPCORE-650
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-650
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.4.14
>         Environment: windows 
>            Reporter: 赵延
>            Priority: Major
>         Attachments: 95647544-cd788580-0b02-11eb-85a2-4b682054eba3.png, 96202208-33488f80-0f91-11eb-937e-7116a34f4ed9.png, 96218711-e4622080-0fb7-11eb-9354-f060f3c55bf8.png, 96358431-ac82e680-1139-11eb-9fc8-e84a48e2a029.png, stackInfo.txt, windows_nio_bug.mp4
>
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org