直接看代码: [java] view plaincopy
[html] view plaincopy
需要的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 测试系统:windows Vista |
|
来自: yetao_study > 《Java》