JDK-8273318 : Some containers/docker/TestJFREvents.java configs are running out of memory
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 11,17,18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-09-03
  • Updated: 2021-10-04
  • Resolved: 2021-09-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 18
17.0.2Fixed 18 b14Fixed
Related Reports
Relates :  
Description
$ 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, it is apparently too low.
Comments
Fix Request (17u) Clean backport to fix the test. Test starts to pass.
01-10-2021

Changeset: 7d24a334 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2021-09-08 07:43:28 +0000 URL: https://git.openjdk.java.net/jdk/commit/7d24a3342129d4c71fad0d8d50d20758291d64b7
08-09-2021