高负载问题,请大家指点下!!
0101linux
|
1#
0101linux 发表于 2007-07-23 17:58
高负载问题,请大家指点下!!
刚才执行top看到负载很高
top - 17:42:21 up 4 days, 1:39, 3 users, load average: 16.12, 15.77, 11.14 Tasks: 148 total, 4 running, 144 sleeping, 0 stopped, 0 zombie Cpu(s): 1.2% us, 10.1% sy, 0.0% ni, 59.2% id, 29.5% wa, 0.0% hi, 0.0% si Mem: 4137836k total, 1251328k used, 2886508k free, 209752k buffers Swap: 8193108k total, 144k used, 8192964k free, 282948k cached 有执行了ps -aux [root@homekoo spool]# ps -aux Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1904 0.0 0.0 2500 452 ? Ss Jul19 0:00 cpuspeed -d -n root 1905 0.0 0.0 2500 452 ? S Jul19 0:00 cpuspeed -d -n root 1906 0.0 0.0 2500 452 ? S Jul19 0:00 cpuspeed -d -n root 1907 0.0 0.0 2500 452 ? S Jul19 0:00 cpuspeed -d -n root 2171 0.0 0.0 2920 592 ? Ss Jul19 0:03 syslogd -m 0 root 2175 0.0 0.0 2844 468 ? Ss Jul19 0:00 klogd -x root 2185 0.0 0.0 2568 476 ? Ss Jul19 0:00 irqbalance rpc 2202 0.0 0.0 2700 576 ? Ss Jul19 0:00 portmap rpcuser 2221 0.0 0.0 1892 752 ? Ss Jul19 0:00 rpc.statd root 2247 0.0 0.0 4948 1004 ? Ss Jul19 0:00 rpc.idmapd root 2324 0.0 0.0 2640 548 ? Ss Jul19 0:00 /usr/sbin/acpid root 2386 0.0 0.0 4976 1708 ? Ss Jul19 0:03 /usr/sbin/sshd root 2399 0.0 0.0 2936 828 ? Ss Jul19 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid root 2417 0.0 0.0 9640 3356 ? Ss Jul19 0:03 sendmail: accepting connections smmsp 2425 0.0 0.0 6952 2556 ? Ss Jul19 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue root 2434 0.0 0.0 2964 524 ? Ss Jul19 0:00 gpm -m /dev/input/mice -t imps2 root 2449 0.0 0.0 5088 1160 ? Ss Jul19 0:00 crond xfs 2474 0.0 0.0 3900 1460 ? Ss Jul19 0:00 xfs -droppriv -daemon root 2491 0.0 0.0 3472 740 ? Ss Jul19 0:00 /usr/sbin/atd dbus 2500 0.0 0.0 14028 1308 ? Ssl Jul19 0:00 dbus-daemon-1 --system root 2512 0.0 0.1 9236 6828 ? Ss Jul19 0:30 hald root 2715 0.0 0.0 5112 688 ? S Jul19 0:00 pure-ftpd (SERVER) root 2760 0.0 0.0 4440 1228 ? S Jul19 0:00 /bin/sh /database/mysql//bin/mysqld_safe --datadir=/database/mysql//var --pid-f mysql 2787 0.0 0.4 173164 18020 ? Sl Jul19 0:02 /database/mysql/libexec/mysqld --basedir=/database/mysql --datadir=/database/my root 2806 0.0 0.0 2448 416 tty1 Ss+ Jul19 0:00 /sbin/mingetty tty1 root 2807 0.0 0.0 3160 416 tty2 Ss+ Jul19 0:00 /sbin/mingetty tty2 root 2808 0.0 0.0 2856 416 tty3 Ss+ Jul19 0:00 /sbin/mingetty tty3 root 2809 0.0 0.0 2300 412 tty4 Ss+ Jul19 0:00 /sbin/mingetty tty4 root 2810 0.0 0.0 3296 416 tty5 Ss+ Jul19 0:00 /sbin/mingetty tty5 root 2811 0.0 0.0 1864 416 tty6 Ss+ Jul19 0:00 /sbin/mingetty tty6 root 29472 0.0 0.1 12748 6772 ? Ss Jul20 0:37 /usr/local/apache2/bin/httpd -k start root 15900 0.0 0.0 8144 2196 ? Ss Jul22 0:00 cupsd root 19273 0.0 0.0 0 0 ? S Jul22 0:01 [pdflush] virtual 12607 0.0 0.0 6408 1432 ? S 15:47 0:01 pure-ftpd (UPLOAD) root 14540 0.0 0.0 7756 2324 ? Ss 16:33 0:00 sshd: root@pts/0 root 14549 0.0 0.0 4428 1436 pts/0 Ss 16:33 0:00 -bash root 14582 0.2 0.0 3272 1044 pts/0 S+ 16:33 0:08 top root 14611 0.0 0.0 8396 2308 ? Ss 16:35 0:00 sshd: root@pts/1,pts/2 root 14622 0.0 0.0 6208 1432 pts/1 Ss 16:35 0:00 -bash root 18598 0.0 0.0 4984 1464 pts/2 Ss 17:13 0:00 -bash root 18692 0.2 0.0 2428 1036 pts/1 S+ 17:13 0:03 top daemon 23551 0.0 0.2 14196 8592 ? S 17:20 0:00 /usr/local/apache2/bin/httpd -k start daemon 24590 2.5 0.2 14288 8560 ? S 17:22 0:15 /usr/local/apache2/bin/httpd -k start daemon 27336 0.1 0.2 14448 8812 ? S 17:26 0:00 /usr/local/apache2/bin/httpd -k start daemon 27362 4.4 0.1 13864 8216 ? S 17:26 0:15 /usr/local/apache2/bin/httpd -k start daemon 28345 4.2 0.1 13440 7608 ? D 17:28 0:10 /usr/local/apache2/bin/httpd -k start daemon 28356 4.0 0.2 14128 8464 ? D 17:28 0:10 /usr/local/apache2/bin/httpd -k start daemon 28357 0.0 0.2 14168 8480 ? S 17:28 0:00 /usr/local/apache2/bin/httpd -k start daemon 28376 0.0 0.2 14272 8532 ? S 17:28 0:00 /usr/local/apache2/bin/httpd -k start daemon 28403 0.2 0.2 14232 8632 ? S 17:28 0:00 /usr/local/apache2/bin/httpd -k start daemon 28405 4.2 0.1 13848 8208 ? D 17:28 0:10 /usr/local/apache2/bin/httpd -k start daemon 28593 0.1 0.2 14280 8572 ? S 17:28 0:00 /usr/local/apache2/bin/httpd -k start daemon 28911 0.0 0.2 14180 8572 ? S 17:28 0:00 /usr/local/apache2/bin/httpd -k start root 29092 0.0 0.0 10392 4132 ? Ss 17:29 0:00 sendmail: ./l6N9T9me029090 mx2.mail.tw.yahoo.com.: user open daemon 29280 3.2 0.2 14300 8704 ? D 17:29 0:05 /usr/local/apache2/bin/httpd -k start root 29362 0.0 0.0 10392 4132 ? Ss 17:29 0:00 sendmail: ./l6N9Tb9g029359 mx2.mail.tw.yahoo.com.: user open daemon 29399 0.1 0.2 14844 9216 ? S 17:29 0:00 /usr/local/apache2/bin/httpd -k start root 29604 0.0 0.0 10392 4136 ? Ss 17:29 0:00 sendmail: ./l6N9Ts7V029549 freemx1.sinamail.sina.com.cn.: client greeting daemon 29743 0.0 0.2 14120 8412 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 29767 4.2 0.2 14256 8556 ? D 17:30 0:05 /usr/local/apache2/bin/httpd -k start daemon 29772 0.2 0.2 14060 8392 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 29781 0.2 0.2 14172 8524 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 29791 0.0 0.1 13760 8008 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 29854 0.0 0.2 13996 8380 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 30072 0.0 0.0 0 0 ? Z 17:30 0:00 [httpd] <defunct> daemon 30087 0.0 0.2 14220 8484 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 30088 0.0 0.1 13756 8020 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 30089 4.7 0.1 13020 7064 ? D 17:30 0:04 /usr/local/apache2/bin/httpd -k start daemon 30192 0.0 0.2 14004 8372 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 30206 0.1 0.2 13988 8320 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 30221 0.0 0.2 14248 8512 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 30222 0.0 0.1 13768 8072 ? S 17:30 0:00 /usr/local/apache2/bin/httpd -k start daemon 30430 0.0 0.1 12880 6900 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30447 0.1 0.1 13756 8060 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30465 0.5 0.2 14164 8508 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30467 0.1 0.1 13668 8048 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30481 0.0 0.1 13016 7148 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30484 0.1 0.2 14472 8772 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30488 0.0 0.1 13544 7828 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30511 0.2 0.2 14152 8448 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30525 0.1 0.2 14208 8448 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start root 30568 0.0 0.1 10688 4196 ? Ss 17:31 0:00 sendmail: ./l6N9VUnI030566 kailuan.com.cn.: client RCPT daemon 30667 0.1 0.0 0 0 ? Z 17:31 0:00 [httpd] <defunct> daemon 30678 0.1 0.1 13924 8192 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30679 0.1 0.1 13728 8036 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30694 0.0 0.1 13020 7156 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30723 0.1 0.2 14224 8460 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30724 0.1 0.2 14220 8432 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30725 0.0 0.1 12880 6900 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30726 0.0 0.1 13152 7216 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30727 0.0 0.1 13020 7076 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30728 0.0 0.1 13756 8004 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30792 0.0 0.1 13168 7248 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30834 0.2 0.2 14136 8464 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30835 0.1 0.1 13848 8236 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30845 0.0 0.1 13020 7068 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30923 0.0 0.1 12880 6896 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30924 0.0 0.1 12992 7124 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30928 3.4 0.1 12912 7096 ? R 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30929 0.0 0.1 12888 7004 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30930 0.0 0.1 12880 6876 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30931 0.0 0.1 13756 7980 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30932 0.0 0.1 12880 6896 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start daemon 30934 0.1 0.1 13748 8004 ? S 17:31 0:00 /usr/local/apache2/bin/httpd -k start root 31010 0.0 0.1 10392 4144 ? Ss 17:32 0:00 sendmail: ./l6N9W6Hb031004 dmhosting.g.ysm.yahoo.com.: user open root 31032 0.0 0.1 10688 4188 ? Ss 17:32 0:00 sendmail: ./l6N9W7nt031021 freemx1.sinamail.sina.com.cn.: client RCPT daemon 31063 0.0 0.1 12880 6880 ? S 17:32 0:00 /usr/local/apache2/bin/httpd -k start daemon 31082 0.4 0.1 13756 7972 ? S 17:32 0:00 /usr/local/apache2/bin/httpd -k start daemon 31083 0.0 0.1 12880 6892 ? S 17:32 0:00 /usr/local/apache2/bin/httpd -k start root 31085 0.0 0.1 10688 4188 ? Ss 17:32 0:00 sendmail: ./l6N9W9WD031079 freemx2.sinamail.sina.com.cn.: client RCPT daemon 31101 0.0 0.1 12880 6880 ? S 17:32 0:00 /usr/local/apache2/bin/httpd -k start daemon 31102 0.0 0.1 12880 6880 ? S 17:32 0:00 /usr/local/apache2/bin/httpd -k start daemon 31103 1.0 0.2 14208 8408 ? S 17:32 0:00 /usr/local/apache2/bin/httpd -k start daemon 31104 0.0 0.1 12880 6880 ? S 17:32 0:00 /usr/local/apache2/bin/httpd -k start root 31107 0.0 0.1 11088 4312 ? Ss 17:32 0:00 sendmail: ./l6N9WBlX031105 mx.126.split.netease.com.: client DATA 354 root 31111 0.0 0.0 3148 660 ? Ss 17:32 0:00 procmail -f MAILER-DAEMON@homekoo.com -t -Y -a -d root root 31121 0.0 0.1 10688 4208 ? Ss 17:32 0:00 sendmail: ./l6N9WDJX031119 mta.21cn.com.: client DATA status root 31141 0.0 0.0 3428 752 pts/2 R+ 17:32 0:00 ps -aux daemon 31142 0.0 0.0 7308 2888 ? S 17:32 0:00 sendmail: ./l6N9WEsx031142 [127.0.0.1]: client DATA status root 31144 0.0 0.1 10688 4180 ? Ss 17:32 0:00 sendmail: ./l6N9WEF4031139 tommx.163.net.: client MAIL daemon 31145 0.0 0.0 8204 2884 ? S 17:32 0:00 sendmail: ./l6N9WFMb031145 [127.0.0.1]: client DATA status root 31146 0.0 0.0 10644 4032 ? D 17:32 0:00 sendmail: l6N9WFUf031146 homekoo.com [127.0.0.1]: DATA root 31147 0.0 0.0 10644 4028 ? S 17:32 0:00 sendmail: l6N9WF7d031147 homekoo.com [127.0.0.1]: DATA 发现有好多sendmail请求,以前没有这么多,造成高负载会不会是有人攻击sendmail端口呢?因为负载一下就升的很高,请有经验的高手指点下碰到这样的问题应该怎么处理,很着急,谢谢 |