From owner-freebsd-isp Wed Apr 12 12: 5:17 2000 Delivered-To: freebsd-isp@freebsd.org Received: from smtp-out1.bellatlantic.net (smtp-out1.bellatlantic.net [199.45.39.156]) by hub.freebsd.org (Postfix) with ESMTP id 9046037BFAD; Wed, 12 Apr 2000 12:00:49 -0700 (PDT) (envelope-from zicc@bellatlantic.net) Received: from bellatlantic.net (adsl-151-201-20-104.bellatlantic.net [151.201.20.104]) by smtp-out1.bellatlantic.net (8.9.1/8.9.1) with ESMTP id OAA11274; Wed, 12 Apr 2000 14:58:16 -0400 (EDT) Message-ID: <38F4C783.225F5FE1@bellatlantic.net> Date: Wed, 12 Apr 2000 14:59:15 -0400 From: Chad Ziccardi X-Mailer: Mozilla 4.72 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "Lester A. Mesa" Cc: isp@freebsd.org, questions@freebsd.org Subject: Re: How many Virtual Hosts? References: <006801bfa4f4$e6201160$38040a0a@prontel.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "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-isp" in the body of the message