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

VM.native_memory should report size of shareable memory

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 19
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      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

          Activity

            People

            Assignee:
            iklam Ioi Lam
            Reporter:
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: