Hi All,
We are facing problem in RHEL 5.2 with "Too many open files" in our application logs.
Exception at accept java.net.SocketException: Too many open files
We usually do following below to remove the same in RHEL 4.u7
1.Edit /etc/security/limits.conf and add the lines:
* soft nofile 1024
* hard nofile 65536
2.Edit /etc/pam.d/login, adding the line:
session required /lib/security/pam_limits.so
3.The system file descriptor limit is set in /proc/sys/fs/file-max. The following command will increase the limit to 65536:
echo 65536 > /proc/sys/fs/file-max
The above steps usually removes the error in RHEL 4u7 but not in RHEL 5.2
After all this also we are facing the toomany open files issue.
Please help!!!
Thanks,
Ricky
We are facing problem in RHEL 5.2 with "Too many open files" in our application logs.
Exception at accept java.net.SocketException: Too many open files
We usually do following below to remove the same in RHEL 4.u7
1.Edit /etc/security/limits.conf and add the lines:
* soft nofile 1024
* hard nofile 65536
2.Edit /etc/pam.d/login, adding the line:
session required /lib/security/pam_limits.so
3.The system file descriptor limit is set in /proc/sys/fs/file-max. The following command will increase the limit to 65536:
echo 65536 > /proc/sys/fs/file-max
The above steps usually removes the error in RHEL 4u7 but not in RHEL 5.2
After all this also we are facing the toomany open files issue.
Please help!!!
Thanks,
Ricky