RFR: 8047998: -XX:MaxNewSize is unnecessarily set to NewSize if NewSize is too low

Albert Mingkun Yang ayang at openjdk.org
Mon May 29 11:45:57 UTC 2023


On Fri, 26 May 2023 14:04:03 GMT, Guoxiong Li <gli at openjdk.org> wrote:

> The condition MaxHeapSize == InitialHeapSize is often meet

True, but additionally specifying both `NewSize` and `MaxNewSize` is uncommon, IMO.

> I do worry that such exiting may break some current online systems

Actually, I think it's desirable to fail loudly if the JVM cmd flags contain errors. Hard to say whether this is an error or not, but debugging suboptimal performance (from incorrect heap/generation-size) is much harder. Therefore, notifying developers at jvm-startup when cmd flags can't be satisfied might be appreciated. Again, this setup should be rare.

(I agree this is subjective.)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13876#issuecomment-1567027624


More information about the hotspot-gc-dev mailing list