njmon = nmon + JSON format + real-time push to a stats database + instant graphing of “all the stats you can eat” (AIX and Linux) This njmon is a major overhaul of nmon for the next 10 years:
与 nmon 类似,但输出为 JSON 格式,可以用于服务器性能统计。
原图链接:http://nmon.sourceforge.net/docs/nmon_why.png
nmon 与 njmon 功能对比:
分析工具对比:
# 下载
$ wget http://sourceforge.net/projects/nmon/files/njmon_linux_binaries_v53.zip
# 解压
$ unzip njmon_linux_binaries_v53.zip
# 选择相应版本,放到 local 的 bin 下
$ mv njmon_linux_RHEL7_AMD64_v53 /usr/local/bin/njmon
# 验证
$ njmon -?
查看帮助
$ njmon -?
间隔 5 分钟,采集一天
$ njmon -s 300 -c 288 -f -m /tmp
说明:
默认间隔时间(-s 60),保存 json 结果
$ njmon > daodaotest.json
# 下载
$ wget http://sourceforge.net/projects/nmon/files/njmonchart_v40.zip
# 解压
$ unzip njmonchart_v40.zip
# 选择相应版本,放到 local 的 bin 下
$ mv njmonchart_linux_v40.py /usr/local/bin/njmonchart
# 添加执行权限
$ chmod +x /usr/local/bin/njmonchart
# 生成 html 报告
$ njmonchart daodaotest.json daodaotest.html
报告截图
CPU 图表
内存图表
工具地图