-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 3 May 2007, Joshua Slive wrote:
On 5/2/07, Eduardo Meyer <dudu.meyer@xxxxxxxxx> wrote:On Apache2, how do I set FD_SETSIZE? I have found some virtual hosts limitations and FAQ and documentation tells I should define FD_SETSIZE in EXTRA_CFLAGS, but where EXTRA_CFLAGS go?I don't remember for sure, but I don't think that FD_SETSIZE has any effect in 2.x. You just need to make sure that your OS has allocated the necessary file descriptors to apache before you start. Joshua.
I've founds you nearly always have to increase the value, this is what we use and should be sufficient for machines that do about 2K hosts
each, in apachectl: ULIMIT_MAX_FILES="ulimit -H -n 16384" check your logs for errors. you can also (playing it safe) cd /usr/include grep -R FD_SETSIZE * in bits directory edit typesizes.h and in linux directory posix_types.h You'll possibly see a few returns all saying 1024, change them to 16384.if you only have 1K host,s setting these all to 8192 will work just as good.
- --
Cheers Res Vote for your favourite MTA at http://polls.ausics.net/v3.php -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGOmwpsWhAmSIQh7MRAvJOAJ9pWJ/2T7aBShMysrP2i2tUsKI9HwCgoOUl dJ0XMB6KhqccWEjHVB1YoPg= =XR8J -----END PGP SIGNATURE----- --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx