Class NonHeapStatusProvider

java.lang.Object
com.github.jpmsilva.jsystemd.NonHeapStatusProvider
All Implemented Interfaces:
StatusProvider

public class NonHeapStatusProvider extends Object implements StatusProvider
Implementation of StatusProvider that provides the memory used outside of the heap by the JVM, such as by the metaspace and the code cache, out of its committed size, such as Non-heap: 62.7 MiB/64.1 MiB.

The committed size is the memory the JVM currently holds for it, which it grows as needed: it is not a limit, as the non-heap memory usually has none. The direct and mapped buffers are not part of it, and are reported by the BufferPoolStatusProvider.

Author:
Joao Silva
  • Constructor Details

    • NonHeapStatusProvider

      public NonHeapStatusProvider()
      Create a new NonHeapStatusProvider.
  • Method Details

    • status

      public String status()
      Description copied from interface: StatusProvider
      Exposes status information to send to systemd.
      Specified by:
      status in interface StatusProvider
      Returns:
      the string message to add to the service status