• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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