RFR: 8275037: Test vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree011.java crashes with memory exhaustion on Windows
Harold Seigel
hseigel at openjdk.java.net
Thu Nov 18 20:58:53 UTC 2021
On Tue, 16 Nov 2021 21:48:41 GMT, Harold Seigel <hseigel at openjdk.org> wrote:
> Please review this fix for JDK-8275037. The .../sysdict/vm/stress/btree tests were intermittently failing on Windows because invocations of javac by the tests were running out of memory. The fix sets the maximum heap to 1G when the tests invoke javac.
>
> Additionally, the fix ignores NoClassDefFoundError exceptions thrown by Class.forName() because those exceptions can be caused by a running out of memory when initializing a class.
>
> The fix was tested by running each .../sysdict/vm/stress test over 2000 times on Windows x64 debug builds. Additionally, each test was run hundreds of times on Linux x64, Linux aarch64, Macosx x64, and Macosx aarch64.
>
> Thanks, Harold
Hi David,
The default heap size on my Linux system is 31G. When I replaced -J-Xmx1G in GenClassesBuilder.java with -J-XX:+PrintFlagsFinal,, and ran the tests using Mach5, it showed max heap sizes of about 12G for Linux 64, Mac OS x64, and Windows x64.
Harold
-------------
PR: https://git.openjdk.java.net/jdk/pull/6419
More information about the hotspot-runtime-dev
mailing list