[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] running out of FIle descriptors
- Subject: Re: [cobalt-users] running out of FIle descriptors
- From: "Brian Curtis" <admin@xxxxxxxxxxx>
- Date: Fri Dec 22 13:14:07 2000
- Organization: Pomfret Computer Technologies
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Hi
> My name is Ravi. I am using Cobalt Chache raq 2 which LINUX based Cache
server. Since last some days I am getting error messages in cache log.
> "running out of FIle descriptors".
> Currently Squid is running with 1024 File descriptors.
> How do I increase this number of File descriptors.
The following bit of info is something I gathered from another list:
--------------------
Subject: Re: running Linux out of file descriptors!
> I know this probably doesn't speak to the root of your
> problem, and you might already know this or have done it,
> but commonly sysadmins increase the number of file handles
> allowed in RH Linux by tweeking the kernel in this way:
>
> # echo "8192" > /proc/sys/fs/file-max
>
> I usually allow 256 processes for every 4MB of RAM.
> You put this in your /etc/rc.d/rc.local for it to recur on
> your next reboot.... I think the default is 4096 which is
> really not enough...
>
> Also, if a person increases their available file-handles, they
> should increase the maximum inodes too (something like
> 3 or 4 times the file handles is good) in this way:
>
> # echo "32768" > /proc/sys/fs/inode-max
--------------------
--
Brian Curtis