Linux | Too many open files

With systemd: /etc/systemd/system.conf DefaultLimitNOFILE=128000 You are a lucky admin who is NOT running systemd: /etc/security/limits.conf * soft nofile 128000 * hard nofile 128000 * hard nproc 128000 * soft nproc 128000 root soft nofile 128000 root hard nofile 128000 Check with # ulimit -n

inotify | kernel // upper limit on inotify watches

show current limit: cat /proc/sys/fs/inotify/max_user_watches change temporarily: Run sudo sysctl fs.inotify.max_user_watches= with your preferred value at the end. change permanently: Replace the value within the /proc/sys/fs/inotify/max_user_watches file with your own, i.e echo 524288 | sudo tee -a /proc/sys/fs/inotify/max_user_watches. OR DO sudo echo “fs.inotify.max_user_watches=$” >> /etc/sysctl.conf To make the changes take effect without rebooting, run: sudo […]