直接看代碼: [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 測試系統(tǒng):windows Vista |
|
來自: yetao_study > 《Java》