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

Print blobs/nmethods/adapters stats per code heap in CodeCache::print_summary

XMLWordPrintable

      CodeCache::print_summary provides CodeCache memory usage like the following:
      ----------------------------
      CodeHeap 'non-profiled nmethods': size=118592Kb used=5890Kb max_used=5890Kb free=112701Kb
       bounds [0x0000ffff84997000, 0x0000ffff84f67000, 0x0000ffff8bd67000]
      CodeHeap 'profiled nmethods': size=118588Kb used=5014Kb max_used=8495Kb free=113573Kb
       bounds [0x0000ffff7cd67000, 0x0000ffff7d5b7000, 0x0000ffff84136000]
      CodeHeap 'non-nmethods': size=8580Kb used=1205Kb max_used=4216Kb free=7374Kb
       bounds [0x0000ffff84136000, 0x0000ffff84566000, 0x0000ffff84997000]
       total_blobs=3776 nmethods=3307 adapters=383
       compilation: enabled
                    stopped_count=0, restarted_count=0
       full_count=0
      ----------------------------

      There is usage per heap but blobs/nmethods/adapters stats are the total.
      It would be useful to have blobs/nmethods/adapters stats per heap:
      ----------------------------
      CodeHeap 'non-profiled nmethods': size=118592Kb used=5890Kb max_used=5890Kb free=112701Kb
       bounds [0x0000ffff84997000, 0x0000ffff84f67000, 0x0000ffff8bd67000]
       blobs=XXXX nmethods=YYYY adapters=ZZZZ
      CodeHeap 'profiled nmethods': size=118588Kb used=5014Kb max_used=8495Kb free=113573Kb
       bounds [0x0000ffff7cd67000, 0x0000ffff7d5b7000, 0x0000ffff84136000]
       blobs=XXXX nmethods=YYYY adapters=ZZZZ
      CodeHeap 'non-nmethods': size=8580Kb used=1205Kb max_used=4216Kb free=7374Kb
       bounds [0x0000ffff84136000, 0x0000ffff84566000, 0x0000ffff84997000]
       blobs=XXXX nmethods=YYYY adapters=ZZZZ
       total_blobs=3776 nmethods=3307 adapters=383
       compilation: enabled
                    stopped_count=0, restarted_count=0
       full_count=0
      ----------------------------

            eastigeevich Evgeny Astigeevich
            eastigeevich Evgeny Astigeevich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: