public interface SystemPerformanceInfo
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
getAvailableProcessors()
Returns the number of processors available to the Java virtual machine.
|
long |
getCommittedMemory()
Returns the amount of memory in bytes that is committed for
the Java virtual machine to use.
|
int |
getDaemonThreadCount()
Returns the current number of live daemon threads.
|
long |
getGcCollectionCount()
Returns the total number of collections that have occurred.
|
long |
getGcCollectionTime()
Returns the approximate accumulated collection elapsed time
in milliseconds.
|
long |
getMaxMemory()
Returns the maximum amount of memory in bytes that can be
used for memory management.
|
double |
getSystemLoadAverage()
Returns the system load average; or a negative value if not available
|
int |
getThreadCount()
Returns the current number of live threads including both
daemon and non-daemon threads.
|
long |
getUsedMemory()
Returns the amount of used memory in bytes.
|
int getAvailableProcessors()
Runtime.availableProcessors()
method.double getSystemLoadAverage()
long getUsedMemory()
long getCommittedMemory()
long getMaxMemory()
int getThreadCount()
int getDaemonThreadCount()
long getGcCollectionCount()
long getGcCollectionTime()