|
|
top - 11:52:22 up 5 days, 20:31, 1 user, load average: 4.99, 4.97, 4.91
Tasks: 29 total, 7 running, 22 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us,100.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1048576k total, 101828k used, 946748k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
21891 www 25 0 23632 8720 4572 R 51.0 0.8 124:25.22 php-cgi
22415 www 25 0 22800 4932 1724 R 49.0 0.5 123:17.31 php-cgi
21889 www 25 0 23400 8472 4476 R 33.3 0.8 83:46.02 php-cgi
21892 www 25 0 23596 8536 4408 R 33.3 0.8 82:07.87 php-cgi
21890 www 25 0 23596 8532 4408 R 33.0 0.8 81:45.77 php-cgi
1 root 18 0 2156 668 576 S 0.0 0.1 0:00.30 init
1126 root 15 -4 2260 576 364 S 0.0 0.1 0:00.00 udevd
1474 root 16 0 1812 572 476 S 0.0 0.1 0:00.02 syslogd
1532 root 18 0 6108 1852 1276 S 0.0 0.2 0:00.00 nginx
1538 root 15 0 22700 4180 1108 S 0.0 0.4 0:00.05 php-cgi
1553 root 15 0 7240 1032 632 S 0.0 0.1 0:00.01 sshd
1561 root 25 0 2832 860 684 S 0.0 0.1 0:00.00 xinetd
1696 root 18 0 9312 1872 796 S 0.0 0.2 0:00.00 sendmail
1704 smmsp 18 0 8264 1508 640 S 0.0 0.1 0:00.00 sendmail
1713 root 15 0 4492 1116 564 S 0.0 0.1 0:00.00 crond
1737 root 18 0 5684 716 436 S 0.0 0.1 0:00.00 saslauthd
1740 root 18 0 5684 444 164 S 0.0 0.0 0:00.00 saslauthd
1854 root 18 0 1932 600 492 S 0.0 0.1 0:00.00 pptpd
1972 root 15 0 4152 1180 732 S 0.0 0.1 0:00.03 screen
1973 root 18 0 3716 1512 1260 S 0.0 0.1 0:00.01 bash
5140 root 19 0 3664 1256 1080 S 0.0 0.1 0:00.00 mysqld_safe
5243 mysql 15 0 38104 7724 3328 S 0.0 0.7 0:03.84 mysqld
5405 www 15 0 16664 12m 1432 S 0.0 1.2 0:24.03 nginx
5406 www 15 0 16696 12m 1408 S 0.0 1.2 0:23.63 nginx
9913 root 16 0 10228 2936 2356 S 0.0 0.3 0:00.05 sshd
9915 root 15 0 6684 1588 1200 S 0.0 0.2 0:00.01 sftp-server
23554 root 15 0 10232 2924 2364 R 0.0 0.3 0:00.00 sshd
23556 root 16 0 3712 1496 1264 S 0.0 0.1 0:00.00 bash
23581 root 15 0 2288 1024 824 R 0.0 0.1 0:00.00 top
openvz CentOS5.8 32bit lnmp0.9
打开php页面 502,发现几个php-cgi进程把cpu跑满了,负载到4了。
网站流量很小,平常都是负载0的。
重启php-fpm 就好了
nginx没开日志,最可能是什么情况? |
|