From owner-freebsd-questions Mon Feb 3 5:59:22 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 B738337B401 for ; Mon, 3 Feb 2003 05:59:20 -0800 (PST) Received: from sage-american.com (adsl-65-71-135-139.dsl.crchtx.swbell.net [65.71.135.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95C0E43E4A for ; Mon, 3 Feb 2003 05:59:19 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea.sage-american [192.168.0.3]) by sage-american.com (8.12.6/8.12.6) with SMTP id h13Dx3J7067721; Mon, 3 Feb 2003 07:59:03 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20030203075902.01dd9828@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 03 Feb 2003 07:59:02 -0600 To: Ruben de Groot , aSe From: "Jack L. Stone" Subject: Re: Too many files open / file: table is full Cc: FreeBSD-Questions In-Reply-To: <20030203135208.GA78364@ei.bzerk.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-1.0 required=4.5 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05 version=2.43-jlsrules1 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 At 02:52 PM 2.3.2003 +0100, Ruben de Groot wrote: > >Hi Gordon, > >On Sun, Feb 02, 2003 at 06:16:26PM -0500, aSe typed: >> Recently, one of the machines I help to admin ran into problems and had to be rebooted. >> The machine uptime was about 40days and one of the techs told me it became unresponsive and any command he typed into term it responded "Too many files open". Checking the logs now i see the below at the very same time. It is 4.7-Release, I will be more then happy to post more information if requested. Right now I'm just trying to figure out what happen and how to fix. I know for a fact the 13gb drive had over 7gb free, so is there a setting where I can adjust the number of open files? > >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, >among other things, determines the maximum amount of open files). The >default in 4.7-RELEASE is 0, which means: optimize according to amount >of memory installed. The default is usually O.K. If not, one option is >to simply install more memory. > >cheers, >Ruben > In the meantime, you can check your settings on the maxfiles by this command: # sysctl kern.maxfiles ...then, you can change it with this: #sysctl -w kern.maxfiles=4160 (...or whatever works best) Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message