JDK-8305562 : Release Note: Cgroups v2: Container awareness
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: openjdk8u372
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2023-04-04
  • Updated: 2023-12-08
  • Resolved: 2023-04-04
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.
Other
openjdk8u372Resolved
Description
The HotSpot runtime code as well as the core libraries code in the JDK has been updated in order to detect a cgroup v2 host system when running OpenJDK within a Linux container.

Since the 8u202 release of OpenJDK, the container detection code recognized cgroup v1 (legacy) host Linux systems. With 8u372 and later releases, both versions of the underlying cgroups pseudo filesystem will be detected and corresponding container limits applied to the OpenJDK runtime.

Without this enhancement, OpenJDK would not apply container resource limits when running on a cgroup v2 Linux host system, but would use the underlying hosts' resource limits instead.