从http://sourceforge.net/projects/sigar/files/sigar/1.6/hyperic-sigar-1.6.4.zip/download下载sigar,
参照了http://www.cnblogs.com/bdzwater/p/3205304.html,公司电脑运行不了,
java.lang.UnsatisfiedLinkError: getCpuInfoList
。。。
(其实可以参照http://blog.sina.com.cn/s/blog_83fcad250101hib7.html解决问题)
我本机却是没有任何问题: (我本机也没做任何特殊处理。。)
CPU个数:2
CPU的总量:2093
获得CPU的卖主:Intel
CPU的类别:Pentium(R) CPU B950 @ 2.10GHz
缓冲存储器数量:-1
**************
CPU的总量:2093
获得CPU的卖主:Intel
CPU的类别:Pentium(R) CPU B950 @ 2.10GHz
缓冲存储器数量:-1
**************
用户使用率:14.0%
系统使用率:4.8%
当前等待率:0.0%
Nice :0.0%
当前空闲率:81.1%
总的使用率:18.8%
**************
用户使用率:28.0%
系统使用率:6.2%
当前等待率:0.0%
Nice :0.0%
当前空闲率:65.7%
总的使用率:34.2%
**************
用户使用率:24.8%
系统使用率:0.0%
当前等待率:0.0%
Nice :0.0%
当前空闲率:75.1%
总的使用率:24.8%
**************
内存总量:3.89G
当前内存使用量:2.43G
当前内存剩余量:1.46G
交换区总量:7.77G
当前交换区使用量:2.98G
当前交换区剩余量:4.79G ~~~~~~~~~0~~~~~~~~~
获取设备getDevice() = console
获得主机getHost() = NT AUTHORITY
获取的时间getTime() = 0
获取用户getUser() = LOCAL SERVICE ~~~~~~~~~1~~~~~~~~~
获取设备getDevice() = console
获得主机getHost() = NT AUTHORITY
获取的时间getTime() = 0
获取用户getUser() = NETWORK SERVICE ~~~~~~~~~2~~~~~~~~~
获取设备getDevice() = console
获得主机getHost() = WINDOWS-LUOK
获取的时间getTime() = 1392643060
获取用户getUser() = Administrator ~~~~~~~~~3~~~~~~~~~
获取设备getDevice() = console
获得主机getHost() = NT AUTHORITY
获取的时间getTime() = 0
获取用户getUser() = SYSTEM ~~~~~~~~~~0~~~~~~~~~~
fs.getDevName() = C:\
fs.getDirName() = C:\
fs.getFlags() = 0
fs.getSysTypeName() = NTFS
fs.getTypeName() = local
fs.getType() = 2
Total = 40.00G
Free = 2.57G
Avail = 2.57G
Used = 37.43G
Usage = 94.00%
DiskReads = 231535
DiskWrites = 281130 ~~~~~~~~~~1~~~~~~~~~~
fs.getDevName() = D:\
fs.getDirName() = D:\
fs.getFlags() = 0
fs.getSysTypeName() = NTFS
fs.getTypeName() = local
fs.getType() = 2
Total = 86.01G
Free = 20.53G
Avail = 20.53G
Used = 65.48G
Usage = 77.00%
DiskReads = 59030
DiskWrites = 3732 ~~~~~~~~~~2~~~~~~~~~~
fs.getDevName() = F:\
fs.getDirName() = F:\
fs.getFlags() = 0
fs.getSysTypeName() = NTFS
fs.getTypeName() = local
fs.getType() = 2
Total = 86.06G
Free = 37.70G
Avail = 37.70G
Used = 48.37G
Usage = 57.00%
DiskReads = 23136
DiskWrites = 2840 ~~~~~~~~~~3~~~~~~~~~~
fs.getDevName() = G:\
fs.getDirName() = G:\
fs.getFlags() = 0
fs.getSysTypeName() = cdrom
fs.getTypeName() = cdrom
fs.getType() = 5
OS.getArch() = x64
OS.getCpuEndian() = little
OS.getDataModel() = 64
OS.getDescription() = Microsoft Windows 7
OS.getMachine() =
OS.getName() = Win32
OS.getPatchLevel() = Service Pack 1
OS.getVendor() = Microsoft
OS.getVendorCodeName() = Vienna
OS.getVendorName() = Windows 7
OS.getVendorVersion() = 7
OS.getVersion() = 6.1