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

jcmd -l and jps commands do not list Java processes running in Docker containers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u144, 9, 10
    • Fix Version/s: 11
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b01

      Description

      Issue JDK-8179498 resolved the problem of connecting to a Java process running inside of Docker containers but an issue still remains when trying to run jcmd -l to list all Java processes running on a Linux system.

      The problem stems from the fact that jcmd -l looks in /tmp to locate running java processes. Since /tmp inside of a contain is not directly visible to the host, these processes are not located.

      A potential solution is to look in /proc/*/root/tmp for the hsperf* files.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bobv Bob Vandette
                Reporter:
                bobv Bob Vandette
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: