public class DefaultMemoryStats extends Object implements MemoryStats
| Constructor and Description |
|---|
DefaultMemoryStats() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCommittedHeap()
Returns the amount of memory in bytes that is committed for
the Java virtual machine to use.
|
long |
getCommittedNativeMemory()
Returns the amount of native memory in bytes that is committed for
current HazelcastInstance to use.
|
long |
getFreeHeap()
Returns the amount of free memory in the JVM in bytes.
|
long |
getFreeNativeMemory()
Returns the amount of free native memory in current HazelcastInstance in bytes.
|
long |
getFreePhysical()
Returns free physical memory available in OS.
|
GarbageCollectorStats |
getGCStats()
Returns the garbage collector statistics for the JVM
|
long |
getMaxHeap()
Returns the maximum amount of memory that the JVM will attempt to use in bytes.
|
long |
getMaxNativeMemory()
Returns the maximum amount of native memory that current HazelcastInstance
will attempt to use in bytes.
|
long |
getTotalPhysical()
Returns total physical memory available in OS.
|
long |
getUsedHeap()
Returns the amount of used memory in the JVM in bytes.
|
long |
getUsedNativeMemory()
Returns the amount of used native memory in current HazelcastInstance in bytes.
|
String |
toString() |
public final long getTotalPhysical()
MemoryStatsgetTotalPhysical in interface MemoryStatspublic final long getFreePhysical()
MemoryStatsgetFreePhysical in interface MemoryStatspublic final long getMaxHeap()
MemoryStatsgetMaxHeap in interface MemoryStatsRuntime.maxMemory()public final long getCommittedHeap()
MemoryStatsgetCommittedHeap in interface MemoryStatsRuntime.totalMemory(),
MemoryUsage.getCommitted()public final long getUsedHeap()
MemoryStatsgetUsedHeap in interface MemoryStatsMemoryUsage.getUsed()public final long getFreeHeap()
MemoryStatsgetFreeHeap in interface MemoryStatsRuntime.freeMemory()public long getMaxNativeMemory()
MemoryStatsgetMaxNativeMemory in interface MemoryStatspublic long getCommittedNativeMemory()
MemoryStatsgetCommittedNativeMemory in interface MemoryStatspublic long getUsedNativeMemory()
MemoryStatsgetUsedNativeMemory in interface MemoryStatspublic long getFreeNativeMemory()
MemoryStatsgetFreeNativeMemory in interface MemoryStatspublic GarbageCollectorStats getGCStats()
MemoryStatsgetGCStats in interface MemoryStatsCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.