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

add subspace transitions to gc+metaspace=info log lines

    XMLWordPrintable

Details

    • gc
    • b05

    Backports

      Description

        Currently, gc+metaspace=info log lines look like this:

        [60.082s][info ][gc,metaspace ] GC(24) Metaspace: 2209K->2209K(1056768K)

        When coops are enabled, this can be confusing as users wonder why they asked for, say, 128M for the metaspace and the log is reporting over 1G. I think it will be valuable to also report the transitions of the metaspace subspaces (at least, when coops are enabled) so that users can get more accurate information about the space they are sizing. I propose the output to look something like this:

        [8.999s][info][gc,metaspace ] GC(7) Metaspace: 2130K->2130K(1056768K) ClassMetadata: 1906K->1906K(8192K) ClassSpace: 223K->223K(1048576K)

        (I'm open to suggestions on what to call "ClassMetadata" and "ClassSpace")

        Attachments

          Issue Links

            Activity

              People

                tonyp Tony Printezis
                tonyp Tony Printezis
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: