From owner-freebsd-hackers Tue Oct 1 15:50:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EAEC37B401 for ; Tue, 1 Oct 2002 15:50:28 -0700 (PDT) Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6EB343E6E for ; Tue, 1 Oct 2002 15:50:27 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0370.cvx21-bradley.dialup.earthlink.net ([209.179.193.115] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17wVqT-0004IQ-00; Tue, 01 Oct 2002 15:50:26 -0700 Message-ID: <3D9A2663.30B4E49F@mindspring.com> Date: Tue, 01 Oct 2002 15:49:07 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Justin Lundy Cc: freebsd-hackers@FreeBSD.ORG, brian@ukip.com Subject: Re: Problem: Too Many open files References: <20021001224131.GA85747@subterrain.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Justin Lundy wrote: > You are running out of file descriptors. Tune your kern.maxfiles and > kern.maxfilesperproc sysctl values to allow the system to open more. > I had a similar problem after creating 3,400 virtual hosts in Apache > on one of our production servers. [ ... ] > "Each open file, socket, or fifo uses one file descriptor. A large-scale > production server may easily require many thousands of file descriptors, > depending on the kind and number of services running concurrently. This has to be done at boot time, or it will not allocate a larger number of inpcb's and tcpcb's, which are allocated at boot time by pre-reserving KVA space for zalloci(). The number of sockets will limit the number of total connections you can make, even if you jack the "maxfiles" up, if you jack the number up after boot. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message