jmap -histo and -dump options are inconsistent in Mustang and Tiger

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 6
    • Affects Version/s: 6
    • Component/s: core-svc
    • b91
    • generic
    • generic

      jmap -histo option in Mustang is updated to use the attach mechanism and obtain the object histogram from the target VM (in the same way as -XX:+PrintClassHistogram but output in the client side).

      Mustang jmap -histo is inconsistent with Tiger jmap -histo which uses SA to examine the core file (or snapshot of a running process) which doesn't trigger a GC in the target VM.

      In addition, it would be useful to get a histogram without forcing a full GC. For example, you may want to compare a histogram without a full GC and a histogram with full GC to find out what get garbage collected.

      We should keep jmap -histo with no full GC and add a new option to request a full GC before iterating the heap.

      -dump option also has the same issue.

            Assignee:
            Mandy Chung (Inactive)
            Reporter:
            Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: