From owner-freebsd-questions Mon Feb 3 21:15:37 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89B1137B401 for ; Mon, 3 Feb 2003 21:15:35 -0800 (PST) Received: from sysfail.com (24-56-213-122.mdmmi.voyager.net [24.56.213.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE22043FA3 for ; Mon, 3 Feb 2003 21:15:34 -0800 (PST) (envelope-from aSe@SysFail.com) Received: from bob ([127.0.0.1]) by sysfail.com ([24.56.213.122]) with SMTP (MDaemon.PRO.v6.5.1.R) for ; Tue, 04 Feb 2003 00:16:26 -0500 Reply-To: From: "aSe" To: "FreeBSD-Questions" Cc: "Ruben de Groot" Subject: RE: Too many files open / file: table is full Date: Tue, 4 Feb 2003 00:16:23 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20030203135208.GA78364@ei.bzerk.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-MDRemoteIP: 127.0.0.1 X-Return-Path: aSe@SysFail.com X-MDaemon-Deliver-To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >This is not a matter of diskspace. The kernel holds a fixed length = table >in memory with all open files. If this table gets full it usually means = >one of two things: > >1) You have a runaway application, opening way too many files. Identify = >the application and fix or disable it. > >2) You're running a kernel with a too low value for maxusers (which,=20 >among other things, determines the maximum amount of open files). The=20 >default in 4.7-RELEASE is 0, which means: optimize according to amount=20 >of memory installed. The default is usually O.K. If not, one option is >to simply install more memory. The machine itself runs several logging applications and things of that nature. I didn't think It was an issue with HD. Nor do I believe its = ram, It has 512mb installed, and 256mb of swap. As it stands right now it has 270mb free and hasn't touched the swap. Right now maxusers is set to 6,=20 I didn't realize it would play a role in this instance. Jack Stone suggested looking up the number of max open files by doing=20 "sysctl kern.maxfiles" It returns only "232" which to me seems like a=20 very small number. He also suggested to change it using=20 "sysctl -w kern.maxfiles=3D4160." My question to you is, does maxusers play more of a role then just the max number of open files. In the long run would it be better to just set maxusers to 0 or just change the kern.maxfiles? Thank you! Gordon Keesler [aSe@SysFail.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message