Package io.jenkins.plugins.specsmonitor
Class JvmMemoryMonitor
java.lang.Object
hudson.node_monitors.NodeMonitor
io.jenkins.plugins.specsmonitor.JvmMemoryMonitor
- All Implemented Interfaces:
ExtensionPoint,Describable<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.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class hudson.node_monitors.NodeMonitor
LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintFree memory below this percentage of the maximum heap is highlighted as a warning.booleanisLow(MemoryInfo info) Whether the free memory ininfois below the configured threshold.voidsetWarnBelowPercent(int warnBelowPercent) Methods inherited from class hudson.node_monitors.NodeMonitor
all, data, getAll, getColumnCaption, getDescriptor, isIgnored, setIgnored, triggerUpdate
-
Field Details
-
DEFAULT_WARN_BELOW_PERCENT
public static final int DEFAULT_WARN_BELOW_PERCENTDefault forgetWarnBelowPercent().- See Also:
-
-
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
Whether the free memory ininfois below the configured threshold.
-