La solución es recompilar el httpd y colocar un número mayor de usuarios :).
Es necesario descargar sys.tar.gz y src.tar.gz
# cd /usr/src
# tar xzf ../sys.tar.gz
# tar xzf ../src.tar.gz
# tar xzf ../src.tar.gz
Editar el archivo /usr/src/usr.sbin/httpd/src/include/httpd.h, buscar las siguientes lienas y cambiar el limite de 256 a un nuevo número, en este ejemplo 512.
#ifndef HARD_SERVER_LIMIT
#define HARD_SERVER_LIMIT 512
#endif
#define HARD_SERVER_LIMIT 512
#endif
Para compilar el httpd se realizar lo siguiente:
# cd /usr/src
# make obj
# cd usr.sbin/httpd
# make -f Makefile.bsd-wrapper obj
# make -f Makefile.bsd-wrapper cleandir
# make -f Makefile.bsd-wrapper depend
# make -f Makefile.bsd-wrapper
# make -f Makefile.bsd-wrapper install
# make obj
# cd usr.sbin/httpd
# make -f Makefile.bsd-wrapper obj
# make -f Makefile.bsd-wrapper cleandir
# make -f Makefile.bsd-wrapper depend
# make -f Makefile.bsd-wrapper
# make -f Makefile.bsd-wrapper install
Y en el archivo httpd.conf aumentar el número de clientes
MaxClients 512.
0 comentarios:
Publicar un comentario