We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb0775f commit 7c872edCopy full SHA for 7c872ed
src/java.base/linux/classes/jdk/internal/platform/cgroupv1/Metrics.java
@@ -116,7 +116,10 @@ private static Metrics initContainerSubSystems() {
116
try (Stream<String> lines =
117
readFilePrivileged(Paths.get("/proc/self/cgroup"))) {
118
119
- lines.map(line -> line.split(":"))
+ // The limit value of 3 is because /proc/self/cgroup contains three
120
+ // colon-separated tokens per line. The last token, cgroup path, might
121
+ // contain a ':'.
122
+ lines.map(line -> line.split(":", 3))
123
.filter(line -> (line.length >= 3))
124
.forEach(line -> setSubSystemPath(metrics, line));
125
0 commit comments