Friday, July 1, 2011

Increase Ulimit in CentOS 5


1) edit /etc/sysctl.conf to add this line:
fs.file-max = 2048
2) sysctl -p
3)Vim /etc/security/limits.conf and add ther following lines

* soft nofile 65535
* hard nofile 65535
4)ulimit -n 65535