getMemoryUsage Method
Description
Returns the usage state of the Explicit heap.
Format
public static java.lang.management.MemoryUsage getMemoryUsage();
Parameters
None
Exceptions
None
Return value
This method returns the reference to the java.lang.management.MemoryUsage instance that maintains the usage state of the Explicit heap as a field, in the form of the following values:
Caution
The value contained in the MemoryUsage instance is the value at the point of time when getMemoryUsage() is invoked. This value might be different from the actual value when each field is read out from the MemoryUsage instance.