NewRatio参数不适用于CMS垃圾收集器 [英] NewRatio parameter not working with CMS garbage collector
问题描述
4G
。 JVM默认使用非常小的尺寸(小于 40MB
)。我想通过增加年轻gen的大小来尝试CMS。你能指出我对这个JVM参数吗? - 我尝试了-XX:NewRatio,但JVM忽略了这个参数,并且年轻的gen size没有变化
- 我的Java版本是
java版本1.6.0_14
您是如何设置 -XX:NewRatio
以及哪个JVM版本的?
反正。如果您还设置了 -XX:MaxNewSize = size
这是一项功能,或者您还将 -XX:+设置为UseConcMarkSweepGC
这是已知错误。
I switched to CMS collector for my application and throughput of application decreased by half. From GC logs, I see a high frequency of minor GCs happening (aroung 10 per second
). I have allocated a heap size of 4G
. The JVM be default is using very small size for young gen (less than 40MB
). I want to try out CMS via increasing the size of young gen. Can you point me to right JVM parameter for this.
- I tried -XX:NewRatio but JVM ignored this parameter and there was no change in young gen sizes
- My java version is
java version "1.6.0_14"
How did you set -XX:NewRatio
, and on which JVM version?
Anyway. It could be ignored if you are also setting -XX:MaxNewSize=size
, which is a feature, or if you are also setting -XX:+UseConcMarkSweepGC
which is a known bug.
这篇关于NewRatio参数不适用于CMS垃圾收集器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!