[Metrics] Container detection code for cgroups v2 should use cgroup.controllers

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: None
    • Component/s: core-svc
    • generic
    • linux

      Same issue as JDK-8347811 on the hotspot side, but for Java Metrics classes (Linux specific).

      Metrics implementation is based on cgroups which is created by class CgroupSubsystemFactory which incorrectly uses /proc/cgroups for finding enabled controllers. As a result the version detection scheme might be wrong since the version is detected based on /proc/cgroups which might provide incomplete data.

      We should fix this.

            Assignee:
            Unassigned
            Reporter:
            Severin Gehwolf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: