linux性能監控工具collectl安裝及簡要使用說明

[root@test45 ~]# vi  /etc/resolv.conf

nameserver 202.106.0.20

1.root下執行

perl -MCPAN -e shell

在選擇窗口選擇no,不進行cpan環境參數的配置

2.在cpan命令行下執行命令如下

cpan>install Time::HiRes

3.在cpan命令行下執行命令如下

cpan>install Compress::Zlib

以上安裝兩個模塊中間出現提示符,回車即可。

然後quit/exit退出perl cpan

到官方網站下載源代碼:

wget http://jaist.dl.sourceforge.net/sourceforge/collectl/collectl-3.1.3.src.tar.gz

#tar zxvf collectl-3.1.3.src.tar.gz

#cd collectl-3.1.3

#./INSTALL

a.運行命令:collectl -scdnm -oT 收集包括IO/CPU/Network/NFS/Infiniband/Lustre/Process/Slabs等等。

b. 可以生成日誌文件,如:以1/4秒採集系統數據並保存到日誌文件中,

collectl -i.25 -oDm --iosize > testPerf.log

c.可以用nmon analyser來產生由collectl產生的文件。需要對nmon analyser的腳本做一定的改寫.

d.支持socket發送數據,可以實時監控很多linux系統的機器

更詳細的命令參數請參考man collectl


參考資料:

http://collectl.sourceforge.net/

http://dt1.iteye.com/blog/333972

http://apps.hi.baidu.com/share/detail/14465228

http://hi.baidu.com/thinke365/blog/item/113c82c543704ba28226ac0c.html

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章