UseAdaptiveSizePolicy和其他jvm选项 [英] UseAdaptiveSizePolicy and other jvm opts

查看:1384
本文介绍了UseAdaptiveSizePolicy和其他jvm选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JVM选项-XX:+ UseAdaptiveSizePolicy被定义为热点人体工程学的一部分,可以使用吞吐量或暂停时间优先级来指定。

The JVM option -XX:+UseAdaptiveSizePolicy is defined as part of the hotspot ergonomics and can be specified with throughput or the pause time priority.

然而,我的问题是 - 是否正确提到其他jvm选项,如NewSize和SurvivorRatio一起提到它?这样做的确切影响是什么?

However, my question is - is it right to have the other jvm options like NewSize and SurvivorRatio mentioned along with it?. What exactly is the impact of doing that?

推荐答案

仅供参考, -XX:+ UseAdaptiveSizePolicy 默认启用在任何最新版本的Sun JVM中。

Just FYI, -XX:+UseAdaptiveSizePolicy is enabled by default in any recent version of the Sun JVM.

此外,我发现一篇文章


避免麻烦 -XX:SurvivorRatio =
选项不兼容使用JVM
参数 -XX:+ UseAdaptiveSizePolicy
请根据
使用其中任何一种情况。

Avoid trouble: -XX:SurvivorRatio= option is incompatible with the JVM parameter -XX:+UseAdaptiveSizePolicy. Please use either one according to your situation.

我无法找到明确的答案 NewSize ,但它似乎设置了初始年轻代的大小,而不是永久性的,所以它与 UseAdaptiveSizePolicy不相互排斥

I couldn't find a definitive answer for NewSize, but it appears it sets the initial young generation size, not permanent, so it's not mutually exclusive with UseAdaptiveSizePolicy.

但是,这里有一堆文章:

However, here's a bunch of articles:

  • http://download.oracle.com/javase/1.5.0/docs/guide/vm/gc-ergonomics.html
  • http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html
  • http://developers.sun.com/mobility/midp/articles/garbagecollection2/

但在大多数情况下,如果你重新调整 SurvivorRatio 将调整 NewSize MaxNewSize

In most cases, however, if you're tuning SurvivorRatio will want to tune NewSize and MaxNewSize.

这篇关于UseAdaptiveSizePolicy和其他jvm选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