Hung JVM consuming 100% CPU

后端 未结 2 1968
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 17:58

We have a JAVA server running on Sun JRE 6u20 on Linux 32-bit (CentOS). We use the Server Hotspot with CMS collector with the following options (I\'ve only provided the relevant

相关标签:
2条回答
  • 2021-02-05 18:31

    It looks like a GC tuning problem, possibly triggered by a memory leak. I suggest that you add the JVM parameter that turns on GC logging, and see if that gives you any insights.

    Does it look like a JVM bug?

    Not to me.

    When you run out of heap space (for example, as a result of a storage leak) it is common to see the GC running more and more frequently and using a larger and larger percentage of the CPU. There are some JVM parameters that you can set to avoid this, but they have the effect of causing your JVM to keel over sooner with an OOME. (This may sound strange, but it in many cases this is a good thing because it reduces the time until your system is restarted and is able to run normally again.)

    0 讨论(0)
  • 2021-02-05 18:34

    I am also having this problem on a Linux 64bit Fedora15. I am running tomcat using JSVC on port 80. And some times jvm hangs taking 100% CPU. But when I run

    jmap -F -histo [tomcat-pID] 
    

    everything goes back to normal.

    I read http://mail-archives.apache.org/mod_mbox/tomcat-users/200305.mbox/%3C3EB7FC4D.7040306@sfw.com.br%3E

    But this issue started happening all of a sudden without any change in the codebase.

    0 讨论(0)
提交回复
热议问题