-Xms 真的禁用 XX:MaxRAMPercentage 吗?禁用XX:MaxRAMPercentage不应该是-Xmx吗?

Does -Xms really disable XX:MaxRAMPercentage? Shouldn't it be -Xmx that disables XX:MaxRAMPercentage?

根据 Eclipse and IBM,如果您指定 -Xms-XX:MaxRAMPercentage 将被忽略。不应该是

引用自Eclipse and IBM:

Note: If you set a value for -Xms, these options are ignored.

注意:您可能会考虑将其标记为 的副本,但在那个问题中,他们会询问 Xmx 是否分别覆盖 XX:MaxRAMPercentage 。这里我想知道 Xms overrides/disables XX:MaxRAMPercentage.

@Holger 的 回答了这个问题。

  • @Holger 测试了 openjdk 11,发现 -Xms-XX:MaxRAMPercentage=75.0
  • 没有影响
  • @joseph 测试了 openjdk 8,还观察到 -Xms-XX:MaxRAMPercentage=75.0
  • 没有影响

那些 Eclipse 和 IBM 文档不正确。