check_latest_version && sudo apt update && sudo apt upgrade -y
View file descriptor limits:
ulimit -n
cat /proc/sys/fs/file-max
lsof | wc -l
Raise file descriptor limits:
ulimit -n 4096
echo "* soft nofile 4096" >> /etc/security/limits.conf
Identify problematic processes:
lsof -p PID
ls -la /proc/PID/fd/
netstat -an | wc -l
The process has reached its limit for the number of file descriptors it can have open simultaneously.
cat /proc/sys/fs/file-nr
lsof | awk '{print $2}' | sort | uniq -c | sort -nr