RFR: 8267404: vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java failed with OutOfMemoryError

Jie Fu jiefu at openjdk.java.net
Fri May 21 09:01:35 UTC 2021


On Fri, 21 May 2021 08:44:02 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> Maybe this is already understood, but in case it is not clear: -XX:MetaspaceSize is only used to determine at what point the first metaspace-induced GC should happen. When the Metaspace is filled up to that value, we trigger a GC. It is -XX:MaxMetaspaceSize that is the limit of how much memory we may commit for the metaspace.

Got it.
Thanks @stefank for your clarification.

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

PR: https://git.openjdk.java.net/jdk/pull/4140


More information about the hotspot-runtime-dev mailing list