@Singleton @Configurable @Named public class MemoryPermGenHealthCheck extends MemoryPermGenHealthCheckImpl
Note: This check does not apply to all JVM implementations, and will return UNKNOWN if there is no PermGen 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).
Constructor and Description |
---|
MemoryPermGenHealthCheck() |
Modifier and Type | Method and Description |
---|---|
protected AbstractHealthCheck |
findDelegate(HealthService healthService)
Finds and returns any delegate health check.
|
protected MemoryPermGenHealthCheck |
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 MemoryPermGenHealthCheck getDelegate()
getDelegate
in class AbstractHealthCheck