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

jmap - error message when attaching to target process failed is not instructive enough

    XMLWordPrintable

Details

    Description

      When jmap fails to attach to a target process, it prints:
      "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"

      However, there are other options that the user should consider first:
      - Run jmap under the same user account which runs the target process.
      - Run jmap against a core dump file to produce a heap dump.

      Having these suggestions right in front of you in the error message would save less experienced users time finding out what to to.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bmathiske Bernd Mathiske
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: