Set the maximum number of files allowed to be open

# cat /proc/sys/fs/file-max
# echo 2048 > /proc/sys/fs/file-max

/etc/sysctl.conf:

fs.file-max = 2048

Set the value for maximum number of open files In the file /etc/security/limits.conf:

* - nofile 2048

Red Hat Knowledgebase: How do I set the maximum number of files allowed to be open on a system?

Author: WladyX on 7 August, 2009
Category: General

Leave a Reply

Last articles