Example usage for Java java.lang.management MemoryPoolMXBean fields, constructors, methods, implement or subclass
The text is from its open source code.
MemoryUsage | getCollectionUsage() Returns the memory usage after the Java virtual machine most recently expended effort in recycling unused objects in this memory pool. |
String | getName() Returns the name representing this memory pool. |
MemoryUsage | getPeakUsage() Returns the peak memory usage of this memory pool since the Java virtual machine was started or since the peak was reset. |
MemoryType | getType() Returns the type of this memory pool. |
MemoryUsage | getUsage() Returns an estimate of the memory usage of this memory pool. |
boolean | isUsageThresholdSupported() Tests if this memory pool supports usage threshold. |
boolean | isValid() Tests if this memory pool is valid in the Java virtual machine. |
void | resetPeakUsage() Resets the peak memory usage statistic of this memory pool to the current memory usage. |
void | setUsageThreshold(long threshold) Sets the threshold of this memory pool to the given threshold value if this memory pool supports the usage threshold. |