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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: