@Singleton @Configurable @Named public class MemoryTenuredHealthCheck extends MemoryTenuredHealthCheckImpl
Note: This check will query heap memory for JVMs with no Tenured pool.
Generates UNKNOWN if memory pool attributes are not available in JMX.
Generates WARNING if free memory is below the warning percentage after a GC (default 1%)
Generates CRITICAL if free memory is below the the minimum after a GC (default 1 meg). This can also be configured by setting <memory-free-min >.
Constructor and Description |
---|
MemoryTenuredHealthCheck() |
Modifier and Type | Method and Description |
---|---|
protected AbstractHealthCheck |
findDelegate(HealthService healthService)
Finds and returns any delegate health check.
|
protected MemoryTenuredHealthCheck |
getDelegate() |
void |
setFreeWarning(double pFree)
Set the warning threshold percentage (default 0.01)
|
void |
setMemoryFreeMin(Bytes memoryMin)
Set minimum amount of free memory (default 1m)
|
void |
setObjectName(java.lang.String objectName)
Explicitly set the MBean name to query for memory stats
|
getMemoryUsage, setObjectNameImpl
checkHealth, fail, getMemoryFreeMin, getMemoryPool, ok, setFreeWarningImpl, setMemoryFreeMinImpl
getLastResult, getLogPeriod, getName, hasDelegate, init, isEnabled, logResult, setEnabled, setLogPeriod, setName, silenceFor, start, stop, toString
@Configurable public void setMemoryFreeMin(Bytes memoryMin)
@Configurable public void setFreeWarning(double pFree)
@Configurable public void setObjectName(java.lang.String objectName)
protected AbstractHealthCheck findDelegate(HealthService healthService)
AbstractHealthCheck
findDelegate
in class AbstractHealthCheck
protected MemoryTenuredHealthCheck getDelegate()
getDelegate
in class AbstractHealthCheck