From owner-freebsd-stable Tue Feb 29 8:34:48 2000 Delivered-To: freebsd-stable@freebsd.org Received: from isds.duke.edu (davinci.isds.duke.edu [152.3.22.1]) by hub.freebsd.org (Postfix) with ESMTP id 5C60C37B5F6 for ; Tue, 29 Feb 2000 08:34:44 -0800 (PST) (envelope-from sto@stat.Duke.EDU) Received: from cayenne.isds.duke.edu (cayenne.isds.duke.edu [152.3.22.11]) by isds.duke.edu (8.8.8/8.8.8) with ESMTP id LAA17267 for ; Tue, 29 Feb 2000 11:34:43 -0500 (EST) Received: (from sto@localhost) by cayenne.isds.duke.edu (8.8.8/8.8.8) id LAA24206 for stable@FreeBSD.ORG; Tue, 29 Feb 2000 11:34:43 -0500 (EST) Date: Tue, 29 Feb 2000 11:34:43 -0500 From: "Sean O'Connell" To: FreeBSD-STABLE Subject: Re: Error: "Maximum file descriptors exceeded"... Message-ID: <20000229113443.F21891@stat.Duke.EDU> Reply-To: "Sean O'Connell" Mail-Followup-To: FreeBSD-STABLE References: <38BBF0D3.6ED0DFD3@thehousleys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38BBF0D3.6ED0DFD3@thehousleys.net>; from jim@thehousleys.net on Tue, Feb 29, 2000 at 11:16:19AM -0500 X-Organization: Institute of Statistics and Decision Sciences Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG James Housley stated: > Brad Knowles wrote: > > > > > > Unfortunately, none of this seems to be related to my problem of > > having the error message described, or how I can eliminate this error > > message. > > > housley@cat:~/work/monitors {34} sysctl -a | grep -i file > kern.maxfiles: 2088 > kern.bootfile: /kernel > kern.maxfilesperproc: 2088 > kern.corefile: %N.core > p1003_1b.mapped_files: 0 > > It looks like updating kern.maxfiles and/or kern.maxfilesperproc should > do the trick. What are the limits set in /etc/login.conf?? I thought this too, but if I run sysctl -w kern.maxfiles=4096 sysctl -w kern.maxfilesperproc=4096 Now: % sysctl kern.maxfiles kern.maxfiles: 4096 % sysctl kern.maxfilesperproc kern.maxfilesperproc: 4096 However, limit -h (tcsh builtin) and limits -H still report descriptors 2088 openfiles 2088 respectively. Even the manpage for sysctl implies this Name Type Changeable kern.maxfiles integer yes kern.maxfilesperproc integer yes Am I missing something obvious? Are these values really updated? S ----------------------------------------------------------------------- Sean O'Connell Email: sean@stat.Duke.EDU Institute of Statistics and Decision Sciences Phone: (919) 684-5419 Duke University Fax: (919) 684-8594 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message