public class VmStat extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
_cpus
CPU数量
|
static VmStat |
_VmStat |
protected int |
m_LoadAverage
系统上一分钟时的负载情况百分比,(0~100)*CPU数,如:单CPU下,100表系统满载,500表示系统快忙崩,最好是在70以下
|
protected Memory |
m_Memory
内存使用状态
|
protected int |
m_Pid
JVM进程ID
|
protected int |
m_ProcessCpuLoad
当前JVM进程CPU负载百分比
|
protected int |
m_ThreadCount
当前JVM线程数
|
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getLoadAverage()
系统负载(0%~100%)
|
static Memory |
getMemory() |
static int |
getPid() |
static int |
getProcessCpuLoad()
当前JVM进程CPU负载(0%~100%)
|
static int |
getThreadCount() |
static void |
refresh() |
void |
refresh0() |
String |
toString() |
protected Memory m_Memory
protected int m_LoadAverage
protected int m_ProcessCpuLoad
protected int m_ThreadCount
protected int m_Pid
public static int _cpus
public static final VmStat _VmStat
public static Memory getMemory()
public static int getLoadAverage()
public static int getProcessCpuLoad()
public static int getThreadCount()
public static int getPid()
public static void refresh()
public void refresh0()
Copyright © 2022. All rights reserved.