Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2000 14:59:15 -0400
From:      Chad Ziccardi <zicc@bellatlantic.net>
To:        "Lester A. Mesa" <netadmin@primex.prontel.net>
Cc:        isp@freebsd.org, questions@freebsd.org
Subject:   Re: How many Virtual Hosts?
Message-ID:  <38F4C783.225F5FE1@bellatlantic.net>
References:  <006801bfa4f4$e6201160$38040a0a@prontel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Lester A. Mesa" wrote:
> 
> According to http://www.apache.org/docs-1.2/misc/FAQ.html#fdlim has anyone
> found a way to run more than 128 to 250 virtual hosts on an Apache Web
> Server 1.3.12 running on FreeBSD 3.4-STABLE?
> Our system is a Rackmount Dual Pentium ]|[ 500, 512MB Ram, u3w SCSI HD.  I
> know that it all depends on how many hits per day the server will be
> getting, though we do not have an approximate amount but I still need to
> prepare the servers to take as many hits as possible and to handle as many
> virtual host as it can.  Any information will be very valuable.

I haven't check too much, but the next section in that url is this:
-------begin snip-----------
"21.Can I increase FD_SETSIZE on FreeBSD? 

     On versions of FreeBSD before 3.0, the FD_SETSIZE define defaults to
256. This means that you will have trouble usefully using more than 256
file descriptors in Apache. This can be increased, but doing so can be
tricky. If you are using a version prior to 2.2, you need to recompile your
kernel with a larger FD_SETSIZE. This can be done by adding a line such as: 

          options FD_SETSIZE nnn 

     To your kernel config file. Starting at version 2.2, this is no longer
necessary. 

     If you are using a version of 2.1-stable from after 1997/03/10 or 2.2
or 3.0-current from before 1997/06/28, there is a limit in the resolver
library that prevents it from using more file descriptors than what
FD_SETSIZE is set to when libc is compiled. To increase this, you have to
recompile libc with a higher FD_SETSIZE. 

     In FreeBSD 3.0, the default FD_SETSIZE has been increased to 1024 and
the above limitation in the resolver library has been removed. 

     After you deal with the appropriate changes above, you can increase
the setting of FD_SETSIZE at Apache compilation time by adding
"-DFD_SETSIZE=nnn" to the EXTRA_CFLAGS line in your Configuration file. "
--------end snip------------


--Chad Ziccardi


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38F4C783.225F5FE1>