-
Enhancement
-
Resolution: Fixed
-
P4
-
8u192, 11.0.2, 12
-
b18
-
linux_redhat_8.0
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8253784 | 11.0.10-oracle | Bob Vandette | P4 | Resolved | Fixed | b01 |
JDK-8236765 | 11.0.7 | Severin Gehwolf | P4 | Resolved | Fixed | b01 |
JDK-8258044 | openjdk8u292 | Severin Gehwolf | P4 | Resolved | Fixed | b01 |
JDK-8254036 | 8u281 | Harold Seigel | P4 | Resolved | Fixed | b01 |
JDK-8257281 | emb-8u281 | Harold Seigel | P4 | Resolved | Fixed | team |
Current container awareness for OpenJDK seems to work for systemd
slices too, on some systems. To be precise, this works for older
Kernels e.g. 3.10. However, we've noticed that this breaks for newer
Kernel versions[1] such as the one in F28, currently 4.19.14-200. If
the container support would also look at hierarchical memory limits
exposed via memory.stat in the cgroup file system, it would again
work[2]. A proof of concept implementation is here:
http://cr.openjdk.java.net/~sgehwolf/webrevs/container-systemd-slice-01/webrev/
This enhancement wouldn't change any existing container memory limit
detection as it only kicks in when all other look-ups determined that
there is no limit in place. I've verified this by running Docker
container tests. The idea is to look for hierarchical_memory_limit and
hierarchical_memsw_limit lines in the memory.stat file of the cgroup
tree.
Would it be possible to consider such an enhancement upstream? If so,
I'll file a bug and propose it for review.
This issue has been originally raised here:
https://bugzilla.redhat.com/show_bug.cgi?id=1509371
[1] Java process gets killed by oom killer.
See: http://cr.openjdk.java.net/~sgehwolf/webrevs/container-systemd-slice-01/before.txt
[2] Java process throws OutOfMemoryError as expected.
See: http://cr.openjdk.java.net/~sgehwolf/webrevs/container-systemd-slice-01/after.txt
- backported by
-
JDK-8236765 [Containers] Improve systemd slice memory limit support
- Resolved
-
JDK-8253784 [Containers] Improve systemd slice memory limit support
- Resolved
-
JDK-8254036 [Containers] Improve systemd slice memory limit support
- Resolved
-
JDK-8257281 [Containers] Improve systemd slice memory limit support
- Resolved
-
JDK-8258044 [Containers] Improve systemd slice memory limit support
- Resolved
- is blocked by
-
JDK-8220579 [Containers] SubSystem.java out of sync with osContainer_linux.cpp
- Resolved
- relates to
-
JDK-8258241 [8u] Missing doPrivileged() hunks from JDK-8226575
- Resolved
-
JDK-8331560 Refactor Hotspot container detection code so that subsystem delegates to controllers
- Resolved
-
JDK-8333446 Add tests for hierarchical container support
- Resolved
-
JDK-8322420 [Linux] cgroup v2: Limits in parent nested control groups are not detected
- Resolved