Suddenly we faced the error ‘Open file limit ‘ while login on Linux server and try to run df -h or any other command. Here will see outofmemory and resolve too many open files error.
The likely cause of this issue is hitting max “Open file limit“. This error indicates that all available file handles for the process have been used.
To resolve this issue, we need to increase the size of ulimit -Sn. The ulimit command allow you to control user resource limit is the system such as process data size, virtual memory and process file size, no of processes etc.
Steps to resolve too many open files error.
Increase the limit temporary to fix outofmemory error.
#ulimit -Sn 4024