socket file descriptor (1081) is larger than FD_SETSIZE (1024), you probably need to rebuild Apache with a larger FD_SETSIZE

Alex Keda admin at lissyara.su
Thu Mar 19 15:44:31 PDT 2009


I have it in apache logs:

socket file descriptor (1081) is larger than FD_SETSIZE (1024), you 
probably need to rebuild Apache with a larger FD_SETSIZE

in /etc/make.conf I have
FD_SETSIZE=32768
WITH_SSL=YES
WITH_SUEXEC=YES
PERF_TUNING=YES
WITH_MODACCEL=YES
HARD_SERVER_LIMIT=4096

srv# grep "32768U" /usr/include/sys/select.h
#define FD_SETSIZE      32768U
srv#

srv# grep "32768U" /usr/src/sys/sys/select.h
#define FD_SETSIZE      32768U
srv#

After, I rebuild kernel, world, apache.
But, I have it error again...
srv# pkg_info | grep apac
apache-2.2.11_3     Version 2.2.x of Apache web server with prefork MPM.
srv# uname -a
FreeBSD srv.host-food.ru 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #0: Tue 
Mar 17 19:16:39 MSK 2009 
toor at srv.host-food.ru:/usr/obj/usr/src/sys/HOST-FOOD  i386
srv#


More information about the freebsd-apache mailing list