求助:我的服务器出现大量僵尸进程

由 剑心 在 09-04-2004 13:32 发表:

求助:我的服务器出现大量僵尸进程

我的服务器出现了大量defunct进程

httpd和mysqld出现了很多僵尸进程

网站首页速度还可以,但论坛剧慢

我重启Apache和MySQL后

速度快了许多

但过几个小时就又慢下来了

更奇怪的是服务器负载不大

小于40%

这到底是什麽问题?疑惑ing。。。。。

请高手指教!我该怎麽办?


知我者谓我心忧

不知我者谓我何求


由 剑心 在 09-04-2004 14:35 发表:


还有好像有大量链接到软件和音乐下载


知我者谓我心忧

不知我者谓我何求


由 剑心 在 09-05-2004 07:31 发表:

求助:我的服务器出现大量僵尸进程

我的服务器出现了大量defunct进程

httpd和mysqld出现了很多僵尸进程

网站首页速度还可以,但论坛剧慢

我重启Apache和MySQL后

速度快了许多

但过几个小时就又慢下来了

更奇怪的是服务器负载不大

小于40%

这到底是什麽问题?疑惑ing。。。。。

请高手指教!我该怎麽办?


知我者谓我心忧

不知我者谓我何求


由 剑心 在 09-05-2004 07:51 发表:


我的系统是:FC1

Apache;2.0.50

MySQL 4.0.20

PHP 4.3.6


知我者谓我心忧

不知我者谓我何求


由 smile787 在 09-06-2004 13:42 发表:


贴一下log,你做什么用?


由 剑心 在 09-06-2004 20:22 发表:


只作web

有软件,图书,音乐下载,还有论坛


知我者谓我心忧

不知我者谓我何求


由 剑心 在 09-06-2004 20:43 发表:


这是我的截取的部分error_log:[Mon Sep 06 20:40:53 2004] [error] [client 172.16.198.122] File does not exist: /home/web/music/images/img_shade.gif, referer: http://youth.dlmu.edu.cn/music/

[Mon Sep 06 20:40:54 2004] [error] [client 172.16.198.122] File does not exist: /home/web/music/images/img_shade.gif, referer: http://youth.dlmu.edu.cn/music/

