ConcourseConnect Support

Support
Corporate
PUBLIC PROFILE

How do I fix Too Many Open Files error in Tomcat?

There are plenty of resources online that mention this error, and there appears to be several causes and solutions. While we haven't seen this on Windows, we have seen it on various versions of Linux. Here are some things you can try on Linux:

Update file-max

Check the current value of fs.file-max:

$ cat /proc/sys/fs/file-max

383709

Update that value in /etc/sysctl.conf (try twice the number):

fs.file-max = 767418

Reboot or trigger a reload:

sysctl -p

Update /etc/security/limits.conf

If that doesn't work alone, update the security limits in /etc/security/limits.conf:

*softnofile10000
*hardnofile10000

Sign in to add your comment.