RFR: 8346998: Test nsk/jvmti/ResourceExhausted/resexhausted003 fails with java.lang.OutOfMemoryError when CDS is off
David Holmes
dholmes at openjdk.org
Tue Jan 7 04:22:35 UTC 2025
On Tue, 7 Jan 2025 03:09:59 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> Test nsk/jvmti/ResourceExhausted/resexhausted003 limits metaspace size. 9m is not enough if sharing classes are disabled.
> It starts failing with -XX:+UseCompactObjectHeaders just because CDS archives are no built this mode. Never executed with CDS off before.
>
> Verified that it pass now with CDS off with and without UseCompactObjectHeaders.
>
> I removed also other heap limits just because they are not needed and only might confuse test readers.
test/hotspot/jtreg/vmTestbase/nsk/jvmti/ResourceExhausted/resexhausted003/TestDescription.java line 43:
> 41: * -agentlib:resexhausted=-waittime=5
> 42: * -Xms64m
> 43: * -Xmx64m
Don't you need these to ensure we get OOME in a reasonable amount of time on systems with huge memories?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22936#discussion_r1904887081
More information about the serviceability-dev
mailing list