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

VM.native_memory should report size of shareable memory

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 21
    • 19
    • hotspot
    • b03

    Description

      The current output looks like this:

      $ jcmd <pid> native_memory
      ...
      Total: reserved=515598KB, committed=72314KB
      ...
      - Shared class space (reserved=25472KB, committed=25472KB)
                                  (mmap: reserved=25472KB, committed=25472KB)
      ...

      Of the "Shared class space", about 50% is mapped read-only, so it can be shared across processes. It would be useful to change the above output to

      Total: reserved=515598KB, committed=72314KB, shareable=12345KB
      ...
      - Shared class space (reserved=25472KB, committed=25472KB, shareable=12345KB)
                                  (mmap: reserved=25472KB, committed=25472KB, shareable=12345KB)

      Attachments

        Issue Links

          Activity

            People

              matsaave Matias Saavedra Silva
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: