Collecting my attempts to improve at tech, art, and life

Dealing with "too many open files" on Linux

ulimit shows the maximum number of files you can open. Use -S to see the soft limit.

ulimit -S -n

And -H for the hard limit

ulimit -H -n

Increase the soft limit — up to your hard limit — for the current session.

ulimit -n 2048

To permanently change file limits

Edit /etc/systemd/system.conf


Then /etc/systemd/user.conf


Apply the change with Systemd

sudo systemctl daemon-reexec

Added to vault 2024-06-15. Updated on 2024-06-15