Please help

PRB

Verified User
Joined
Oct 18, 2008
Messages
155
Please help me, I just don't know what else to do. We have tried literally everything but we still get:
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.
socket.c:2184: REQUIRE(maxfd <= (int)1024) failed.

and so on...

I have done this:

changed maxclients to 300

edited all virtual_host2.conf files and changed:
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

to

CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
#CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
#ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

I have done this:

Edit /usr/include/bits/typesizes.h and set
#define __FD_SETSIZE 32768

then recompile apache/php

I have done this:

ile-max = 32768

and run:

/sbin/sysctl -w fs.file-max=32768
/sbin/sysctl -w kern.maxfiles=32768
/sbin/sysctl -w kern.maxfilesperproc=32768
then recompile apache/php

I have done this:

perl -pi -e 's/ssl=ON/ssl=OFF/' /usr/local/directadmin/data/users/*/domains/*.conf

The server is a centos quadcore server with 2gb ram, with 785 domains and 263 subdomains, is it really that difficult to run this amount of domains/subdomains on a server without getting all those errors? :(
 
Ok, I just went as far as changing:
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
#CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
#ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

to

#CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
#CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
#ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

And I STILL get these errors?!?!?!?!
 
Sorry, I edited the wrong file. I now changed it to
#CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
#CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
#ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

No more errors, but: bandwidth isnt counted, stats arent updating. The second isnt a big problem, the first one is. This cant be the solution :(
 
I've seen this problem caused by precompiled packets from a distribution that were compiled with a small __FD_SETSIZE to comply with older software... with any chance your system is not upgraded.
Upgrade it to the latest release then recompile all compiled software with CustomBuild.
 
Back
Top