Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2002 12:33:33 -0700
From:      "Soheil Shaghaghi" <soheils@jhanna.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Open files limit
Message-ID:  <JGEPKJHDAHAGGDLNIEDEOEIIDFAB.soheils@jhanna.com>
In-Reply-To: <20020912183244.5C46137B401@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello everyone,
I am running a FreeBSD 4.6 server
I get a lot of too many open files in the system.
Searching the net, I found the reason.
Looking at the limits, here is what I get:
ulimit -a
core file size (blocks)     unlimited
data seg size (kbytes)      524288
file size (blocks)          unlimited
max locked memory (kbytes)  unlimited
max memory size (kbytes)    unlimited
open files                  1064
pipe size (512 bytes)       1
stack size (kbytes)         65536
cpu time (seconds)          unlimited
max user processes          531
virtual memory (kbytes)     589824

Question:
1. I know that the number of open files should be increased, but I don't
know to what number!
Can I set it to unlimited? Is there a problem with doing this?
I am running about 100 virtual hosts and a Java chat server and a music
server on this machine.

2. Can anyone recommend a different settings than the above, so I can change
it all at once?

3. The documents say to change the value and recompile the kernel.
Do I have to specify the new values in the kernel, and if so how?


Thanks so much.



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?JGEPKJHDAHAGGDLNIEDEOEIIDFAB.soheils>