Increase system file descriptor limit

Set high FD limit for current session and persist it

ulimit -n 1048576 && echo '* soft nofile 1048576 * hard nofile 1048576' >> /etc/security/limits.conf

tool
linux133 commands
tags
linuxkernelperformance

More linux commands

  • df -i

    Show inode usage per filesystem (important for many small files)

  • find / -type f -size +100M 2>/dev/null | sort

    Find files larger than 100MB on the entire filesystem

  • cat /proc/$(pgrep myapp)/fd | wc -l

    Count open file descriptors for a running process

  • getenforce

    Show current SELinux enforcement mode

  • ls /etc/cron.* /var/spool/cron/crontabs/

    List all system and user cron job locations

all 133 linux commands