RFR: 8264524: jdk/internal/platform/docker/TestDockerMemoryMetrics.java fails due to OOM killed [v2]
Jie Fu
jiefu at openjdk.java.net
Fri Apr 2 04:03:45 UTC 2021
> 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
Jie Fu has updated the pull request incrementally with one additional commit since the last revision:
Check swapping before testing
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/3286/files
- new: https://git.openjdk.java.net/jdk/pull/3286/files/09468a16..3e1c446d
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3286&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3286&range=00-01
Stats: 28 lines in 2 files changed: 16 ins; 6 del; 6 mod
Patch: https://git.openjdk.java.net/jdk/pull/3286.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3286/head:pull/3286
PR: https://git.openjdk.java.net/jdk/pull/3286
More information about the hotspot-runtime-dev
mailing list