RFR: 8323640: [TESTBUG]testMemoryFailCount in jdk/internal/platform/docker/TestDockerMemoryMetrics.java always fail because OOM killed [v3]

SendaoYan syan at openjdk.org
Wed Jul 3 01:30:35 UTC 2024


On Tue, 2 Jul 2024 20:49:05 GMT, Dean Long <dlong at openjdk.org> wrote:

> Why does 8M trigger the OOM Killer, but 1M does not?

8M trigger the OOM killer on some environments, maybe there are some test machines that 8M trigger the OOM exception rather than OOM killer.
The intention of change `8M chunks per iteration` to `1M chunks per iteration`, is make sure this testcase throw OOM exception and then [break the memory allocation loop](https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/internal/platform/docker/MetricsMemoryTester.java#L88) before jvm process OOM killed by docker container.

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

PR Comment: https://git.openjdk.org/jdk/pull/17514#issuecomment-2204847751


More information about the serviceability-dev mailing list