Wednesday, May 02, 2012

Increase number of open files per user

http://prefetch.net/blog/index.php/2009/07/31/increasing-the-number-of-available-file-descriptors-on-centos-and-fedora-linux-servers


$ ulimit -n
1024

$ cat /proc/sys/fs/file-max
366207

$ echo 512000 > /proc/sys/fs/file-max

$ cat /proc/sys/fs/file-max
512000

$ vi /etc/security/limits.conf

Now add a line after @student (the last user listed)

@username   -   nofile   70000


$ ulimit -n
8192

No comments: