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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: core-svc
    • b67
    • generic, sparc
    • generic, solaris_9

        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 :)

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: