public class MemoryNotificationInfo
extends java.lang.Object
Memory notification information.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JAVA_HEAP_USING_MORE_MEMORY_THAN_INITIALLY_RESERVED
Notification that the process is using more Java Heap memory than was
initially reserved for the entire Java Heap; In most cases, the -Xmx
command line option is used to specify the amount of memory to be
reserved by the process for the Java Heap; When the process starts, there
may be slight differences between the amount specified and the amount
initially reserved; This is an event notification and requires only that
a notification listener be added.
|
static java.lang.String |
PERCENT_JAVA_HEAP_OCCUPIED_AFTER_COLLECTION_THRESHOLD_EXCEEDED
Notification that the percentage of Jave Heap occupied after the garbage
collection to remove unreachable objects is a higher percentage than the
threshold specified using
MemoryMXBean.setPercentJavaHeapOccupiedAfterCollectionThreshold(double);
This is a threshold notification and requires that a threshold value
greater than zero be set using the
MemoryMXBean.setPercentJavaHeapOccupiedAfterCollectionThreshold(double)
method. |
| Constructor and Description |
|---|
MemoryNotificationInfo(java.lang.String poolName,
java.lang.String notificationReason,
long count,
MemoryUsage memoryUsage)
Constructs a MemoryNotificationInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
static MemoryNotificationInfo |
from(javax.management.openmbean.CompositeData cd)
Constructs a
MemoryNotificationInfo object from the
CompositeData passed. |
long |
getCount() |
MemoryUsage |
getMemoryUsage() |
java.lang.String |
getNotificationReason() |
java.lang.String |
getPoolName() |
public static final java.lang.String JAVA_HEAP_USING_MORE_MEMORY_THAN_INITIALLY_RESERVED
Notification that the process is using more Java Heap memory than was initially reserved for the entire Java Heap; In most cases, the -Xmx command line option is used to specify the amount of memory to be reserved by the process for the Java Heap; When the process starts, there may be slight differences between the amount specified and the amount initially reserved; This is an event notification and requires only that a notification listener be added.
public static final java.lang.String PERCENT_JAVA_HEAP_OCCUPIED_AFTER_COLLECTION_THRESHOLD_EXCEEDED
Notification that the percentage of Jave Heap occupied after the garbage
collection to remove unreachable objects is a higher percentage than the
threshold specified using
MemoryMXBean.setPercentJavaHeapOccupiedAfterCollectionThreshold(double);
This is a threshold notification and requires that a threshold value
greater than zero be set using the
MemoryMXBean.setPercentJavaHeapOccupiedAfterCollectionThreshold(double)
method.
public MemoryNotificationInfo(java.lang.String poolName,
java.lang.String notificationReason,
long count,
MemoryUsage memoryUsage)
Constructs a MemoryNotificationInfo instance.
poolName - The memory pool name.notificationReason - The reason for the notification.count - The number of times the threshold has been crossedmemoryUsage - The memory usage snapshot.java.lang.NullPointerException - if poolName or
notificationReason or memoryUsage is nullpublic static MemoryNotificationInfo from(javax.management.openmbean.CompositeData cd)
Constructs a MemoryNotificationInfo object from the
CompositeData passed.
cd - The CompositeData object from which to retrieve the
MemoryNotificationInfo data.null if
cd is null its contents are invalid.java.lang.IllegalArgumentException - if cd does not contain
valid MemoryNotification data.java.lang.NullPointerException - if attributes in the cd are not
valid.public long getCount()
public MemoryUsage getMemoryUsage()
public java.lang.String getNotificationReason()
public java.lang.String getPoolName()
Submit a bug or feature request
Copyright © 2015-2017, Azul Systems, Inc. All rights reserved.
Azul Systems and Zing are registered trademarks of Azul Systems, Inc.