- 论坛徽章:
- 0
|
本帖最后由 hsboy 于 2010-06-05 00:59 编辑
求助帖!!!
操作系统freebsd8 p2,安装了apache/php/mysql/postfix等。apache以www身份运行。网站文件所属用户也是www。root不允许远程登录,而且远程登录只认public key(UsePAM no)。操作系统是从7升级上来的。
今天我发现系统CPU占用很高,看了一下进程,有几个有问题:
TOP看到的特别耗资源的:
81392 www 1 44 0 6232K 3764K select 1 446:23 0.00% perl5.8.9
81449 www 1 44 0 6232K 3764K select 1 445:29 0.00% perl5.8.9
40384 www 1 44 0 6236K 3760K select 0 445:09 0.00% perl5.8.9
78197 www 1 44 0 6224K 3756K select 1 444:58 0.00% perl5.8.9
78065 www 1 44 0 6220K 3752K select 1 443:25 0.00% perl5.8.9
40546 www 1 44 0 6236K 3768K select 1 433:16 0.00% perl5.8.9
ps auxwww看到的:
www 78065 0.0 0.2 6220 3752 ?? S 27Apr10 443:24.53 /usr/local/apache/bin/httpd -DSSL (perl5.8.9)
www 78197 0.0 0.2 6224 3756 ?? S 27Apr10 444:57.53 /usr/local/apache/bin/httpd -DSSL (perl5.8.9)
www 40384 0.0 0.2 6236 3760 ?? S 21Apr10 445:08.89 [bash] (perl5.8.9)
www 40546 0.0 0.2 6236 3768 ?? S 21Apr10 433:15.82 /usr/sbin/cron (perl5.8.9)
www 81392 0.0 0.2 6232 3764 ?? S 23Apr10 446:22.72 /usr/sbin/cron (perl5.8.9)
www 81449 0.0 0.2 6232 3764 ?? S 23Apr10 445:28.99 [bash] (perl5.8.9)
实际上我的apache是安装在/usr/local/sbin/httpd,而不是以上所显示的/usr/local/apache。
使用lsof查看,得到如下信息:
s1# lsof -i | grep 40384
perl5.8.9 40384 www 3u IPv4 0xca030278 0t0 TCP [SERVER]:32481->xxxcnn6945.hospedagemdesites.ws:5555 (ESTABLISHED)
perl5.8.9 40384 www 46u IPv4 0xca8b3278 0t0 TCP localhost:63906->localhost:3306 (CLOSED)
s1# lsof -i | grep 40546
perl5.8.9 40546 www 3u IPv4 0xc5d30278 0t0 TCP [SERVER]::48491->xxxcnn6945.hospedagemdesites.ws:5555 (ESTABLISHED)
s1# lsof -i | grep 78065
perl5.8.9 78065 www 3u IPv4 0xc5e7f768 0t0 TCP [SERVER]::32485->xxxcnn6945.hospedagemdesites.ws:5555 (ESTABLISHED)
s1# lsof -i | grep 78197
perl5.8.9 78197 www 3u IPv4 0xca8b59e0 0t0 TCP [SERVER]::32483->xxxcnn6945.hospedagemdesites.ws:5555 (ESTABLISHED)
s1# lsof -i | grep 81449
perl5.8.9 81449 www 3u IPv4 0xc9f91c58 0t0 TCP [SERVER]::32484->xxxcnn6945.hospedagemdesites.ws:5555 (ESTABLISHED)
perl5.8.9 81449 www 46u IPv4 0xc6164dc0 0t0 TCP localhost:18911->localhost:3306
s1# lsof -i | grep 81392
perl5.8.9 81392 www 3u IPv4 0xca3a19e0 0t0 TCP [SERVER]::32486->xxxcnn6945.hospedagemdesites.ws:5555 (ESTABLISHED)
perl5.8.9 81392 www 48u IPv4 0xca9c2528 0t0 TCP localhost:33629->localhost:3306
telnet xxxcnn6945.hospedagemdesites.ws:5555 得到的服务器响应:
NOTICE AUTH :*** Hostname lookup disabled, using your numeric IP
NOTICE AUTH :*** Checking Ident
我查了一下这个响应信息应该是IRC服务的。IRC服务我没有用过。
我服务器上开启了ipfw,只开放了几个服务端口(apache/smtp/pop3/dns)。
请大伙帮我分析分析这是怎么回事。这几个进程我还留着。我该怎么进一步调查? |
|