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

[TESTBUG] Create JCMD tests for Docker and JFR

    Details

    • Subcomponent:
      jfr

      Description

      A common scenario where a Monitored VM runs inside a Docker container, while the observer tool/process is on a host system. The observer should be able to control JFR recording via JCMD (JFR.start/stop/check/dump).

       Important notes:
       -- jcmd -l (list) running outside of the container (on a host system) does not seem to work (investigation in progress)
       -- use 'ps' command to discover the observed JVM process
       -- in order for JCMD and attach (com.sun.tools.attach.VirtualMachine.attach) to work, the user ID of the monitored VM should match or be accessible by the user of the observer tool/process; for that, use the following:
           - run "id" on the host system, record user ID of the 'test' user (aka observer)
           - when starting docker, use --user=<UID> (E.g.: docker run --user=123456)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mseledtsov Mikhailo Seledtsov
                Reporter:
                mseledtsov Mikhailo Seledtsov
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: