-
Bug
-
Resolution: Fixed
-
P2
-
9, 10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8178262 | 10 | Robbin Ehn | P2 | Resolved | Fixed | b04 |
Please, find the debuggerattach.jar file in the attachments.
Starting from the build ea/124 the jcmd command is not able to recognize some java processes.
1) Run the following command in one Terminal:
% /java/re/jdk/9/promoted/latest/binaries/linux-x64/bin/java -cp debuggerattach.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5900
Listening for transport dt_socket at address: 5900
2) In another terminal:
% ps -ef | g debuggerattach
sspitsyn 28995 28282 0 14:20 pts/0 00:00:00 /java/re/jdk/9/promoted/latest/binaries/linux-x64/bin/java -cp debuggerattach.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5900
The process 28995 is not recognized by the jcmd tool:
The command 'jcmd 28995 VM.version' can't find the process 28995:
% /java/re/jdk/9/promoted/latest/binaries/linux-x64/bin/jcmd 28995 VM.version
Could not find any processes matching : '28995'
However, the build ea/123 successfully finds the process:
% /java/re/jdk/9/promoted/ea/123/binaries/linux-x64/bin/jcmd 28995 VM.version
28995:
Java HotSpot(TM) 64-Bit Server VM version 9-ea+160
JDK 9.0.0
It seems the regression was introduced by the build ea/124:
% /java/re/jdk/9/promoted/ea/124/binaries/linux-x64/bin/jcmd 28995 VM.version
Could not find any processes matching : '28995'
Starting from the build ea/124 the jcmd command is not able to recognize some java processes.
1) Run the following command in one Terminal:
% /java/re/jdk/9/promoted/latest/binaries/linux-x64/bin/java -cp debuggerattach.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5900
Listening for transport dt_socket at address: 5900
2) In another terminal:
% ps -ef | g debuggerattach
sspitsyn 28995 28282 0 14:20 pts/0 00:00:00 /java/re/jdk/9/promoted/latest/binaries/linux-x64/bin/java -cp debuggerattach.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5900
The process 28995 is not recognized by the jcmd tool:
The command 'jcmd 28995 VM.version' can't find the process 28995:
% /java/re/jdk/9/promoted/latest/binaries/linux-x64/bin/jcmd 28995 VM.version
Could not find any processes matching : '28995'
However, the build ea/123 successfully finds the process:
% /java/re/jdk/9/promoted/ea/123/binaries/linux-x64/bin/jcmd 28995 VM.version
28995:
Java HotSpot(TM) 64-Bit Server VM version 9-ea+160
JDK 9.0.0
It seems the regression was introduced by the build ea/124:
% /java/re/jdk/9/promoted/ea/124/binaries/linux-x64/bin/jcmd 28995 VM.version
Could not find any processes matching : '28995'
- backported by
-
JDK-8178262 REGRESSION: a java process is not recognized by jcmd/jinfo/jstack/jmap tool
-
- Resolved
-
- relates to
-
JDK-8176828 jtools do not list VM process launched with the debugger option suspend=y
-
- Resolved
-
-
JDK-8156537 Tools using MonitoredVmUtil do not parse module in cmdline correctly
-
- Resolved
-
-
JDK-8177092 [TESTBUG] JMX test on MinimalVM fails after fix for 8176533
-
- Closed
-