I've read two separate ways of increasing the allowed open file count (I'm attempting to modify for root, if it matters).
One way is to update the settings in /etc/security/limits.conf with something like:
* soft nofile 500000 * hard nofile 500000 root soft nofile 500000 root hard nofile 500000 To make settings for the active shell, it looks like you can just do ulimit -n 500000, which wouldn't require a reboot or to logout/login, but may require restarting services (?).
The other option is to update /etc/sysctl.conf:
echo 'fs.file-max = 500000' >> /etc/sysctl.conf To make settings for the active shell, we can do sysctl -p, and verify with sysctl fs.file-max.
So my question is, what's the difference? Is there one? I'm on Ubuntu 14.04.2 LTS