每天apache固定时间,连接会无限增大,各位帮忙看看是不是BUG

每天apache固定时间,连接会无限增大,各位帮忙看看是不是BUG

apache+mysql+php
(SUN Sorlaris 8  小机)
版本分别是:

httpd-2.2.0          php-4.4.5  mysql 4

apache 用的是worker模式



配置如下
<IfModule worker.c>
ServerLimit 25
ThreadLimit 200
StartServers 4
MaxClients 800
#maxclients=ThreadsPerChild*16
MinSpareThreads 50
MaxSpareThreads 200
ThreadsPerChild 50
MaxRequestsPerChild 0
</IfModule>

APR版本是
apr-1-config --version
1.2.2

然后每一次出错都是在下午三点左右,连接会从正常不超过十个的一下扩充到30个以上,把所有的资源都耗尽,然后死机,服务器没响应
APACHE的日志里只有这些
[Thu May 10 14:56:00 2007] [error] (24)Too many open files: apr_socket_accept: (client socket)
[Thu May 10 14:56:18 2007] [error] (24)Too many open files: apr_socket_accept: (client socket)
[Thu May 10 14:56:18 2007] [error] (24)Too many open files: apr_socket_accept: (client socket)
[Thu May 10 14:56:26 2007] [error] (24)Too many open files: apr_socket_accept: (client socket)
[Thu May 10 14:56:28 2007] [error] (24)Too many open files: apr_socket_accept: (client socket)
[Thu May 10 14:56:32 2007] [error] (24)Too many open files: apr_socket_accept: (client socket)
[Thu May 10 14:58:06 2007] [error] (24)Too many open files: apr_socket_accept: (client socket)
[Thu May 10 15:02:26 2007] [error] (24)Too many open files: apr_socket_accept: (client socke)

原来是apache 1.3+php 4+mysql 4
升级后就出现上述问题,

排除被攻击的可能

请各位高手帮忙分析分析,万分感谢
你应该蹲点守候看这个时候服务器在干什么、
如何看?

我用top一直看着

连接会突然增加,不断的大

我只能马上将apache重启


QUOTE:
原帖由 yuantong 于 2007-5-10 18:58 发表
如何看?

我用top一直看着

连接会突然增加,不断的大

我只能马上将apache重启

这个时候的日志呢?
位于apache/logs/error_log

只有我一楼帖出的报错,其他一概没有
晕,access log呢?
不好意思,现在将ACCESS内容帖出来,我发现,在出错的时候,会出现下列大量信息,正常时是没有这些信息的,麻烦老大帮忙看看

