Check any ulimits imposed on the process you are running. # ulimit -n 1024
You should be able to increase that value to your file-max value.
and
FD_SETSIZE defined in: /usr/include/linux/posix_types.h /usr/include/bits/typesizes.h
#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.
- Mike
On Sat, May 06, 2006 at 06:06:07PM -0700, Michael Rock wrote:
Hi,
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
file-max 209632
file-nr 3655 258 209632
lsof | wc -l around 7000 during and about 1111 less after I closed the application.
Any ideas? thx