日期:2014-05-16  浏览次数:20733 次

linux 常用系统监控

1,监控CPU

top命令:

?

top - 15:12:13 up 170 days, 13 min,? 1 user,? load average: 0.00, 0.00, 0.00
Tasks: 114 total,?? 1 running, 113 sleeping,?? 0 stopped,?? 0 zombie

??????????????? 用户空间| 系统空间 |用户进程内改变过优先级的进程占用| 空闲 ||等待输入输 |硬件中断 ||软件中断 | 被窃取的时间
Cpu(s):? 0.0%us, ? 0.0%sy, ???? 0.0%ni, ???????????????????????????? ? ? ? ? ? ? ? ? ? ? ????? 100.0%id ,? 0.0%wa, ? 0.0%hi, ? 0.0%si, ? 0.0%st
Mem:?? 5120000k total,? 3950552k used,? 1169448k free,?? 523188k buffers
Swap:? 2096440k total,????? 112k used,? 2096328k free,? 2477872k cached

进程ID| 用户名| 进程优先级| NICE值| 虚拟内存大小| 共享内存| 常驻内存| 进程状态| CPU占用率| 内存占用率| CPU时间使用总计| 命令 ?

PID??? ? USER????? PR???????????????? NI???? ????? ?VIRT? ?????????? SHR????? RES?????? ??S????????? ?%CPU????????? ?? %MEM??????????? ?TIME+?????????????????? ?COMMAND???????????????????????????????????????????????????????????????
25255???tpsc????????15???????????????? 0??????????????1576m??????? 12m???????179m???? S???????????? 0.0???????????????? 3.6?????????????? ? 11:53.72???????????????java??????????????????????????????????????????????????????????????????
23826???search????19???????????????? 0??????????????1715m???????? 9.8m??????142m??? S?????????????0.0????????????? ?? 2.9???????????????? 20:34.79???????????????java??????????????????????????????????????????????????????????????????
14696???tpsc????????17???????????????? 0??????????????1650m???????? 9280????? 42m????? S?????????? ? 0.0???????????????? 0.9???????????????? 0:29.10?????????????? ??jstatd????????????????????????????????????????????????????????????????
17161???tpsc????????18?????????????????0??????????????79276????????? 12m????? 13m???????S???????????? 0.0???????????????? 0.3???????????????? 0:00.02???????????? ???hummockclient?????????????????????????????????????????????????????????
?2732????ntp?????????15???????????????? 0??????????????19184????????? 3780?????4880????? S???????????? 0.0???????????????? 0.1???????????????? 0:00.00??????????? ??? ntpd??????????????????????????????????????????????????????????????????
17168???tpsc????????18???????????????? 0????????????? 715m?????????? 1800?????4464??????S??????????? ?0.0???????????????? 0.1???????????????? 0:00.00??????????? ??? httpd?????????????????????????????????????????????????????????????????
17158???root????????18???????????????? 0????????????? 43480????????? 2176?????3732??????S??????????? ?0.0???????????????? 0.1???????????????? 0:00.03??????????? ????httpd?????????????????????????????????????????????????????????????????
22244???root????????15?????????????????0??????????????34248????????? 1796?????2604??????S?????????????0.0???????????????? 0.1???????????????? 0:00.72??????????