| Other |
|---|
| tbdUnresolved |
|
Blocks :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
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)
|