Show process limits

Hard and soft resource limits for a running process

cat /proc/<pid>/limits

tool
linux133 commands
tags
linuxdebug

More linux commands

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

    Set high FD limit for current session and persist it

  • 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

all 133 linux commands