Skip to content

Instantly share code, notes, and snippets.

@overplumbum
Created July 3, 2012 02:05
Show Gist options
  • Save overplumbum/3037065 to your computer and use it in GitHub Desktop.
Save overplumbum/3037065 to your computer and use it in GitHub Desktop.
max fd count per process and per user
for f in /proc/*/fd/ ; do ls -U1 $f | wc -l ; done | sort -gr | head -n1
lsof | awk '{ a[$3]++ } END { for(i in a) print a[i] "\t" i }' | sort -bgr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment