sigar使用:在web中应用sigar取得系统信息
[转]
需要的jar:
.sigar_shellrc
pdh.dll
sigar-1.5.0.1.jar
sigar-x86-winnt.dll
sigar-x86-winnt.lib
测试结果:
访问http://127.0.0.1:8080/sigar/sigar
CPU Usage:0.22815533980582525
Memory Free:863
Memory Total:2046
Swap Free:2048
Swap Total:4330
Page Free:0
Page Total:0
=============================================
1 楼 kill_e680 2012-03-04 取CPU号和取硬盘号,在linux下可以用吗?