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

NMT: does not take into account class space of metaspace

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Won't Fix
    • Affects Version/s: hs25
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
      gc

      Description

      Here are output of the test with PrintGCDetails

      60.014: [GC (Metadata GC Threshold) [PSYoungGen: 39837K->3072K(669952K)] 40164K->3398K(2016192K), 0.0126180 secs] [Times: user=0.04 sys=0.01, real=0.02 secs]
      60.033: [Full GC (Metadata GC Threshold) [PSYoungGen: 3072K->0K(669952K)] [ParOldGen: 326K->326K(1346240K)] 3398K->326K(2016192K), [Metaspace: 28185K->2949K(40688K/126976K)], 0.0333560 secs] [Times: user=0.09 sys=0.00, real=0.04 secs]

       Metaspace total 40688K, used 8407K, reserved 126976K
        data space 22752K, used 5098K, reserved 24576K
        class space 17936K, used 3308K, reserved 102400K

      And Native Memory Tracker:

      - Class (reserved=30860KB, committed=29240KB)
                                  (classes #26476)
                                  (malloc=6284KB, #980)
                                  (mmap: reserved=24576KB, committed=22956KB)


      We can see that count only "data space 24576K=24576K"

      Thanks to Mikael Gerdin who proved this suggesstion.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mmikhalk Mikhail Mikhalkin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: