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

Igor Ignatyev iignatyev at openjdk.java.net
Tue Jun 29 15:39:05 UTC 2021


On Tue, 29 Jun 2021 14:04:40 GMT, Jie Fu <jiefu at openjdk.org> wrote:

>> Hi all,
>> 
>> Please review this patch which:
>>  1) Restore vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java
>>  2) Fix the OOME by adding `-XX:MaxRAMPercentage=25`
>> 
>> Testing:
>>   - Linux/x64, MacOS/x64
>> 
>> Thanks.
>> Best regards,
>> Jie
>
> @iignatev and @tstuefe , are you fine with this change?
> Thanks.

Hi @DamonFool ,

sorry I was on vacation and missed this PR.

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,
-- Igor

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

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


More information about the hotspot-runtime-dev mailing list