You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by GitBox <gi...@apache.org> on 2020/10/16 19:17:30 UTC

[GitHub] [httpcomponents-core] horizonzy opened a new pull request #226: Add workaround of java nio bug

horizonzy opened a new pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226


   Recently, I found my web programer cpu spike. finnly I found it should be java nio bug. refer eclipse/jetty.project#2205. I notice in my project, the logic in `org.apache.http.impl.nio.reactor.AbstractIOReactor#execute`,  exist `                        readyCount = this.selector.select(selectTimeout);`. This is the reason of cpu spike. So I want add a way to workaround it.
    I am not good at nio code, this is my clumsy code, I hope it will solve the cpu spike problem. If it can't work normally, can community create a pr to fix it? Thanks very much.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [httpcomponents-core] horizonzy edited a comment on pull request #226: Add workaround of java nio bug

Posted by GitBox <gi...@apache.org>.
horizonzy edited a comment on pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226#issuecomment-710781953


   > @horizo​​nzy不仅这种骇人听闻的骇人听闻,而且还没有令人信服的证据表明它确实可以解决问题。是否有针对此问题的复制器?
   
   Hi,ok2c 😄. Thanks for you notice this pr. I report it in jara(https://issues.apache.org/jira/projects/HTTPCORE/issues/HTTPCORE-650?filter=allopenissues). I supply some information in it. If you need more info, just cue me.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [httpcomponents-core] horizonzy edited a comment on pull request #226: Add workaround of java nio bug

Posted by GitBox <gi...@apache.org>.
horizonzy edited a comment on pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226#issuecomment-710781953


   > @horizo​​nzy Not only this hack is incredibly hideous, there is no convincing evidence that it actually solves the problem. Is there a reproducer for this issue?
   
   Hi,ok2c 😄. Thanks for you notice this pr. I report it in jara(https://issues.apache.org/jira/projects/HTTPCORE/issues/HTTPCORE-650?filter=allopenissues). I supply some information in it. If you need more info, just cue me.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [httpcomponents-core] horizonzy edited a comment on pull request #226: Add workaround of java nio bug

Posted by GitBox <gi...@apache.org>.
horizonzy edited a comment on pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226#issuecomment-710781953


   > @horizo​​nzy不仅这种骇人听闻的骇人听闻,而且还没有令人信服的证据表明它确实可以解决问题。是否有针对此问题的复制器?
   
   Hi,ok2c 😄. Thanks for you notice this pr. I report it in jara(https://issues.apache.org/jira/projects/HTTPCORE/issues/HTTPCORE-650?filter=allopenissues). I apply some information in it. If you need more info, just cue me.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [httpcomponents-core] horizonzy edited a comment on pull request #226: Add workaround of java nio bug

Posted by GitBox <gi...@apache.org>.
horizonzy edited a comment on pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226#issuecomment-710781953


   > @horizonzy Not only this hack is incredibly hideous, there is no convincing evidence that it actually solves the problem. Is there a reproducer for this issue?
   
   Hi,ok2c 😄. Thanks for you notice this pr. I report it in jara(https://issues.apache.org/jira/projects/HTTPCORE/issues/HTTPCORE-650?filter=allopenissues). I supply some information in it. If you need more info, just cue me.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [httpcomponents-core] ok2c commented on pull request #226: Add workaround of java nio bug

Posted by GitBox <gi...@apache.org>.
ok2c commented on pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226#issuecomment-710776862


   @horizonzy Not only this hack is incredibly hideous, there is no convincing evidence that it actually solves the problem. Is there a reproducer for this issue?    


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [httpcomponents-core] horizonzy commented on pull request #226: Add workaround of java nio bug

Posted by GitBox <gi...@apache.org>.
horizonzy commented on pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226#issuecomment-710781953


   > @horizo​​nzy不仅这种骇人听闻的骇人听闻,而且还没有令人信服的证据表明它确实可以解决问题。是否有针对此问题的复制器?
   
   Hi,ok2c 😄. Thanks for you notice this pr. I report it in jara(https://issues.apache.org/jira/projects/HTTPCORE/issues/HTTPCORE-650?filter=allopenissues). I apply some information in it. If you need more info, just refer me.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [httpcomponents-core] horizonzy edited a comment on pull request #226: Add workaround of java nio bug

Posted by GitBox <gi...@apache.org>.
horizonzy edited a comment on pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226#issuecomment-710781953


   > @horizo​​nzy不仅这种骇人听闻的骇人听闻,而且还没有令人信服的证据表明它确实可以解决问题。是否有针对此问题的复制器?
   
   Hi,ok2c 😄. Thanks for you notice this pr. I report it in jara(https://issues.apache.org/jira/projects/HTTPCORE/issues/HTTPCORE-650?filter=allopenissues). I apply some information in it. If you need more info, just call me.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [httpcomponents-core] horizonzy closed pull request #226: Add workaround of java nio bug

Posted by GitBox <gi...@apache.org>.
horizonzy closed pull request #226:
URL: https://github.com/apache/httpcomponents-core/pull/226


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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