Integrated: 8267404: vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java failed with OutOfMemoryError
Jie Fu
jiefu at openjdk.java.net
Sat May 22 23:03:02 UTC 2021
On Fri, 21 May 2021 05:11:51 GMT, Jie Fu <jiefu at openjdk.org> wrote:
> 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
This pull request has now been integrated.
Changeset: 6288a993
Author: Jie Fu <jiefu at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/6288a9936cc7e69cab0cc5f3e49c803f184bf2ca
Stats: 50 lines in 2 files changed: 0 ins; 32 del; 18 mod
8267404: vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java failed with OutOfMemoryError
Co-authored-by: xiangyuan <xiangyuan at tencent.com>
Reviewed-by: stuefe
-------------
PR: https://git.openjdk.java.net/jdk/pull/4140
More information about the hotspot-runtime-dev
mailing list