Count open fds of a PID

Quick fd count to spot leaks vs ulimit -n; faster: ls /proc/<pid>/fd | wc -l

lsof -nP -p <pid> | wc -l

tool
lsof19 commands
tags
lsofperformancetroubleshootingdebug

More lsof commands

all 19 lsof commands