public class MemoryInformation
extends java.lang.Object
Constructor and Description |
---|
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 |
getCompactHeaderForAvalon(java.lang.String prefix,
java.lang.String separator)
Returns a compact string with description of memory informations.
|
java.lang.String |
getCompactMemoryInformationForAvalon(java.lang.String prefix,
java.lang.String separator)
Returns a compact string with memory informations.
|
java.util.List<java.lang.String[]> |
getCurrentProcesses()
Returns a list with String arrays, which contains informations about the current running processes.
|
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 |
getUsedMemeoryFromAvalonProcess()
Returns the size of memory allocated by the avalon process, meassured in bytes.
|
long |
getUsedNonHeapMemory()
Returns the size of used non heap memory of the JVM, measured in bytes.
|
static void |
main(java.lang.String[] args) |
java.lang.String |
parseWindowsServicesForPrcessId()
Scans the running windows services for name part: 'avalon'.
|
public java.lang.String getFormattedAvalonMemoryInformation(java.lang.String separator1, java.lang.String separator2)
separator1
- Characters after descriptionseparator2
- Characters after valuepublic java.lang.String getCompactHeaderForAvalon(java.lang.String prefix, java.lang.String separator)
prefix
- A string for beginning of the lineseparator
- A string between each columnpublic java.lang.String getCompactMemoryInformationForAvalon(java.lang.String prefix, java.lang.String separator)
prefix
- A string for beginning of the lineseparator
- A string between each columnpublic long getUsedHeapMemory()
public long getCommitedHeapMemory()
public long getMaxHeapMemory()
public long getUsedNonHeapMemory()
public long getCommitedNonHeapMemory()
public long getMaxNonHeapMemory()
public long getUsedMemeoryFromAvalonProcess()
public java.lang.String parseWindowsServicesForPrcessId()
public java.util.List<java.lang.String[]> getCurrentProcesses()
public static void main(java.lang.String[] args)