• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

apache "crash" error: socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.

in not very regular bases apache crashed.
The proccess is not killed or stopped, its running but none of the webpages are displayed (arround 400 vhosts).

The error_log file shows this :

socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2102: REQUIRE(maxfd <= (int)1024) failed.

Any idea ?
0
MaRiOsGR
Asked:
MaRiOsGR
  • 4
1 Solution
 
periwinkleCommented:
That sounds quite like this problem:

http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Installation/Q_21757401.html

it sounds like the value for FD is too large!
0
 
periwinkleCommented:
It may be that too many file handles (file descriptors) are being opened - i.e. > 1024.

Does each one of these virtual hosts have a separate log file?  Each log file requires a file descriptor...
0
 
periwinkleCommented:
Here's some more information on the file descriptor limits:

http://httpd.apache.org/docs/1.3/misc/descriptors.html
0
 
MaRiOsGRAuthor Commented:
yes each vhost has separate log files.
We have recomplied apache php etc... but we stil get that error
0
 
periwinkleCommented:
You may be hitting against a server limitation.  You might consider writing to a central log file, and running a process to split the log files.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now