JDK-8245543 : Cgroups: Incorrect detection logic on some systems (still reproducible)
Type:Bug
Component:core-libs
Affected Version:15
Priority:P4
Status:Resolved
Resolution:Fixed
OS:linux
CPU:x86
Submitted:2020-05-21
Updated:2023-01-13
Resolved:2020-10-09
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.
I still reproduce JDK-8239559 issue on r59373 revision.
In attach: system details, output and workaround diff.
Comments
Fix Request (8u)
Please consider this for 8u as part of cgroups v2 support. Not clean: adjustments for logging and use of Optional.isEmpty in a test. Thanks!
15-12-2022
A pull request was submitted for review.
URL: https://git.openjdk.org/jdk8u-dev/pull/159
Date: 2022-11-07 10:30:16 +0000
07-11-2022
Fix Request (OpenJDK 11u):
Please approve backporting this fix to 11u-dev. The JDK 16 patch applies clean and included tests pass. It fixes a regression on detecting the correct cgroups version in use on some systems. Existing container tests pass on my cgroups v1 and cgroups v2 systems. This is part of the batch for the cgroups v2 support work for 11u.
05-04-2022
A pull request was submitted for review.
URL: https://git.openjdk.java.net/jdk11u-dev/pull/994
Date: 2022-04-04 17:23:52 +0000
This systemd only mount with cgroup FS type triggers the problem:
35 26 0:26 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime - cgroup systemd rw,name=systemd