xxx.20.12.177 - - [10/May/2007:14:51:12 +0800] "GET /Modules/thumb1.gif HTTP/1.1" 404 216
xxx.128.xxx.155 - - [10/May/2007:14:51:47 +0800] "GET /images/1024_c_index_13.jpg HTTP/1.1" 404 224
xxx.142.131.105 - - [10/May/2007:14:51:47 +0800] "GET /images/bg_02.gif HTTP/1.1" 304 -
xxx.142.131.105 - - [10/May/2007:14:51:47 +0800] "GET /Modules/elevator2.gif HTTP/1.1" 404 xxx
xxx.128.102.244 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.0" 304 -
xxx.142.131.103 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 200 101299
xxx.13.32.9 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/05/09/1178673154.jpg HTTP/1.1" 304 -
xxx.142.131.105 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/05/10/1178778993.jpg HTTP/1.1" 304 -
125.95.1xxx.xxx3 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/01/23/1169545411.jpg HTTP/1.1" 200 32588
xxx.142.131.102 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/05/09/1178673154.jpg HTTP/1.1" 304 -
xxx.142.131.102 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/05/08/1178xxx1226.jpg HTTP/1.1" 304 -
xxx.142.131.105 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/05/09/1178673415.jpg HTTP/1.1" 304 -
xxx.128.xxx.155 - - [10/May/2007:14:51:47 +0800] "GET /images/1024_c_index_13.jpg HTTP/1.1" 404 224
xxx.142.131.92 - - [10/May/2007:14:52:00 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 304 -
xxx.140.249.195 - - [10/May/2007:14:52:40 +0800] "GET /images/1024_index_6.jpg HTTP/1.1" 404 221
xxx.140.249.195 - - [10/May/2007:14:52:42 +0800] "GET /images/1024_c_index_6.jpg HTTP/1.1" 404 223
xxx.38.xxx5.206 - - [10/May/2007:14:52:48 +0800] "GET /images/baojing.gif HTTP/1.1" 304 -
xxx.38.xxx.154 - - [10/May/2007:14:52:00 +0800] "GET / HTTP/1.1" 200 107007
xxx.13.32.9 - - [10/May/2007:14:53:08 +0800] "GET /data/2007/05/08/1178xxx0574.jpg HTTP/1.1" 304 -
xxx.142.131.102 - - [10/May/2007:14:53:11 +0800] "GET /data/2007/05/10/1178778993.jpg HTTP/1.1" 304 -
xxx.13.58.237 - - [10/May/2007:14:53:09 +0800] "GET /data/2007/05/10/1178778993.jpg HTTP/1.1" 206 54201
xxx.38.239.9 - - [10/May/2007:14:53:11 +0800] "GET /data/2007/05/09/1178673415.jpg HTTP/1.1" 304 -
xxx.37.190.117 - - [10/May/2007:14:53:24 +0800] "GET /data/2007/05/09/1178673415.jpg HTTP/1.1" 304 -
xxx.13.32.9 - - [10/May/2007:14:53:24 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 304 -
xxx.13.32.9 - - [10/May/2007:14:53:24 +0800] "GET /data/2007/05/10/1178778993.jpg HTTP/1.1" 304 -
xxx.20.12.177 - - [10/May/2007:14:53:24 +0800] "GET /data/2007/05/08/1178xxx0574.jpg HTTP/1.1" 304 -
xxx.142.131.102 - - [10/May/2007:14:53:24 +0800] "GET /data/2007/05/09/1178673154.jpg HTTP/1.1" 304 -
xxx.142.131.92 - - [10/May/2007:14:53:24 +0800] "GET /data/2007/05/08/1178xxx6482.jpg HTTP/1.1" 304 -
xxx.142.131.102 - - [10/May/2007:14:53:24 +0800] "GET /data/2007/05/09/1178673415.jpg HTTP/1.1" 304 -
xxx.142.131.105 - - [10/May/2007:14:53:24 +0800] "GET /data/2007/05/09/1178673154.jpg HTTP/1.1" 304 -
xxx.145.101.241 - - [10/May/2007:14:53:48 +0800] "GET /images/567f4641-1c9c-4dxxx-b899-1795f5084ea6.gif HTTP/1.1" 404 245
xxx.142.131.105 - - [10/May/2007:14:53:10 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 304 -
xxx.38.xxx5.206 - - [10/May/2007:14:53:54 +0800] "GET /images/jj.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:53:54 +0800] "GET /data/2007/05/10/1178778993.jpg HTTP/1.1" 304 -
xxx.142.131.102 - - [10/May/2007:14:54:07 +0800] "GET /data/2007/05/08/1178xxx0574.jpg HTTP/1.1" 304 -
xxx.142.131.92 - - [10/May/2007:14:54:07 +0800] "GET /data/2007/05/09/1178673154.jpg HTTP/1.1" 304 -
xxx.13.43.31 - - [10/May/2007:14:54:06 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 304 -
xxx.142.131.105 - - [10/May/2007:14:53:55 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 304 -
xxx.37.190.117 - - [10/May/2007:14:53:11 +0800] "GET /data/2007/05/08/1178xxx6482.jpg HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:53:55 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 304 -
125.95.157.192 - - [10/May/2007:14:54:20 +0800] "GET /images/new1.gif HTTP/1.1" 404 213
125.95.157.192 - - [10/May/2007:14:54:20 +0800] "GET /images/point_03.gif HTTP/1.1" 404 217
125.95.157.192 - - [10/May/2007:14:54:20 +0800] "GET /images/point_03.gif HTTP/1.1" 404 217
125.95.157.192 - - [10/May/2007:14:54:20 +0800] "GET /images/new1.gif HTTP/1.1" 404 213
125.95.157.192 - - [10/May/2007:14:54:20 +0800] "GET /images/point_03.gif HTTP/1.1" 404 217
xxx.142.131.105 - - [10/May/2007:14:54:42 +0800] "GET /images_Model/Layer2.gif HTTP/1.1" 404 221
xxx.142.131.103 - - [10/May/2007:14:55:15 +0800] "GET /images/thumb1.gif HTTP/1.1" 200 51
xxx.142.131.103 - - [10/May/2007:14:55:15 +0800] "GET /images/thumb1.gif HTTP/1.1" 200 51
xxx.39.27.94 - - [10/May/2007:14:54:07 +0800] "GET /page.php?singleid=3 HTTP/1.1" 200 26236
xxx.39.27.94 - - [10/May/2007:14:54:05 +0800] "GET /page.php?singleid=3 HTTP/1.1" 200 26236
xxx.142.131.105 - - [10/May/2007:14:55:33 +0800] "GET /images/c_index_08.jpg HTTP/1.1" 404 xxx
xxx.142.131.105 - - [10/May/2007:14:55:34 +0800] "GET /images/c_index_07.jpg HTTP/1.1" 404 xxx
xxx.142.131.105 - - [10/May/2007:14:55:34 +0800] "GET /images/index_08.jpg HTTP/1.1" 200 1326
xxx.142.131.105 - - [10/May/2007:14:55:39 +0800] "GET /data/2007/05/09/1178673154.jpg HTTP/1.1" 304 -
xxx.142.131.105 - - [10/May/2007:14:55:39 +0800] "GET /data/2007/02/07/1170813898.jpg HTTP/1.1" 200 76649
xxx.142.131.102 - - [10/May/2007:14:55:47 +0800] "GET /Modules/elevator2.gif HTTP/1.1" 404 xxx
xx.95.8.239 - - [10/May/2007:14:52:55 +0800] "GET /page.php?singleid=5&Fold_id=1100012&Child_id=1100052 HTTP/1.1" 200 2xxx99
xxx.13.32.12 - - [10/May/2007:14:56:47 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:47 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:47 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:47 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.34.203 - - [10/May/2007:14:56:47 +0800] "GET /images/jj.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:47 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.13.32.12 - - [10/May/2007:14:56:49 +0800] "GET /images/thumb1.gif HTTP/1.1" 304 -
xxx.38.xxx5.206 - - [10/May/2007:14:56:49 +0800] "GET /images/baojing.gif HTTP/1.1" 304 -
xxx.38.xxx5.206 - - [10/May/2007:14:56:49 +0800] "GET /images/jj.gif HTTP/1.1" 304 -
xxx.128.102.244 - - [10/May/2007:14:56:49 +0800] "GET /data/2007/05/08/1178xxx0574.jpg HTTP/1.0" 304 -
xx.99.191.176 - - [10/May/2007:14:56:49 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 304 -
xxx.95.207.234 - - [10/May/2007:14:55:21 +0800] "GET /page.php?singleid=17 HTTP/1.1" 200 27xxx
xxx.13.43.31 - - [10/May/2007:15:02:39 +0800] "GET /data/2007/05/09/1178693932.jpg HTTP/1.1" 304 -
xxx.146.65.149 - - [10/May/2007:15:02:52 +0800] "GET /images/1024_c_index_10.jpg HTTP/1.1" 404 224
貌似文件描述符不够了,增大fd的值试试看。

ulimit -n 看一下当前fd,顺便man一下ulimit的语法。

QUOTE:
原帖由 yuantong 于 2007-5-10 16:07 发表
apache+mysql+php
(SUN Sorlaris 8  小机)
版本分别是:

httpd-2.2.0          php-4.4.5  mysql 4

apache 用的是worker模式



配置如下
<IfModule worker.c>
ServerLimit 25
ThreadLimit 2 ...

ulimit我已调大到2048