public interface MemoryStats
Shows total physical/free OS memory, max/committed/used/free heap memory and max/committed/used/free native memory.
GarbageCollectorStats
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 |
getCommittedNative()
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 |
getFreeNative()
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 |
getMaxMetadata()
Returns the amount of native memory reserved for metadata.
|
long |
getMaxNative()
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 |
getUsedMetadata() |
long |
getUsedNative()
Returns the amount of used native memory in current HazelcastInstance in bytes.
|
long getTotalPhysical()
long getFreePhysical()
Some operating systems have cached memory regions in which they store hot cached resources like files. Cached memory is used for allocations when required. So although this cached region is assumed as free, operating systems generally report this region as used not free.
long getMaxHeap()
Runtime.maxMemory()
long getCommittedHeap()
Runtime.totalMemory()
,
MemoryUsage.getCommitted()
long getUsedHeap()
MemoryUsage.getUsed()
long getFreeHeap()
Runtime.freeMemory()
long getMaxNative()
long getCommittedNative()
long getUsedNative()
long getFreeNative()
long getMaxMetadata()
...NativeMemory
statistics.long getUsedMetadata()
GarbageCollectorStats getGCStats()
Copyright © 2019 Hazelcast, Inc.. All rights reserved.