From owner-freebsd-questions Thu Aug 12 19:34: 0 1999 Delivered-To: freebsd-questions@freebsd.org Received: from granite.sentex.net (granite.sentex.ca [199.212.134.1]) by hub.freebsd.org (Postfix) with ESMTP id 0584F14D82 for ; Thu, 12 Aug 1999 19:33:58 -0700 (PDT) (envelope-from mike@sentex.net) Received: from ospf-wat.sentex.net (ospf-wat.sentex.net [209.167.248.81]) by granite.sentex.net (8.8.8/8.6.9) with SMTP id WAA23162 for ; Thu, 12 Aug 1999 22:34:07 -0400 (EDT) From: mike@sentex.net (Mike Tancsa) To: questions@freebsd.org Subject: Re: File Table Full Date: Fri, 13 Aug 1999 02:46:32 GMT Message-ID: <37b386b5.745415260@mail.sentex.net> References: <37B31D59.3A39D3D2@cctinc.net> In-Reply-To: X-Mailer: Forte Agent .99e/32.227 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 12 Aug 1999 16:37:20 -0400, in sentex.lists.freebsd.questions you wrote: >In the last episode (Aug 12), Mike Alich said: >> Can anyone tell me how to increase the number of allowed files open in >> the system? >> >> About every week or so I get an error "file: table is full" and it go >> one for a few seconds to a few mins. How can I track down what is >> causing this? I think it might be a run away cgi or something. > >"sysctl kern.maxfiles" will print the size of the file table. You can >raise this at runtime by running "sysctl -w kern.maxfiles=10000" or >whatever you want. You will probably want to recompile your kernel >with a higher "maxusers" value, though (try using double the current >value). "maxusers" affects some other variables that need to be raised >for machines used as server. I second the above, except one caveat is avoid going higher than 128 for the maxusers. ---Mike Mike Tancsa (mdtancsa@sentex.net) Sentex Communications Corp, Waterloo, Ontario, Canada "Who is this 'BSD', and why should we free him?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message