Linux - Error java io filenotfoundexception, Too many open files java io FileNotFoundException

Error java io filenotfoundexception

When you receive the error many files open) follow the steps given below to fix the error.

Set User Level File Descriptors Limit(FD):

you can limit tomcat(or any other users) user to specific limits by editing /etc/security/limits.conf file, enter
# vi /etc/security/limits.conf

Set tomcat user soft and hard limits as follows:
tomcat soft nofile 5000
tomcat hard nofile 10000

Then Open file
# vi /etc/pam.d/login

Add the below line into it:
session required

This will limit the files tobe opensed or handled by a user.

The topic on Linux - Error java io filenotfoundexception is posted by - Math

Hope you have enjoyed, Linux - Error java io filenotfoundexceptionThanks for your time

Tech Bluff