Troubleshooting "too many open files'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux