Date: Sun, 3 Aug 1997 12:49:54 -0700 (PDT) From: Tom Samplonius <tom@sdf.com> To: Cliff Addy <fbsdlist@federation.addy.com> Cc: "Andrew N. Edmond" <edmond@shaman.lycaeum.org>, questions@freebsd.org, hackers@freebsd.org Subject: Re: Too many open files in System! Message-ID: <Pine.BSF.3.95q.970803124710.14331A-100000@misery.sdf.com> In-Reply-To: <Pine.BSF.3.95q.970803114414.5334B-100000@federation.addy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970803124710.14331A-100000>