[CentOS] too many open files

Thu Aug 19 17:58:33 UTC 2010
JohnS <jses27 at gmail.com>

On Thu, 2010-08-19 at 13:44 -0400, Jerry Geis wrote:
> I am getting an error about to many open files.
> I tried to "echo 500000 > /proc/sys/fs/file-max"
> The number is there now, but I continue to get the error.
> 
> Is there something else to do?
----For EL 5? You don't say?
# /etc/security/limits.conf
# Open File Descriptors
*       -       nofile          8192
---
Just how many do you have open?
http://www.mjmwired.net/kernel/Documentation/sysctl/fs.txt

There is also a per user basis also.

John

My advise is to stay way from setting it via /proc.  You could still be
getting the warning because the system has not read proc very busy
machines I have seen this.