RFR(S): 8195809: [TESTBUG] jps and jcmd -l support for Docker containers is not tested

mikhailo.seledtsov at oracle.com mikhailo.seledtsov at oracle.com
Thu Aug 8 17:46:22 UTC 2019

There was little activity for this issue, while I am addressing other 
container related issues, including this one:

"8228960: [TESTBUG] containers/docker/TestJcmdWithSideCar.java: jcmd 
reports main class as 'Unknown'". The 8195809 is based on 8228960, 
hence, I will pause work on this issue (8195809) until the 8228960 is 
fully resolved.

Thank you,

On 7/31/19 8:56 PM, mikhailo.seledtsov at oracle.com wrote:
> Severin, Bob, Leonid,
>    Thank you for the initial round of review and your feedback. I will 
> address your feedback and post an updated webrev in the next couple of 
> days.
> Thank you,
> Misha
> On 7/29/19 8:46 PM, mikhailo.seledtsov at oracle.com wrote:
>> Please review this change that:
>>   - adds test case for "jcmd -l" and "jcmd <pid> help" where jcmd is 
>> executed on a host/node outside the container,
>>     while a targeted JVM is running inside a container
>>   - factors out some common functionality to DockerTestUtils and 
>> docker.Common
>> Please note:
>>   - the "jcmd -l" works in this configuration, however the JCMD's and 
>> Target's username and UID have to match
>>     (per design)
>>   - the "jcmd help", "jcmd JFR.start" or any other JCMD command 
>> besides "jcmd -l" does not work in this configuration
>>     (Filed "JDK-8228343: JCMD and attach fail to work across Linux 
>> Container boundary")
>>     The test case is commented out, however can be used for 
>> reproducing the issue, and will be enabled
>>     once the bug is fixed.
>>     JBS: https://bugs.openjdk.java.net/browse/JDK-8195809
>>     Webrev: http://cr.openjdk.java.net/~mseledtsov/8195809.00/
>>     Testing:
>>       - ran the new test multiple times on Linux-x64
>>       - ran TestJCMDWithSideCar multiple times on Linux-x64
>>       - ran all Docker/Container tests (HotSpot and JDK)
>>     All PASS
>> Thank you,
>> Misha

More information about the hotspot-runtime-dev mailing list