From owner-freebsd-questions Tue Nov 3 16:39:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA15866 for freebsd-questions-outgoing; Tue, 3 Nov 1998 16:39:49 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA15858 for ; Tue, 3 Nov 1998 16:39:44 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.05 #1) id 0zao9d-0002ED-00; Tue, 3 Nov 1998 21:38:21 +0000 Date: Tue, 3 Nov 1998 21:38:21 +0000 From: Ben Smithurst To: Luiz Lins Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Too many files Message-ID: <19981103213821.A8545@scientia.demon.co.uk> References: <363F71E2.58B4A71F@vecom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <363F71E2.58B4A71F@vecom.com> User-Agent: Mutt/0.94.12i (FreeBSD/3.0-CURRENT) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Luiz Lins wrote: > I have FreeBSD 2.2.6 working with apache and serving a heavy site. > It has about 2,000 accesses per day. I compiled the kernel with the > following options: > CHILD_MAX=256 > OPEN_MAX=2000 > > But, for instance, when I type "ls" the system often returns: > "ls: .: Too many open files in system" I think in -current you have to set "maxusers" to increase the maximum number of processes, not sure about 2.2.6. Have you tried putting something like maxusers 64 in your kernel config? (I found that {CHILD,OPEN}_MAX had no effect.) -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message