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

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

Introduction

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

The text is from its open source code.

Method

voidgc()
Runs the garbage collector.
MemoryUsagegetHeapMemoryUsage()
Returns the current memory usage of the heap that is used for object allocation.
MemoryUsagegetNonHeapMemoryUsage()
Returns the current memory usage of non-heap memory that is used by the Java virtual machine.
intgetObjectPendingFinalizationCount()
Returns the approximate number of objects for which finalization is pending.
voidsetVerbose(boolean value)
Enables or disables verbose output for the memory system.