【原】使用UNIX工具监控系统

作者:david_zhang@sh 【转载时请以超链接形式标明文章】
链接:http://www.cnblogs.com/david-zhang-index/archive/2012/08/22/2650579.html

DBA也需要了解系统性能,下面是UNIX上一些系统监控工具,具体信息不作描述,相信比较简单,一看就知道

 1 sar -u(检查cpu沉重程度)
 2 UCMSAPP03 /export/home/fit 10>sar -u 5 8
 3 
 4 sar -d(查找I/O问题)
 5 UCMSAPP03 /export/home/fit 12>sar -d 5 8
 6 
 7 sar -b(检查缓存)
 8 UCMSAPP03 /export/home/fit 13>sar -b 5 8
 9 
10 sar -q(检查运行队列和交互队列的长度)
11 UCMSAPP03 /export/home/fit 16>sar -q 5 8
12 
13 sar -w(报告交换和切换的活动)
14 UCMSAPP03 /export/home/fit 18>sar -w 5 8
15 
16 sar -r(空闲内存和空闲交换)
17 UCMSAPP03 /export/home/fit 19>sar -r 5 8
18 
19 sar -g(报告分析活动)
20 UCMSAPP03 /export/home/fit 20>sar -g 5 8
21 
22 sar -wpgr(内存使用率)
23 UCMSAPP03 /export/home/fit 21>sar -wpgr 5 8
24 
25 mpstat(确定cpu瓶颈)
26 UCMSAPP03 /export/home/fit 24>mpstat 10 5
27 
28 iostar(确定I/O瓶颈)
29 UCMSAPP03 /export/home/fit 25>iostat 5 5
30 
31 vmstat(许多命令的综合)
32 UCMSAPP03 /export/home/fit 29>vmstat 5 8
网络监控工具:netstat
posted @ 2012-08-22 12:00  david_zhang@sh  阅读(622)  评论(0编辑  收藏  举报