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

Improve jmap -histo (and maybe -heap) for use with running applications

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b67
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_9

      Backports

        Description

        The jmap utility currently uses the attach API to implement the -dump option. It might be good to extend jmap so that it uses the same mechanism for -histo (and maybe -heap). This will make the utilities more usable for running applications on Solaris/Linux. Also it means that the options will become available on Windows.

        At this time there is little motive to change the -permstat and -finalizerinfo options. If needed, the developer can obtain a heap dump and use jhat/OQL to do more powerful queries. Over time (post-mustang) we can look to update these other options too.
        Also, output from jmap options contains a typo.

        j2se/src/share/classes/sun/tools/jmap/JMap.java

        System.out.println(" jmap [option] [server_id@]<remote server IP or hostname>");
        System.out.println(" (to connect to remove debug server)");


        remove needs to be remote :)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jjh James Holmlund (Inactive)
                  Reporter:
                  alanb Alan Bateman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: