Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8239785

Cgroups: Incorrect detection logic on old systems in hotspot

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b15
    • OS:
      linux

      Description

      This bug is similar to JDK-8239559, but for hotspot's cgroup version detection heuristic. Currently on old systems it prints this (even though this is cgroups v1):

      ./images/jdk/bin/java -Xlog:os+container=trace -version
      [0.004s][trace][os,container] OSContainer::init: Initializing Container Support
      [0.005s][trace][os,container] Mount point for cgroupv2 not found in /proc/self/mountinfo
      openjdk version "15.0.0.1-internal" 2020-02-20

      This used to be:
      # java -Xlog:os+container=trace -version
      [0.000s][trace][os,container] OSContainer::init: Initializing Container Support
      [0.001s][debug][os,container] Required cgroup memory subsystem not found

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sgehwolf Severin Gehwolf
                Reporter:
                sgehwolf Severin Gehwolf
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: