|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.status.service.systeminfo.MemoryInfo
public class MemoryInfo
Simple bean encapsulating information about the system's memory usage. The usage information is calculated when the bean is instantiated (and not recalculated after)
Nested Class Summary | |
---|---|
static class |
MemoryInfo.Bytes
Represents some number of bytes. |
Constructor Summary | |
---|---|
MemoryInfo()
Construct a new MemoryInfo containing details of Confluence's memory usage at time of instantiation. |
Method Summary | |
---|---|
MemoryInfo.Bytes |
getAllocatedHeap()
Gets the amount of heap currently allocated by the JVM. |
MemoryInfo.Bytes |
getAvailableHeap()
Gets the total heap still available to be used. |
MemoryInfo.Bytes |
getAvailablePermGen()
Gets the currently available permanent generation memory. |
MemoryInfo.Bytes |
getFreeAllocatedHeap()
Gets the amount of currently allocated heap that has not been used. |
long |
getFreeMemory()
Deprecated. since 3.1 produces misleading memory info. Please use newer API |
long |
getFreeMemoryInMegabytes()
Deprecated. since 3.1 produces misleading memory info. Please use newer API |
MemoryInfo.Bytes |
getMaxHeap()
Gets the maximum amount of heap the JVM is will allow to be allocated. |
MemoryInfo.Bytes |
getMaxPermGen()
Gets the maximum permanent generation memory allocation. |
long |
getTotalMemory()
Deprecated. since 3.1 produces misleading memory statistics. Please use newer API |
long |
getTotalMemoryInMegabytes()
Deprecated. since 3.1 produces misleading memory info. Please use newer API |
MemoryInfo.Bytes |
getUsedHeap()
Gets the amount of heap currently used by the JVM. |
long |
getUsedMemory()
Deprecated. since 3.1. Use getUsedHeap() |
long |
getUsedMemoryInMegabytes()
Deprecated. since 3.1. Use getUsedHeap() |
MemoryInfo.Bytes |
getUsedPermGen()
Gets the currently used permanent generation memory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryInfo()
Method Detail |
---|
public MemoryInfo.Bytes getAvailableHeap()
public MemoryInfo.Bytes getFreeAllocatedHeap()
public MemoryInfo.Bytes getMaxHeap()
public MemoryInfo.Bytes getAllocatedHeap()
public MemoryInfo.Bytes getUsedHeap()
public MemoryInfo.Bytes getMaxPermGen()
public MemoryInfo.Bytes getUsedPermGen()
public MemoryInfo.Bytes getAvailablePermGen()
public long getTotalMemory()
getMaxHeap()
,
getAllocatedHeap()
public long getTotalMemoryInMegabytes()
getMaxHeap()
,
getAllocatedHeap()
public long getFreeMemory()
getAvailableHeap()
public long getFreeMemoryInMegabytes()
getAvailableHeap()
public long getUsedMemory()
getUsedHeap()
public long getUsedMemoryInMegabytes()
getUsedHeap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |