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

jcmd Compiler.codecache should print total size of code cache

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b11

      CodeHeap 'non-profiled nmethods': size=118592Kb used=29Kb max_used=29Kb free=118562Kb
       bounds [0x00007fbe84622000, 0x00007fbe84892000, 0x00007fbe8b9f2000]
      CodeHeap 'profiled nmethods': size=118588Kb used=80Kb max_used=80Kb free=118507Kb
       bounds [0x00007fbe7c9f2000, 0x00007fbe7cc62000, 0x00007fbe83dc1000]
      CodeHeap 'non-nmethods': size=8580Kb used=1258Kb max_used=1834Kb free=7321Kb
       bounds [0x00007fbe83dc1000, 0x00007fbe84031000, 0x00007fbe84622000]
       total_blobs=474 nmethods=87 adapters=293
       compilation: enabled
                    stopped_count=0, restarted_count=0
       full_count=0


      It's better to accumulates total size of used/free/size, for example

      CodeHeap 'non-profiled nmethods': size=118592Kb used=29Kb max_used=29Kb free=118562Kb
       bounds [0x00007fbe84622000, 0x00007fbe84892000, 0x00007fbe8b9f2000]
      CodeHeap 'profiled nmethods': size=118588Kb used=80Kb max_used=80Kb free=118507Kb
       bounds [0x00007fbe7c9f2000, 0x00007fbe7cc62000, 0x00007fbe83dc1000]
      CodeHeap 'non-nmethods': size=8580Kb used=1258Kb max_used=1834Kb free=7321Kb
       bounds [0x00007fbe83dc1000, 0x00007fbe84031000, 0x00007fbe84622000]
       total_blobs=474 nmethods=87 adapters=293
       compilation: enabled
                    stopped_count=0, restarted_count=0
       full_count=0
      Total CodeHeap:
       size=245760Kb, used=1367Kb, max used=1943Kb, free=244390Kb

            yyang Yi Yang
            yyang Yi Yang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: