[英]SurvivorRatio flag of JVM does not work?
The document from Oracle writes "The SurvivorRatio
parameter controls the size of the two survivor spaces. For example, -XX:SurvivorRatio=6
sets the ratio between each survivor space and eden to be 1:6, each survivor space will be one eighth of the young generation", but it does not work in my case below. Oracle的文档中写道:“ SurvivorRatio
参数控制两个幸存空间的大小。例如, -XX:SurvivorRatio=6
将每个幸存空间与eden之比设置为1:6,每个幸存空间将为两个的八分之一。的年轻一代”,但在下面的我的案例中却无效 。
The JVM Flags I set: 我设置的JVM标志:
The JVM heap infomation: JVM堆信息:
The gcutil output every 1 second: gcutil每1秒输出一次:
Here are the questions: 这里是问题:
I solved it! 我解决了!
-XX:+UseAdaptiveSizePolicy
is enabled by default, and is incompatible with -XX:SurvivorRatio=n
. -XX:+UseAdaptiveSizePolicy
默认情况下-XX:+UseAdaptiveSizePolicy
启用状态,并且与-XX:SurvivorRatio=n
不兼容。 After when I used -XX:-UseAdaptiveSizePolicy
to disable adaptive size policy, it works now. 当我使用-XX:-UseAdaptiveSizePolicy
禁用自适应大小策略后,它现在可以工作了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.