Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 1999 04:01:02 -0700
From:      John Armstrong <siberian@siberian.org>
To:        freebsd-questions@freebsd.org
Subject:   File Descriptor Limits
Message-ID:  <v0421010eb3c1eccc963c@[216.112.76.84]>

next in thread | raw e-mail | index | archive | help
Hello all-
	I am trying to get a large number of low traffic virtual 
hosts running on a single machine ( 3.2-RELEASE, 128 megs of RAM ). 
When I say large I mean ~2500. The stock system loads ~800 up with no 
trouble. Around 900 it gets into file descriptor troubles with the 
dreaded error :

fopen: To many open files in system

So, I rebuilt my kernel with
FD_SETSIZE	4096

That is 4x the 1024 stock value.

Once I did that the kernel would load to about 950 and then die but 
now it dies with a new message :

[Error] (23)To many files open in system

which I think is a different message.

So I raised my maxusers from the stock value ( ~64? ) to 256.

Now I can load all 2520 virtual hosts!

My question is :

Someone set these limits for good reasons I imagine. What evil 
spirits am I invoking and how hurt will I get? is this perfectly 
acceptable? What is the largest # of virtual hosts someone has run 
under apache and freebsd?

Thanks, I am a little worried on this one and do not know when I 
should install another box. Load remains low, these are 
extraordinarily low volume vhosts.

Any advice is much appreciated, this is new territory for me. The 
machine is eating swap space like turkey on thanksgiving so I do 
think I will have to up my RAM soon which suprises me as I only have 
10-25 apache procs running at any given time( do file descriptors eat 
ram? )

John-


------------------------------------------------------------------
Mothing gives an author so much pleasure as to find his works
quoted by other learned authors.
	-Ben Franklin



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




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