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
tags
linuxkernelperformance

More linux commands

  • df -i

    Show inode usage per filesystem. Important when you have lots of small files.

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

    Find files larger than 100MB on the whole filesystem.

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

    Count open file descriptors of a running process.

  • getenforce

    Show 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.

all 133 linux commands