From owner-freebsd-questions Fri Jan 28 7: 7:56 2000 Delivered-To: freebsd-questions@freebsd.org Received: from boris.netgate.net (boris2.netgate.net [204.145.147.155]) by hub.freebsd.org (Postfix) with ESMTP id 4B3C715B9E for ; Fri, 28 Jan 2000 07:06:13 -0800 (PST) (envelope-from wellsian@caffeine.com) Received: from localhost (wellsian@localhost) by boris.netgate.net (8.9.3/8.9.3) with ESMTP id HAA93281; Fri, 28 Jan 2000 07:05:28 -0800 (PST) (envelope-from wellsian@caffeine.com) Date: Fri, 28 Jan 2000 07:05:28 -0800 (PST) From: wellsian X-Sender: wellsian@boris.netgate.net To: Doug Denault Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how do i increase the maximum number of open files systemwide. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Have you explored sysctl? % sysctl kern.maxfiles kern.maxfiles: 2088 I believe this would do what you want (from single-user): % sysctl -w kern.maxfiles 16000 The manpage provides more detail and pointers to relevant kernel sources. -Dave On Fri, 28 Jan 2000, Doug Denault wrote: > > Ya - thanks; the question was for max open files which seems to be 2 * > maxproc, but thanks. I have a related question. I have a web server with > about 250 domains using Netscape (yah - yah we going to Apache), where > maxopenfiles MUST be bumped to 16,000+. > > My question: is there a way to bump this parameter without taking all the > other kernel structures with it. I presume with Apache the number will not > be so high but it probably will exceed a reasonable value scaled from > maxusers. > > thanks for any thoughts/ideas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message