public class ShowMemoryUsage.MemoryInformation
extends java.lang.Object
Constructor and Description |
---|
ShowMemoryUsage.MemoryInformation() |
Modifier and Type | Method and Description |
---|---|
long |
getCommitedHeapMemory()
Returns the size of the allocated heap memory of the JVM, measured in bytes.
|
long |
getCommitedNonHeapMemory()
Returns the size of the allocated non heap memory of the JVM, measured in bytes.
|
java.lang.String |
getFormattedAvalonMemoryInformation(java.lang.String separator1,
java.lang.String separator2)
Returns a formatted string with the relevant memory informations about the avalon process
|
long |
getMaxHeapMemory()
Returns the size of max possible heap memory of the JVM, measured in bytes.
|
long |
getMaxNonHeapMemory()
Returns the size of max possible non heap memory of the JVM, measured in bytes.
|
long |
getUsedHeapMemory()
Returns the size of used heap memory of the JVM, measured in bytes.
|
long |
getUsedNonHeapMemory()
Returns the size of used non heap memory of the JVM, measured in bytes.
|
public java.lang.String getFormattedAvalonMemoryInformation(java.lang.String separator1, java.lang.String separator2)
separator1
- Characters after descriptionseparator2
- Characters after valuepublic long getUsedHeapMemory()
public long getCommitedHeapMemory()
public long getMaxHeapMemory()
public long getUsedNonHeapMemory()
public long getCommitedNonHeapMemory()
public long getMaxNonHeapMemory()