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

Record total and free swap space in JFR

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • None
    • jfr
    • b09
    • generic
    • generic

      Total and free swap space should be recorded in JFR, because it is important to know e.g. in case of memory shortages.

      Currently we only have a container related event (ContainerMemoryUsage) that provides some info but no general event.
      PhysicalMemory could be enhanced or a new event added.

      There is already some coding (see Java_com_sun_management_internal_OperatingSystemImpl_getTotalSwapSpaceSize0 and
      Java_com_sun_management_internal_OperatingSystemImpl_getFreeSwapSpaceSize0) for the swap space info retrieval.

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: