Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2000 16:07:15 +0100 (CET)
From:      Konrad Heuer <kheuer@gwdu60.gwdg.de>
To:        Doug Denault <doug@safeport.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how do i increase the maximum number of open files  systemwide.
Message-ID:  <Pine.BSF.4.05.10001281604500.14134-100000@gwdu60.gwdg.de>
In-Reply-To: <Pine.BSF.3.96.1000128094205.32480A-100000@fledge.watson.org>

index | next in thread | previous in thread | raw e-mail


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

No need for kernel recompilation:
/sbin/sysctl -w kern.maxfiles=16000

> > I just jumped on this thread, but I think this might help:
> > 
> > In "the Complete freebsd v. 2", it states that the maximum number of
> > processes is set to 
> > 20+ 16*Maxusers where "maxusers" is set in the kernel.
> > 
> > Everyone I've talked to has always suggested to take your "real" number of
> > maxusers and bad it a good bit, to make sure you don't have to "suddenly"
> > take down the system and rebuild / reinstall the kernel with a new maxusers
> > value.  The only thing I can recall being warned about was to make certain
> > that the max processes you end up running can actually be handled by your
> > hardware (I have NO idea how to make a TRUE evaluation of that though...)
> > 
> > Good luck,
> > John

Konrad Heuer                                    Personal Bookmarks:
Gesellschaft für wissenschaftliche
   Datenverarbeitung mbH GÖttingen              http://www.freebsd.org
Am Faßberg, D-37077 GÖttingen                   http://www.daemonnews.org
Deutschland (Germany)

kheuer@gwdu60.gwdg.de



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10001281604500.14134-100000>