Raise the file descriptor limit
Set a high FD limit for the current session and save it in limits.conf for future logins.
ulimit -n 1048576 && echo '* soft nofile 1048576
* hard nofile 1048576' >> /etc/security/limits.conf
- tool
- linux133 commands
More linux commands
-
df -iShow inode usage per filesystem. Important when you have lots of small files.
-
find / -type f -size +100M 2>/dev/null | sortFind files larger than 100MB on the whole filesystem.
-
cat /proc/$(pgrep myapp)/fd | wc -lCount open file descriptors of a running process.
-
getenforceShow the current SELinux mode: Enforcing, Permissive or Disabled.
-
ls /etc/cron.* /var/spool/cron/crontabs/List cron files in the system directories and user crontabs.