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

jmap give unrelated error message if non java process id is specified in the command.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 10
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      7
    • CPU:
      x86
    • OS:
      linux

      Description

      shafi@shafi-ahmad:$ ps -aef | grep firefox
      shafi 23675 864 70 17:16 ? 00:00:05 /usr/lib/firefox/firefox
      shafi 23750 2173 0 17:16 pts/1 00:00:00 grep --color=auto firefox

      Above command shows firefox is running with pid 23675. I used this non java process id in the jmap command line.

      shafi@shafi-ahmad:$ jmap -dump:live,format=b,file=heap_dump.hprof 23675
      23675: Unable to open socket file: target process not responding or HotSpot VM not loaded
      The -F option can be used when the target process is not responding

      Error message "The -F option can be used when the target process is not responding" mislead the users.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gadams Gary Adams (Inactive)
                Reporter:
                shshahma Shafi Ahmad (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: