From owner-freebsd-hackers Sat Jul 11 12:06:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA03379 for freebsd-hackers-outgoing; Sat, 11 Jul 1998 12:06:51 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA03370 for ; Sat, 11 Jul 1998 12:06:48 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id VAA12713; Sat, 11 Jul 1998 21:04:18 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by semyam.dinoco.de (8.8.8/8.8.8) with ESMTP id RAA16359; Sat, 11 Jul 1998 17:22:13 +0200 (CEST) (envelope-from seggers@semyam.dinoco.de) Message-Id: <199807111522.RAA16359@semyam.dinoco.de> To: "Michael W. Smith" Cc: freebsd-hackers@FreeBSD.ORG, seggers@semyam.dinoco.de Subject: Re: Too many files open? In-reply-to: Your message of "Fri, 10 Jul 1998 14:08:41 PDT." Date: Sat, 11 Jul 1998 17:22:11 +0200 From: Stefan Eggers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I keep getting a too many files open error on the system and it's hosing > it all to hell. A friend of mine who's more familiar with FreeBSD told me > I need to rebuild the kernel but he wasn't sure which directive I need to No, you don't have to. You can increase the maximum number of files opened at the same time on the system at will with sysctl. Just look at the list it gives with "sysctl -A" and you will soon find the variable which does this. Put a script in /usr/local/etc/rc.d which does the appropriate sysctl call and on startup the system sets their number to the new count automatically. That's how I did it on my 2.2-stable system. If it is that a program can't open enough files at the same time there is a limit setable with sysctl which is used systemwide for processes. Additionally a process has its own soft and hard limits that one sets with limit (csh/tcsh) and ulimit (sh/ksh/bash). Their initial values depend on the settings in /etc/login.conf. Stefan. -- Stefan Eggers Lu4 yao2 zhi1 ma3 li4, Max-Slevogt-Str. 1 ri4 jiu3 jian4 ren2 xin1. 51109 Koeln Federal Republic of Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message