Class GarbageCollectionAlert
java.lang.Object
org.openspaces.admin.alert.alerts.AbstractAlert
org.openspaces.admin.alert.alerts.GarbageCollectionAlert
- All Implemented Interfaces:
Externalizable,Serializable,Alert
A Garbage Collection duration alert, fired upon triggered GC thresholds. The alert is raised when
the JVM spends more than a specified period of time on Garbage Collection. The alert is resolved
when the JVM spends less then the specified time on Garbage Collection.
These thresholds can
be configured by using the GarbageCollectionAlertConfigurer.
This alert will be
received on the call to AlertTriggeredEventListener.alertTriggered(Alert) for registered
listeners.
- Since:
- 8.0
- Author:
- Moran Avigdor
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the component for which the alert was fired (e.g.The component UID is equivalent toVirtualMachine.getUid()The CPU utilization reading when this alert was fired.The period of time the JVM has spent on GC which triggered the alert.The Heap utilization reading when this alert was fired.The host address of the machine that this alert corresponds to.The host name of the machine that this alert corresponds to.The non-Heap utilization reading when this alert was fired.The process id of the component for which the alert was fired.Methods inherited from class org.openspaces.admin.alert.alerts.AbstractAlert
getAlert, getAlertUid, getComponentDescription, getConfig, getDescription, getGroupUid, getName, getProperties, getSeverity, getStatus, getTimestamp, readExternal, toString, writeExternal
-
Field Details
-
HOST_ADDRESS
- See Also:
-
HOST_NAME
- See Also:
-
CPU_UTILIZATION
- See Also:
-
PROCESS_ID
- See Also:
-
COMPONENT_NAME
- See Also:
-
GC_DURATION_MILLISECONDS
- See Also:
-
HEAP_UTILIZATION
- See Also:
-
NON_HEAP_UTILIZATION
- See Also:
-
-
Constructor Details
-
GarbageCollectionAlert
public GarbageCollectionAlert()required by java.io.Externalizable -
GarbageCollectionAlert
-
-
Method Details
-
getComponentUid
The component UID is equivalent toVirtualMachine.getUid()- Specified by:
getComponentUidin interfaceAlert- Overrides:
getComponentUidin classAbstractAlert- Returns:
- Component UID - the unique identifier of the component associated with the alert.
-
getHostAddress
The host address of the machine that this alert corresponds to.- Returns:
- the host address; may be
null.
-
getHostName
The host name of the machine that this alert corresponds to.- Returns:
- the host name; may be
null.
-
getCpuUtilization
The CPU utilization reading when this alert was fired.- Returns:
- the CPU utilization; may be
null.
-
getProcessId
The process id of the component for which the alert was fired.- Returns:
- the process id (pid); may be
null.
-
getComponentName
The name of the component for which the alert was fired (e.g. 'Grid Service Agent', 'Grid Service Manager', 'Grid Service Container', 'Lookup Service').- Returns:
- the name of the component.
-
getHeapUtilization
The Heap utilization reading when this alert was fired.- Returns:
- the Heap utilization; may be
null.
-
getNonHeapUtilization
The non-Heap utilization reading when this alert was fired.- Returns:
- the non-Heap utilization; may be
null.
-
getGcDuration
The period of time the JVM has spent on GC which triggered the alert.- Returns:
- the GC duration in milliseconds.
-