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

Small VM.metaspace improvements

XMLWordPrintable

    • b21

        VM.metaspace has a number of small issues which can be improved:

        1) When used with options "show-loaders" and "show-classes", it does list metaspace usage per CLD and the classes loaded. However, it also lists classes whose meta data reside in CDS, which can be confusing because they do not contribute to metaspace footprint printed below.
        -> Classes whose meta data reside in CDS should clearly marked.

        2) It would be helpful to print a summary of number of loaded classes even if not printing the class list.

        3) Printing the instance classes and array classes separately in the "--Totals:--" summary is actually not that helpful. That code may be removed to simplify coding.

          1. example-after-by-spacetype.txt
            4 kB
            Thomas Stuefe
          2. example-after-showloaders.txt
            130 kB
            Thomas Stuefe
          3. example-after-showloaders-showclasses.txt
            276 kB
            Thomas Stuefe
          4. example-before-by-spacetype.txt
            4 kB
            Thomas Stuefe
          5. example-before-showloaders.txt
            705 kB
            Thomas Stuefe
          6. example-before-showloaders-showclasses.txt
            1.49 MB
            Thomas Stuefe

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: