Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8221730

jcmd process name matching broken

    Details

    • Subcomponent:
    • Introduced In Version:
      13
    • Resolved In Build:
      b16

      Backports

        Description

        jcmd process name matching seems broken in head.

        I have a running wildfly instance:

        thomas@mainframe:~$ jcmd
        30788 jdk.jcmd/sun.tools.jcmd.JCmd
        30266 /shared/projects/wildfly/wildfly-16.0.0.Final/jboss-modules.jar -mp /shared/projects/wildfly/wildfly-16.0.0.Final/modules org.jboss.as.standalone -Djboss.home.dir=/shared/projects/wildfly/wildfly-16.0.0.Final -Djboss.server.base.dir=/shared/projects/wildfly/wildfly-16.0.0.Final/standalone

        But I cannot attach to it via name part:

        thomas@mainframe:~$ jcmd wildfly VM.version
        Could not find any processes matching : 'wildfly'

        It used to work. It works with jdk11 jcmd and even older jcmds:

        thomas@mainframe:~$ oraclejdk8/bin/jcmd wildfly VM.version
        30266:
        OpenJDK 64-Bit Server VM version 11.0.3-ea+5-sapmachine
        JDK 11.0.3

        thomas@mainframe:~$ oraclejdk11/bin/jcmd wildfly VM.version
        30266:
        OpenJDK 64-Bit Server VM version 11.0.3-ea+5-sapmachine
        JDK 11.0.3

        Note that I still can attach just fine via pid, it is just cumbersome.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dtitov Daniil Titov (Inactive)
                  Reporter:
                  stuefe Thomas Stuefe
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: