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

-Xlog:gc+heap+exit shows "used 0K"

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b24

      Description

      Sometimes java -Xlog:gc+heap+exit shows "used 0K", which seems misleading since we must have allocated some objects in the Java heap.

      $ java -Xlog:gc+heap+exit -Xshare:off -Xmx16g -version
      [0.072s][info][gc,heap,exit] garbage-first heap total 1032192K, used 0K [0x00000003c0000000, 0x00000007c0000000)
      [0.072s][info][gc,heap,exit] region size 8192K, 1 young (8192K), 0 survivors (0K)
      $ java -Xlog:gc+heap+exit -Xshare:off -Xmx4g -version
      [0.072s][info][gc,heap,exit] garbage-first heap total 1030144K, used 2048K [0x00000006c0000000, 0x00000007c0000000)
      [0.072s][info][gc,heap,exit] region size 2048K, 2 young (4096K), 0 survivors (0K)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sjohanss Stefan Johansson
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: