Package com.tenio.core.monitoring.system
Class SystemMonitoring
java.lang.Object
com.tenio.core.monitoring.system.SystemMonitoring
For showing the system information.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the number of running threads.double
Retrieves the CPU usage.long
long
long
static SystemMonitoring
-
Method Details
-
newInstance
-
getCpuUsage
public double getCpuUsage()Retrieves the CPU usage.- Returns:
- the CPU usage in percentage
-
countRunningThreads
public int countRunningThreads()Retrieves the number of running threads.- Returns:
- the number of running threads
-
getTotalMemory
public long getTotalMemory() -
getFreeMemory
public long getFreeMemory() -
getUsedMemory
public long getUsedMemory()
-