注册
登录
storm
>>
system-monitor-ING
>>
返回
项目作者:
lhf2018
项目描述 :
使用sigar和websocket实现系统参数的网页展示
高级语言:
Java
项目主页:
项目地址:
git://github.com/lhf2018/system-monitor-ING.git
创建时间:
2019-08-01T12:17:31Z
项目社区:
https://github.com/lhf2018/system-monitor-ING
开源协议:
下载
使用sigar和websocket实现主机实时参数的网页展示
使用sigar.jar来检测主机的内存、cpu、系统等参数,websocket实现在不更新网页的情况下实时显示服务器发来的数据
效果图
备注
demo目前能够显示CPU总使用率、当前内存使用率、当前内存空闲率、当前时间,本demo目前只是实现基本功能的展示,后续会更新其他功能
本例目前提供windows系统的相应dll文件
运行代码
System.out.println(System.getProperty("java.class.path"));
把resources/sigar-amd64-winnt/X64/1.6.4.104/sigar-amd64-winnt.dll中放到刚才代码显示的一个classpath中