[CentOS] Troubleshooting "too many open files'

Mike ekkikrist at yahoo.com
Tue May 9 15:11:12 UTC 2006


Put ulimit -n 8192 in the startup script.  If you mess
with those include files you will have to recompile your
program and possibly its dependencies.  So try the easy
way first ;) modifying include should be considered a
last resort.

- Mike

On Sat, May 06, 2006 at 10:40:54PM -0700, Michael Rock wrote:
> ulimit -n was 1024, so I am assuming that is likely
> the problem.  So if I understand your reply correctly,
> I can do a 'ulimit -n 8192' to increase the value, but
> that is only for the session?
> 
> Since I have the program starting at bootup what you
> are saying is I need to edit these files and reboot,
> Then ulimit -n should show whatever I set it to below?
> 
> FD_SETSIZE defined in:
> /usr/include/linux/posix_types.h
> /usr/include/bits/typesizes.h
> 
> #define __FD_SETSIZE    8192
> 
> Do I have that right? thx



More information about the CentOS mailing list