[jdk17] RFR: 8269065: [REDO] vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java failed with OutOfMemoryError

Jie Fu jiefu at openjdk.java.net
Tue Jun 29 23:31:02 UTC 2021


On Tue, 29 Jun 2021 15:36:24 GMT, Igor Ignatyev <iignatyev at openjdk.org> wrote:

> in general it looks ok, but I can't help but wonder why have you replaced `-XX:MaxMetaspaceSize=8m` w/ `-XX:MetaspaceSize=10m -XX:MaxMetaspaceSize=20m`; won't removing `-Xmx` and adding `-XX:MaxRAMPercentage=25` be sufficient?

Thanks @tstuefe and @iignatev for your review.

This is because the original test uses `-XX:MetaspaceSize=10m -XX:MaxMetaspaceSize=20m` [1] .
To lower the risk, only `-XX:MaxRAMPercentage=25` is added compared with the original code.

Thanks.

[1] https://github.com/openjdk/jdk16u/blob/master/test/hotspot/jtreg/vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java#L39

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

PR: https://git.openjdk.java.net/jdk17/pull/104


More information about the hotspot-runtime-dev mailing list