Integrated: 8264524: jdk/internal/platform/docker/TestDockerMemoryMetrics.java fails due to swapping not working

Jie Fu jiefu at openjdk.java.net
Tue Apr 6 23:08:23 UTC 2021


On Wed, 31 Mar 2021 15:53:28 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Hi all,
> 
> jdk/internal/platform/docker/TestDockerMemoryMetrics.java fails on some of our testing platforms.
> This is because testMemoryFailCount [1] fails due to OOM killed.
> This test fails to avoid OOM killed [2] if memory.failcnt is always 0.
> 
> The fix will print "Not OOM killed" if OOM killed doesn't happen.
> And also fix another bug if the test get returned here [3].
> 
> Testing: 
>   - jdk/internal/platform/docker/ hotspot/jtreg/containers on Linux/x64
> 
> Thanks.
> Best regards,
> Jie
> 
> [1] https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/internal/platform/docker/TestDockerMemoryMetrics.java#L80
> [2] https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/internal/platform/docker/MetricsMemoryTester.java#L87
> [3] https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/internal/platform/docker/MetricsMemoryTester.java#L96

This pull request has now been integrated.

Changeset: bfb034ab
Author:    Jie Fu <jiefu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/bfb034ab
Stats:     25 lines in 1 file changed: 23 ins; 0 del; 2 mod

8264524: jdk/internal/platform/docker/TestDockerMemoryMetrics.java fails due to swapping not working

Reviewed-by: sgehwolf

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

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


More information about the hotspot-runtime-dev mailing list