Open vsebe opened 6 years ago
@llxia attn
fyi - @Ailloviee
Issue experimentation summary:
On Windows:
Tested with OpenJDK10(Both with Eclipse OpenJ9 and with Hotspot) and OpenJDK9, same issue exists that Pid returned from ProcessHandle.current().pid()
in RuntimeMXBean.java does not match with the Pid returned from system command ps -ef | grep java
. Meanwhile, Pid returned from open3($in, $out, $err, $javaCmd)
in getPidTest.pl matches with that from ps -ef | grep java
.
On Linux (VM Farm machine): Issue does not exist, pids from both ProcessHandle and Perl script match.
NOTE: The above testing was done locally as there is path escape issue to be fixed for perl script before it can be tested on Jenkins.
fyi - @tajila
Java version: