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

Calculation of jmm_GetMemoryUsage is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • None
    • core-svc
    • None

    Description

      It seems that calculation of MemoryMXBean.getNonHeapMemoryUsage(jmm_GetMemoryUsage) is wrong.

      Currently, NonHeapUsage = CodeCache + Metaspace + CompressedClassSpace

      ==> CodeHeap 'non-nmethods' 1532544 (Used)
      ==> CodeHeap 'profiled nmethods' 0
      ==> CodeHeap 'non-profiled nmethods' 13952
      ==> Metaspace 506696
      ==> Compressed Class Space 43312
      init = 7667712(7488K) used = 2096504(2047K) committed = 8454144(8256K) max = -1(-1K)

      In this way, getNonHeapMemoryUsage is larger than it ought to be, it should be NonHeapUsage = CodeCache + Metaspace.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: