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()
Deprecated.
since 5.10 because PermGen no longer exists in Java8
|
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()
Deprecated.
since 5.10 because PermGen no longer exists in Java8
|
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()
Deprecated.
since 5.10 because PermGen no longer exists in Java8
|
public MemoryInfo()
public MemoryInfo.Bytes getAvailableHeap()
public MemoryInfo.Bytes getFreeAllocatedHeap()
public MemoryInfo.Bytes getMaxHeap()
public MemoryInfo.Bytes getAllocatedHeap()
public MemoryInfo.Bytes getUsedHeap()
@Deprecated public MemoryInfo.Bytes getMaxPermGen()
@Deprecated public MemoryInfo.Bytes getUsedPermGen()
@Deprecated 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.