On Tue, 2 Jul 2024 20:49:05 GMT, Dean Long <dl...@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