[CentOS] Troubleshooting "too many open files'
ekkikrist at yahoo.com
Sun May 7 03:03:44 UTC 2006
Check any ulimits imposed on the process you are running.
# ulimit -n
You should be able to increase that value to your file-max value.
FD_SETSIZE defined in:
#define __FD_SETSIZE 1024
If you are feeling silly you can modify the value of FD_SETSIZE and
recompile your software.
In either case, standard warnings apply.
On Sat, May 06, 2006 at 06:06:07PM -0700, Michael Rock wrote:
> Besides file-max and file-nr is there anywhere else I
> should be looking to solve a C program giving me 'too
> many open files' problem? (centos 3.4)
> While the program is complaining here were the values
> 3655 258 209632
> lsof | wc -l
> around 7000 during and about 1111 less after I closed
> the application.
> Any ideas? thx
More information about the CentOS