使用的是sigar.jar包
sigar.jar下载地址密码1j2r
使用方法这三个文件放到jdk安装目录的bin下;
Sigar sigar = new Sigar();Mem mem = sigar.getMem();CpuPerc cpu = sigar.getCpuPerc();CpuInfo infos[] = sigar.getCpuInfoList();CpuPerc cpuList[] = null;
使用sigar这个对象获取内容
时间:2018-10-06 05:38:04
使用的是sigar.jar包
sigar.jar下载地址密码1j2r
使用方法这三个文件放到jdk安装目录的bin下;
Sigar sigar = new Sigar();Mem mem = sigar.getMem();CpuPerc cpu = sigar.getCpuPerc();CpuInfo infos[] = sigar.getCpuInfoList();CpuPerc cpuList[] = null;
使用sigar这个对象获取内容