You also need bump up the number of file descriptors and number of file descriptors per process that the Linux kernel allows.
In Linux, this should be configured by editing the file at /proc/sys/fs/file-max
or by the sysctl
utility.
- Edit the
/etc/sysctl.conf
file and addfs.file-max = 50000
. This sets the maximum file descriptors that can run as a system-wide limit. - Running
ulimit -n 50000
sets the user-wide limit for the maximum number of file descriptors open.
Check this link for a more descriptive write-up for editing the limits on a linux machine: http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/