[Mon Sep 06 20:40:54 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif

[Mon Sep 06 20:40:57 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif

[Mon Sep 06 20:40:57 2004] [error] [client 172.16.198.122] File does not exist: /home/web/music/images/img_shade.gif, referer: http://youth.dlmu.edu.cn/music/

[Mon Sep 06 20:40:57 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif

[Mon Sep 06 20:40:58 2004] [error] [client 172.16.198.122] File does not exist: /home/web/music/images/img_shade.gif, referer: http://youth.dlmu.edu.cn/music/

[Mon Sep 06 20:40:59 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif

[Mon Sep 06 20:40:59 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif

[Mon Sep 06 20:40:59 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif

[Mon Sep 06 20:41:00 2004] [error] [client 172.16.198.122] File does not exist: /home/web/music/images/img_shade.gif, referer: http://youth.dlmu.edu.cn/music/

[Mon Sep 06 20:41:01 2004] [error] [client 172.16.198.122] File does not exist: /home/web/music/images/img_shade.gif, referer: http://youth.dlmu.edu.cn/music/

[Mon Sep 06 20:41:02 2004] [error] [client 172.16.198.122] File does not exist: /home/web/music/images/img_shade.gif, referer: http://youth.dlmu.edu.cn/music/

[Mon Sep 06 20:41:02 2004] [error] [client 202.118.80.9] File does not exist: /home/web/book/images/backg_p_01.gif, referer: http://youth.dlmu.edu.cn/book/list_view.php?bkid=927

[Mon Sep 06 20:41:03 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif

[Mon Sep 06 20:41:03 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif

[Mon Sep 06 20:41:03 2004] [error] [client 172.21.129.144] File does not exist: /home/web/music/images/img_shade.gif


知我者谓我心忧

不知我者谓我何求


由 剑心 在 09-06-2004 20:44 发表:


好像有人在疯狂的下载我的网站的资源

结果造成进程都变成defunct了


知我者谓我心忧

不知我者谓我何求


由 smile787 在 09-06-2004 20:50 发表:


应该上资源消耗了,还有就是你的防火墙设置好么?

你的内存有多大?有 多大的带宽和连接数目?


由 剑心 在 09-06-2004 21:19 发表:


双至强2。4G

2G内存

对外百兆

对内千兆


知我者谓我心忧

不知我者谓我何求


由 剑心 在 09-06-2004 21:23 发表:


最大链接数设了2000

我想是不是得设置一下music的最大访问数

我看多数是在那儿耗掉的资源

现在我关了music下载

现在论坛速度快多了


知我者谓我心忧

不知我者谓我何求


由 smile787 在 09-06-2004 22:12 发表:


还有就是别轻易该mysql的最大连接数值,超多了会不稳定。


由 剑心 在 09-06-2004 22:16 发表:


好的

谢谢

但是默认值会经常出现超过最大链接数

你看看怎麽办?


知我者谓我心忧

不知我者谓我何求


由 剑心 在 09-06-2004 23:12 发表:


再请教一个问题:

我在Apache2。0。50安装mod_limitipconn-0.22模块时出现了这个问题,这是错在那儿?

[root@youth mod_limitipconn-0.22]# /home/apache/bin/apxs -c -i -a mod_limitipconn.c

/home/apache/build/libtool --silent --mode=compile gcc -prefer-pic -O6 -mcpu=pentiumpro -fomit-frame-pointer -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -I/home/apache/include -I/home/apache/include -I/home/apache/include -c -o mod_limitipconn.lo mod_limitipconn.c && touch mod_limitipconn.slo

/home/apache/build/libtool --silent --mode=link gcc -o mod_limitipconn.la -rpath /home/apache/modules -module -avoid-version mod_limitipconn.lo

/home/apache/build/instdso.sh SH_LIBTOOL='/home/apache/build/libtool' mod_limitipconn.la /home/apache/modules

/home/apache/build/libtool --mode=install cp mod_limitipconn.la /home/apache/modules/

cp .libs/mod_limitipconn.lai /home/apache/modules/mod_limitipconn.la

cp .libs/mod_limitipconn.a /home/apache/modules/mod_limitipconn.a

ranlib /home/apache/modules/mod_limitipconn.a

chmod 644 /home/apache/modules/mod_limitipconn.a

PATH="$PATH:/sbin" ldconfig -n /home/apache/modules

----------------------------------------------------------------------

Libraries have been installed in:

/home/apache/modules

If you ever happen to want to link against installed libraries

in a given directory, LIBDIR, you must either use libtool, and

specify the full pathname of the library, or use the `-LLIBDIR'

flag during linking and do at least one of the following:

- add LIBDIR to the `LD_LIBRARY_PATH' environment variable

during execution

- add LIBDIR to the `LD_RUN_PATH' environment variable

during linking

- use the `-Wl,--rpath -Wl,LIBDIR' linker flag

- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

----------------------------------------------------------------------

Warning! dlname not found in /home/apache/modules/mod_limitipconn.la.

Assuming installing a .so rather than a libtool archive.

chmod 755 /home/apache/modules/mod_limitipconn.so

chmod: failed to get attributes of `/home/apache/modules/mod_limitipconn.so': No such file or directory

apxs:Error: Command failed with rc=65536

.

[root@youth mod_limitipconn-0.22]#


知我者谓我心忧

不知我者谓我何求


由 Snoopy 在 09-10-2004 09:42 发表:


> quote: > > * * * > > 最初由 剑心 发表
>
> 这是我的截取的部分error_log:[Mon Sep 06 20:40:53 2004] [error] [client 172.16.198.122] File does not exist: /home/web/music/images/img_shade.gif, referer: http://youth.dlmu.ed

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus