Java java.lang.management MemoryPoolMXBean fields, constructors, methods, implement or subclass

Example usage for Java java.lang.management MemoryPoolMXBean fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang.management MemoryPoolMXBean.

The text is from its open source code.

Method

MemoryUsagegetCollectionUsage()
Returns the memory usage after the Java virtual machine most recently expended effort in recycling unused objects in this memory pool.
StringgetName()
Returns the name representing this memory pool.
MemoryUsagegetPeakUsage()
Returns the peak memory usage of this memory pool since the Java virtual machine was started or since the peak was reset.
MemoryTypegetType()
Returns the type of this memory pool.
MemoryUsagegetUsage()
Returns an estimate of the memory usage of this memory pool.
booleanisUsageThresholdSupported()
Tests if this memory pool supports usage threshold.
booleanisValid()
Tests if this memory pool is valid in the Java virtual machine.
voidresetPeakUsage()
Resets the peak memory usage statistic of this memory pool to the current memory usage.
voidsetUsageThreshold(long threshold)
Sets the threshold of this memory pool to the given threshold value if this memory pool supports the usage threshold.