歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Linux性能監控與分析工具

Linux性能監控與分析工具

日期:2017/3/1 16:29:55   编辑:關於Linux
Linux性能監控與分析工具 背景 最近需要對一套預研完成的系統性能測試,該系統部署在Linux服務器集群上。 在高並發、高負載場景下收集每台設備資源占用的全部信息(這些信息包括CPU,內存,I/O,磁盤,網絡流量等等等),進一步分析系統瓶頸。 這裡用上了nmon這款工具。由nmon負責定期收集全套系統信息,再由nmon_analyser將原始數據轉換為可視化的表格與圖形。 正文 Wiki: nmon (short for Nigel's Monitor) is a popular system monitor tool for the AIX and Linux operating systems. The original nmon was a freely downloadable tool for AIX 4.3 from the AIX wiki. It was also rewritten for the Linux operating system running on IA-32, x86-64, RS/6000 and Power processor and Mainframe and released by IBM to open source in July 2009. nmon download Here —— 選擇自己系統對應的nmon版本下載 nmon_analyser download: Here 使用方式 在待監控設備Linux系統中執行: [plain] # ./nmon -h 可以查詢參數列表,也可直接執行nmon看到即時的界面(形如top) 例如: [plain] # ./nmon -f -t -s 15 -c 480 -f :按標准格式輸出<hostname>_YYYYMMDD_HHMM.nmon,這個文件就是nmon_analyser的輸入; -s:數據采集周期,這裡是每15s一次; -c:采集總次數,這裡共采集480次; 這裡持續采集15*480 = 7200s(2個小時); -m:可以指定文件生成路徑; 其他 1、配合crontab可以實現對系統的定時監控,例如每晚20:00啟動,23:00采集結束; 2、使用nmon_analyser將nmon文件轉換為Excel格式便可直接浏覽(nmon文件實質是以逗號分隔的文件,csv) 3、生成的報告中wAvg指的是非零數據的平均值 來源 blog:http://blog.csdn.net/pirateleo
Copyright © Linux教程網 All Rights Reserved