public class MemoryInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MemoryInfo.Bytes
Represents some number of bytes.
|
Constructor and Description |
---|
MemoryInfo()
Construct a new MemoryInfo containing details of Confluence's memory usage at time of instantiation.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MemoryInfo()
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()
@Deprecated public long getTotalMemory()
getMaxHeap()
,
getAllocatedHeap()
@Deprecated public long getTotalMemoryInMegabytes()
getMaxHeap()
,
getAllocatedHeap()
@Deprecated public long getFreeMemory()
getAvailableHeap()
@Deprecated public long getFreeMemoryInMegabytes()
getAvailableHeap()
@Deprecated public long getUsedMemory()
getUsedHeap()
@Deprecated public long getUsedMemoryInMegabytes()
getUsedHeap()
Copyright © 2003–2016 Atlassian. All rights reserved.