RFR: 8267404: vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java failed with OutOfMemoryError [v3]
Jie Fu
jiefu at openjdk.java.net
Fri May 21 15:19:17 UTC 2021
> Hi all,
>
> vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java OOMEs on Oracle's aarch64 platforms.
> The reason is that both -Xmx and -XX:MetaspaceSize are not enough.
>
> From the original JBS decription of JDK-8267404, the VM OOMEs before the expected OOME in metaspace happened showing that -Xmx256m is not enough.
>
> Then, @dcubed-ojdk helped me test with -Xmx512, which still OOMEs.
> However, the expected OOME in metaspace was caught this time.
> But a second uncaught OOME in metaspace happened soon, which means -XX:MetaspaceSize=8m is not enough.
>
> So both -Xmx and -XX:MetaspaceSize should be increased.
> The fix just:
> - Revert changes about mataspace size setting
> - Increase -Xmx from 256m to 1g
>
> -Xmx512m may be OK on Oracle's aarch64 machines, but to make it safer, -Xmx1g is preferred.
>
> Thanks.
> Best regards,
> Jie
Jie Fu has updated the pull request incrementally with one additional commit since the last revision:
Increase MaxMetaspaceSize to 512k
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/4140/files
- new: https://git.openjdk.java.net/jdk/pull/4140/files/87791076..b8df6e06
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4140&range=02
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4140&range=01-02
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/4140.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4140/head:pull/4140
PR: https://git.openjdk.java.net/jdk/pull/4140
More information about the hotspot-runtime-dev
mailing list