linux poison RSS
linux poison Email

How To increase the limit for file handles

There are cases when you get a lot of error messages about "running out of  file handles", increasing this limit of this handler can solve this issue. To change the value, just write the new number into the file as below:

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

# echo 943718 > /proc/sys/fs/file-max

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

This value also can be changed using "sysctl" command. To make the change permanent, add the entries to /etc/sysctl.conf

# vi /etc/sysctl.conf
fs.file-max = 943718


Post a Comment

Related Posts with Thumbnails