|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.health.check.AbstractHealthCheck
com.caucho.env.health.AbstractMemoryHealthCheckImpl
com.caucho.env.health.MemoryPermGenHealthCheckImpl
com.caucho.health.check.MemoryPermGenHealthCheck
@Singleton @Configurable @Named public class MemoryPermGenHealthCheck
Monitors the amount of free memory in the PermGen pool. Requests a garbage collection if memory falls too low.
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 Summary | |
|---|---|
MemoryPermGenHealthCheck()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class com.caucho.env.health.MemoryPermGenHealthCheckImpl |
|---|
getMemoryUsage, setObjectNameImpl |
| Methods inherited from class com.caucho.env.health.AbstractMemoryHealthCheckImpl |
|---|
checkHealth, getMemoryFreeMin, getMemoryPool, setFreeWarningImpl, setMemoryFreeMinImpl |
| Methods inherited from class com.caucho.health.check.AbstractHealthCheck |
|---|
getName, init, isEnabled, setEnabled, setName, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryPermGenHealthCheck()
| Method Detail |
|---|
@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 AbstractHealthCheckprotected MemoryPermGenHealthCheck getDelegate()
getDelegate in class AbstractHealthCheck
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||