-
Bug
-
Resolution: Fixed
-
P4
-
11.0.17, 17.0.5, 21, 22
-
b17
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8317828 | 21.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b03 |
JDK-8320498 | 17.0.11-oracle | ANANT SINGH | P4 | Resolved | Fixed | b01 |
JDK-8321243 | 17.0.11 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8320497 | 11.0.23-oracle | ANANT SINGH | P4 | Resolved | Fixed | b01 |
JDK-8320160 | 8u411 | ANANT SINGH | P4 | Resolved | Fixed | b01 |
```
$ CONF=linux-x86_64-server-fastdebug make test TEST=containers/docker TEST_VM_OPTS="-XX:+UseParallelGC"
...
[0.002s][trace][os,container] CgroupSubsystem::active_processor_count (cached): 36^M
];
stderr: []
exitValue = 137
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [137]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
at jdk.test.lib.containers.docker.Common.run(Common.java:108)
at TestMemoryWithCgroupV1.testMemoryLimitWithSwappiness(TestMemoryWithCgroupV1.java:83)
at TestMemoryWithCgroupV1.main(TestMemoryWithCgroupV1.java:61)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1570)
```
dmesg says:
```
[387702.462552] Tasks state (memory values in pages):
[387702.466721] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[387702.474297] [ 4318] 0 4318 455731 30386 393216 0 0 java
[387702.481643] oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=04fc22b6369352a1472928ae217c0e90282d164604894bfe4d29424bb6ece541,mems_allowed=0,oom_memcg=/docker/04fc22b6369352a1472928ae217c0e90282d164604894bfe4d29424bb6ece541,task_memcg=/docker/04fc22b6369352a1472928ae217c0e90282d164604894bfe4d29424bb6ece541,task=java,pid=4318,uid=0
[387702.504062] Memory cgroup out of memory: Killed process 4318 (java) total-vm:1822924kB, anon-rss:100120kB, file-rss:21424kB, shmem-rss:0kB, UID:0 pgtables:384kB oom_score_adj:0
```
- backported by
-
JDK-8317828 containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
- Resolved
-
JDK-8320160 containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
- Resolved
-
JDK-8320497 containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
- Resolved
-
JDK-8320498 containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
- Resolved
-
JDK-8321243 containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
- Resolved
- relates to
-
JDK-8284950 CgroupV1 detection code should consider memory.swappiness
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/9c643df7
-
Commit openjdk/jdk21u/2f6d7adb
-
Commit openjdk/jdk/7352bb91
-
Review openjdk/jdk17u-dev/2008
-
Review openjdk/jdk21u/235
-
Review openjdk/jdk/15840