sudo sysctl -w fs.file-max=2097152

Category: VPS Management

sudo sysctl -w fs.file-max=2097152

Increase the system-wide limit on open file descriptors

Each network connection, open file, and socket uses a file descriptor. Docker-heavy servers and high-traffic apps can exhaust the default limit (65536). Set this and also increase per-process limits in /etc/security/limits.conf.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.