RFR: 8273318: Some containers/docker/TestJFREvents.java configs are running out of memory
Aleksey Shipilev
shade at openjdk.java.net
Fri Sep 3 10:47:43 UTC 2021
$ CONF=linux-x86_64-server-fastdebug make run-test TEST=containers/docker/TestJFREvents.java
STDERR:
stdout: [];
stderr: [WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
]
exitValue = 137
java.lang.RuntimeException: Expected to get exit value of [0]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489)
at TestJFREvents.testContainerInfo(TestJFREvents.java:110)
at TestJFREvents.containerInfoTestCase(TestJFREvents.java:89)
at TestJFREvents.main(TestJFREvents.java:74)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:833)
`exitValue = 137` suggests the container was killed by OOM killer. The failing configuration is with `64m`, and it is apparently too low.
Additional testing:
- [x] Affected test now passes (5 runs out of 5 tries)
- [x] `containers/docker` tests pass
-------------
Commit messages:
- Try larger memories
Changes: https://git.openjdk.java.net/jdk/pull/5359/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5359&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8273318
Stats: 7 lines in 1 file changed: 1 ins; 0 del; 6 mod
Patch: https://git.openjdk.java.net/jdk/pull/5359.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5359/head:pull/5359
PR: https://git.openjdk.java.net/jdk/pull/5359
More information about the hotspot-dev
mailing list