From owner-freebsd-hackers Fri Jun 20 09:49:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA12068 for hackers-outgoing; Fri, 20 Jun 1997 09:49:53 -0700 (PDT) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA12063 for ; Fri, 20 Jun 1997 09:49:51 -0700 (PDT) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.5/8.8.5) with UUCP id KAA10486 for hackers@FreeBSD.ORG; Fri, 20 Jun 1997 10:49:45 -0600 (MDT) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id KAA18322 for ; Fri, 20 Jun 1997 10:48:48 -0600 (MDT) Date: Fri, 20 Jun 1997 10:48:48 -0600 (MDT) From: Marc Slemko To: hackers@FreeBSD.ORG Subject: Re: Apache 1.1.3 and 1.2.0 problems under FBSD2.2.2 In-Reply-To: <19970620104829.34842@pavilion.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 20 Jun 1997, Josef Karthauser wrote: > The continuing saga of a sick web machine :( > > A brief history. We're running a P200pro FBSD2.2.2 machine here as > a virtual web server. It currently has 130ish web servers running, > each with their own IP address. > > Where did the problem start? I'm not sure, but it was some combination > of reaching 124ish web servers, and hitting a certain number of active > http connections. Grr. I thought this had been fixed in FreeBSD, but I guess not. The problem here is that the FILE structure uses only a short for _file, which means it can only handle 255 fds. When Apache (or, more likely, one of the library routines it calls) tries to access a FILE structure the low fds are all taken already so it chokes. This should be fixed in FreeBSD. It is in BSDI 2.1. Haven't looked to see how many side-effects there are in increasing the size...