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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 8u144, 9, 10
    • core-svc
    • b01

      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 container 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.

        There are no Sub-Tasks for this issue.

            bobv Bob Vandette (Inactive)
            bobv Bob Vandette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: