From owner-freebsd-questions Sun Aug 3 12:50:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA12398 for questions-outgoing; Sun, 3 Aug 1997 12:50:15 -0700 (PDT) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id MAA12391; Sun, 3 Aug 1997 12:50:12 -0700 (PDT) Received: from tom by misery.sdf.com with smtp (Exim 1.62 #1) id 0wv6f5-0003jM-00; Sun, 3 Aug 1997 12:49:55 -0700 Date: Sun, 3 Aug 1997 12:49:54 -0700 (PDT) From: Tom Samplonius To: Cliff Addy cc: "Andrew N. Edmond" , questions@freebsd.org, hackers@freebsd.org Subject: Re: Too many open files in System! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 3 Aug 1997, Cliff Addy wrote: > On Sun, 3 Aug 1997, Andrew N. Edmond wrote: > > > error on accept: Too many open files in system > > > > I set CHILD_MAX and OPEN_MAX to 4098 in the kernel, and I can't find a way > > to get accept to open any more sockets. Any ideas? > > This seems to be a FAQ (Frequently Asked Question). Unfortunately, it > seems to seems to also be a NAQ (Never Answered Question). I myself have > asked it several times and the answers, involving CHILD_MAX and OPEN_MAX > and limits, never work. Apparently, FreeBSD is too primitive to handle > more than a few files at once. Perhaps you should read the docs? Anyhow "pstat -T" will tell you the system wide number of open files, and the maximum possible number of open files. pstat is pretty standard command in Unix (it does the same thing under SunOS 4.1 for example). You need to increase maxusers in your kernel to increase the system wide maximum number of files. This too is pretty standard on many differnet Unix systems. MAX_OPEN sets the maximum number of files per user-id. Tom