-
Bug
-
Resolution: Fixed
-
P3
-
12
-
b26
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8268486 | 18 | Kevin Walls | P3 | Closed | Not an Issue | b26 |
JDK-8271134 | 16u-cpu | Kevin Walls | P3 | Resolved | Fixed | master |
1. jcmd -l works across container boundaries. That is, if JCMD runs on the host system outside of the container, while the observed JVM process runs inside a container, the JCMD will see that process and report its PID. Important to note that for this to work, both UserName and UID of the JCMD and the observed process must match, which the test strives to do.
2. However, any other JCMD commands to the process running inside a container fails.
The test uses simple "jcmd <PID> help", and that fails.
It seems that the signal is sent to the observed process, the process receives the signal, but JCMD and observed process fail to establish the communication.
================= Failure:
STDERR:
stdout: [19761:
];
stderr: [com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/19761/root/tmp/.java_pid1: target process 19761 doesn't respond within 10500ms or HotSpot VM not loaded
at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:100)
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
at jdk.jcmd/sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:115)
at jdk.jcmd/sun.tools.jcmd.JCmd.main(JCmd.java:99)
]
exitValue = 1
- backported by
-
JDK-8271134 JCMD and attach fail to work across Linux Container boundary
-
- Resolved
-
-
JDK-8268486 JCMD and attach fail to work across Linux Container boundary
-
- Closed
-
- blocks
-
JDK-8222043 [TESTBUG] Create JCMD tests for Docker and JFR
-
- Open
-
- relates to
-
JDK-8195809 [TESTBUG] jps and jcmd -l support for containers is not tested
-
- Resolved
-
-
JDK-8214300 .attach_pid files may remain in the process cwd
-
- Resolved
-
-
JDK-8179498 attach in linux should be relative to /proc/pid/root and namespace aware
-
- Resolved
-
-
JDK-8227122 [TESTBUG] Create Docker sidecar test cases
-
- Resolved
-