On the Java Posse mailing list, someone posted a question about a JVM that was eating CPU like candy from a baby.
Here's the problem from the mailing list:
I found a java process whose cpu is almost 100% at my notebook.
Here is the top output:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
6150 root 20 0 1411m 612m 12m R 98.8 15.7 45:49.12
and the jstack output for thread 6150(0x1806):
"VM Thread" prio=10 tid=0x0000000040ca9000 nid=0x1806 runnable
the last is jstat -gc output:
S0C S1C S0U S1U EC EU OC OU PC PU YGC YGCT FGC FGCT GCT
64.0 64.0 0.0 0.0 332992.0 0.0 666304.0 73192.5 83968.0 83967.9 6893 17.576 6882 2705.923 2723.499
Before you read further, take a look at this and see if you can tell what the problem is...
Now for the solution. Kirk Pepperdine said this:
YGC (Young gen count) is 6893 and FGCT is 6882 which is a completely ridiculous full GC to GC ratio. As for the times, YGCT is 17.56 where as FGCT is 2705.923 giving a 99.9% Full GC to GC ratio. A normal FGC:GC ratio should be less than 5% and less than 1% is desirable.
Second observation
PC is perm gen configured @ 83968 and PU perm gen used at 83967.9
Diagnosis: Frequent Full GC's due to Perm Gen being full.
Solution: Increase the size of perm gen using -XX:MaxPermSize.
相关推荐
学习笔记——JVM性能调优之 jstat(csdn)————程序
Jvm性能优化-JVM内存结构原理分析03
jvm性能调优-jvm内存模型和优化-performance-jvm-memorymodel-optimize
Moonbox(月光宝盒)是JVM-Sandbox生态下的,基于jvm-sandbox-repeater重新开发的一款流量回放平台产品。在jvm-sandbox-repeater基础上提供了更加丰富功能,同时便于线上部署和使用,更多对比参考。 使用场景 你...
nginx-upstream-jvm-route 支持nginx版本1.15 解决nginx: [emerg] invalid parameter "srun_id=tomcat1" 问题
主要介绍了JVM---jstack分析Java线程CPU占用,线程死锁的解决,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
JVM调优总结 -Xms -Xmx -Xmn -Xss
代码如下:failed to create jvm error code -4 这一般应是内存不够用所致,解决方法参考如下。 打开 Android Studio 安装目录下的bin目录,查找并打开文件 studio.exe.vmoptions,修改代码: 代码如下:-Xmx512m 为...
赠送jar包:metrics-jvm-3.1.5.jar; 赠送原API文档:metrics-jvm-3.1.5-javadoc.jar; 赠送源代码:metrics-jvm-3.1.5-sources.jar; 赠送Maven依赖信息文件:metrics-jvm-3.1.5.pom; 包含翻译后的API文档:...
JVM性能调优-JVM内存整理及GC回收
JVM性能调优-JVM内存整理及GC回收.pdf
jvm 调优笔记-jvm
赠送jar包:metrics-jvm-3.1.5.jar; 赠送原API文档:metrics-jvm-3.1.5-javadoc.jar; 赠送源代码:metrics-jvm-3.1.5-sources.jar; 赠送Maven依赖信息文件:metrics-jvm-3.1.5.pom; 包含翻译后的API文档:...
jvm-full-gc调优-jvm-full-gc
nginx-upstream-jvm-route-0.1.tar.gz 用来实现Nginx Tomcat 集群session复制的问题!
jvm性能调优-垃圾收集器parnew&CMS底层三色标记算-performance-gc-parnew-cms
JVM性能优化笔记 ------------------------------------------
jvm性能调优,主要讲解jvm性能调优和垃圾回收性能优化
mini-jvm in rust实现jvm,jvm-rs-main.zip
JVM调优总结 -Xms -Xmx -Xmn -Xss JVM调优总结 -Xms -Xmx -Xmn -Xss