| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | MemoryPoolImpl.
CollectionSensor will be triggered and cleared by the VM when the memory usage of a memory pool after GC is crossing the collection threshold. |
| pack-priv static class | MemoryPoolImpl.
PoolSensor will be triggered by the VM when the memory usage of a memory pool is crossing the usage threshold. |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final boolean | |
| private final Sensor | |
| private boolean | |
| private final boolean | |
| private final boolean | |
| private MemoryManagerMXBean[] | |
| private final String | |
| private final Sensor | |
| private boolean | |
| private long | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public MemoryUsage | getCollectionUsage()
Implements java. Returns the memory usage after the Java virtual machine most recently expended effort in recycling unused objects in this memory pool. |
| private native MemoryUsage | |
| public synchronized long | getCollectionUsageThreshold()
Implements java. Returns the collection usage threshold value of this memory pool in bytes. |
| public long | getCollectionUsageThresholdCount()
Implements java. Returns the number of times that the Java virtual machine has detected that the memory usage has reached or exceeded the collection usage threshold. |
| public String[] | getMemoryManagerNames()
Implements java. Returns the name of memory managers that manages this memory pool. |
| private synchronized MemoryManagerMXBean[] | |
| private native MemoryManagerMXBean[] | |
| public String | getName()
Implements java. Returns the name representing this memory pool. |
| public ObjectName | getObjectName()
Implements java. Returns an |
| public synchronized MemoryUsage | getPeakUsage()
Implements java. Returns the peak memory usage of this memory pool since the Java virtual machine was started or since the peak was reset. |
| private native MemoryUsage | |
| public MemoryType | getType()
Implements java. Returns the type of this memory pool. |
| public MemoryUsage | getUsage()
Implements java. Returns an estimate of the memory usage of this memory pool. |
| private native MemoryUsage | |
| public synchronized long | getUsageThreshold()
Implements java. Returns the usage threshold value of this memory pool in bytes. |
| public long | getUsageThresholdCount()
Implements java. Returns the number of times that the memory usage has crossed the usage threshold. |
| public boolean | isCollectionUsageThresholdExceeded()
Implements java. Tests if the memory usage of this memory pool after the most recent collection on which the Java virtual machine has expended effort has reached or exceeded its collection usage threshold. |
| public boolean | isCollectionUsageThresholdSupported()
Implements java. Tests if this memory pool supports a collection usage threshold. |
| public boolean | isUsageThresholdExceeded()
Implements java. Tests if the memory usage of this memory pool reaches or exceeds its usage threshold value. |
| public boolean | isUsageThresholdSupported()
Implements java. Tests if this memory pool supports usage threshold. |
| public boolean | isValid()
Implements java. Tests if this memory pool is valid in the Java virtual machine. |
| public void | resetPeakUsage()
Implements java. Resets the peak memory usage statistic of this memory pool to the current memory usage. |
| private native void | |
| private native void | |
| public void | setCollectionUsageThreshold(long newThreshold)
Implements java. Sets the collection usage threshold of this memory pool to
the given |
| private native void | |
| private native void | |
| public void | setUsageThreshold(long newThreshold)
Implements java. Sets the threshold of this memory pool to the given |
| private native void |
| collectionThreshold | back to summary |
|---|---|
| private long collectionThreshold | |
| collectionThresholdSupported | back to summary |
|---|---|
| private final boolean collectionThresholdSupported | |
| gcSensor | back to summary |
|---|---|
| private final Sensor gcSensor | |
| gcSensorRegistered | back to summary |
|---|---|
| private boolean gcSensorRegistered | |
| isHeap | back to summary |
|---|---|
| private final boolean isHeap | |
| isValid | back to summary |
|---|---|
| private final boolean isValid | |
| managers | back to summary |
|---|---|
| private MemoryManagerMXBean[] managers | |
| name | back to summary |
|---|---|
| private final String name | |
| usageSensor | back to summary |
|---|---|
| private final Sensor usageSensor | |
| usageSensorRegistered | back to summary |
|---|---|
| private boolean usageSensorRegistered | |
| usageThreshold | back to summary |
|---|---|
| private long usageThreshold | |
| usageThresholdSupported | back to summary |
|---|---|
| private final boolean usageThresholdSupported | |
| MemoryPoolImpl | back to summary |
|---|---|
| pack-priv MemoryPoolImpl(String name, boolean isHeap, long usageThreshold, long gcThreshold) | |
| getCollectionUsage | back to summary |
|---|---|
| public MemoryUsage getCollectionUsage() Implements java. Doc from java. Returns the memory usage after the Java virtual machine
most recently expended effort in recycling unused objects
in this memory pool.
This method does not request the Java virtual
machine to perform any garbage collection other than its normal
automatic memory management.
This method returns
MBeanServer access: | |
| getCollectionUsage0 | back to summary |
|---|---|
| private native MemoryUsage getCollectionUsage0() | |
| getCollectionUsageThreshold | back to summary |
|---|---|
| public synchronized long getCollectionUsageThreshold() Implements java. Doc from java. Returns the collection usage threshold value of this memory pool
in bytes. The default value is zero. The collection usage
threshold can be changed via the
| |
| getCollectionUsageThresholdCount | back to summary |
|---|---|
| public long getCollectionUsageThresholdCount() Implements java. Doc from java. Returns the number of times that the Java virtual machine has detected that the memory usage has reached or exceeded the collection usage threshold. | |
| getMemoryManagerNames | back to summary |
|---|---|
| public String[] getMemoryManagerNames() Implements java. Doc from java. Returns the name of memory managers that manages this memory pool. Each memory pool will be managed by at least one memory manager. | |
| getMemoryManagers | back to summary |
|---|---|
| private synchronized MemoryManagerMXBean[] getMemoryManagers() | |
| getMemoryManagers0 | back to summary |
|---|---|
| private native MemoryManagerMXBean[] getMemoryManagers0() | |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Doc from java. Returns the name representing this memory pool. | |
| getObjectName | back to summary |
|---|---|
| public ObjectName getObjectName() Implements java. Doc from java. Returns an | |
| getPeakUsage | back to summary |
|---|---|
| public synchronized MemoryUsage getPeakUsage() Implements java. Doc from java. Returns the peak memory usage of this memory pool since the
Java virtual machine was started or since the peak was reset.
This method returns
MBeanServer access: | |
| getPeakUsage0 | back to summary |
|---|---|
| private native MemoryUsage getPeakUsage0() | |
| getType | back to summary |
|---|---|
| public MemoryType getType() Implements java. Doc from java. Returns the type of this memory pool.
MBeanServer access: | |
| getUsage | back to summary |
|---|---|
| public MemoryUsage getUsage() Implements java. Doc from java. Returns an estimate of the memory usage of this memory pool.
This method returns This method requests the Java virtual machine to make a best-effort estimate of the current memory usage of this memory pool. For some memory pools, this method may be an expensive operation that requires some computation to determine the estimate. An implementation should document when this is the case. This method is designed for use in monitoring system memory usage and detecting low memory condition.
MBeanServer access: | |
| getUsage0 | back to summary |
|---|---|
| private native MemoryUsage getUsage0() | |
| getUsageThreshold | back to summary |
|---|---|
| public synchronized long getUsageThreshold() Implements java. Doc from java. Returns the usage threshold value of this memory pool in bytes.
Each memory pool has a platform-dependent default threshold value.
The current usage threshold can be changed via the
| |
| getUsageThresholdCount | back to summary |
|---|---|
| public long getUsageThresholdCount() Implements java. Doc from java. Returns the number of times that the memory usage has crossed the usage threshold. | |
| isCollectionUsageThresholdExceeded | back to summary |
|---|---|
| public boolean isCollectionUsageThresholdExceeded() Implements java. Doc from java. Tests if the memory usage of this memory pool after the most recent collection on which the Java virtual machine has expended effort has reached or exceeded its collection usage threshold. This method does not request the Java virtual machine to perform any garbage collection other than its normal automatic memory management. | |
| isCollectionUsageThresholdSupported | back to summary |
|---|---|
| public boolean isCollectionUsageThresholdSupported() Implements java. Doc from java. Tests if this memory pool supports a collection usage threshold. | |
| isUsageThresholdExceeded | back to summary |
|---|---|
| public boolean isUsageThresholdExceeded() Implements java. Doc from java. Tests if the memory usage of this memory pool reaches or exceeds its usage threshold value. | |
| isUsageThresholdSupported | back to summary |
|---|---|
| public boolean isUsageThresholdSupported() Implements java. Doc from java. Tests if this memory pool supports usage threshold. | |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements java. Doc from java. Tests if this memory pool is valid in the Java virtual machine. A memory pool becomes invalid once the Java virtual machine removes it from the memory system. | |
| resetPeakUsage | back to summary |
|---|---|
| public void resetPeakUsage() Implements java. Doc from java. Resets the peak memory usage statistic of this memory pool to the current memory usage. | |
| resetPeakUsage0 | back to summary |
|---|---|
| private native void resetPeakUsage0() | |
| setCollectionThreshold0 | back to summary |
|---|---|
| private native void setCollectionThreshold0(long current, long newThreshold) | |
| setCollectionUsageThreshold | back to summary |
|---|---|
| public void setCollectionUsageThreshold(long newThreshold) Implements java. Doc from java. Sets the collection usage threshold of this memory pool to
the given The collection usage threshold crossing checking is enabled in this memory pool if the threshold is set to a positive value. The collection usage threshold crossing checking is disabled if it is set to zero. | |
| setPoolCollectionSensor | back to summary |
|---|---|
| private native void setPoolCollectionSensor(Sensor s) | |
| setPoolUsageSensor | back to summary |
|---|---|
| private native void setPoolUsageSensor(Sensor s) | |
| setUsageThreshold | back to summary |
|---|---|
| public void setUsageThreshold(long newThreshold) Implements java. Doc from java. Sets the threshold of this memory pool to the given | |
| setUsageThreshold0 | back to summary |
|---|---|
| private native void setUsageThreshold0(long current, long newThreshold) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final MemoryPoolImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| pool | back to summary |
|---|---|
| pack-priv final MemoryPoolImpl pool | |
| CollectionSensor | back to summary |
|---|---|
| pack-priv CollectionSensor(MemoryPoolImpl pool, String name) | |
| clearAction | back to summary |
|---|---|
| pack-priv void clearAction() Implements abstract sun. | |
| triggerAction | back to summary |
|---|---|
| pack-priv void triggerAction(MemoryUsage usage) Implements abstract sun. | |
| triggerAction | back to summary |
|---|---|
| pack-priv void triggerAction() Implements abstract sun. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final MemoryPoolImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| pool | back to summary |
|---|---|
| pack-priv final MemoryPoolImpl pool | |
| PoolSensor | back to summary |
|---|---|
| pack-priv PoolSensor(MemoryPoolImpl pool, String name) | |
| clearAction | back to summary |
|---|---|
| pack-priv void clearAction() Implements abstract sun. | |
| triggerAction | back to summary |
|---|---|
| pack-priv void triggerAction(MemoryUsage usage) Implements abstract sun. | |
| triggerAction | back to summary |
|---|---|
| pack-priv void triggerAction() Implements abstract sun. | |