Class JvmMemoryMonitor

java.lang.Object
hudson.node_monitors.NodeMonitor
io.jenkins.plugins.specsmonitor.JvmMemoryMonitor
All Implemented Interfaces:
ExtensionPoint, Describable<NodeMonitor>

public class JvmMemoryMonitor extends NodeMonitor
Node monitor that reports the free memory of the JVM running on each node, with free out of the maximum heap size as a tooltip.
  • Field Details

  • Constructor Details

    • JvmMemoryMonitor

      @DataBoundConstructor public JvmMemoryMonitor()
  • Method Details

    • getWarnBelowPercent

      public int getWarnBelowPercent()
      Free memory below this percentage of the maximum heap is highlighted as a warning.
    • setWarnBelowPercent

      @DataBoundSetter public void setWarnBelowPercent(int warnBelowPercent)
    • isLow

      public boolean isLow(MemoryInfo info)
      Whether the free memory in info is below the configured threshold.