Skip to content

Instantly share code, notes, and snippets.

@Ashex
Created July 2, 2015 15:12
Show Gist options
  • Save Ashex/e21cca05e1a858b5de63 to your computer and use it in GitHub Desktop.
Save Ashex/e21cca05e1a858b5de63 to your computer and use it in GitHub Desktop.
Check ulimit of process
for pid in `pidof nginx`; do echo "$(< /proc/$pid/cmdline)"; egrep 'files|Limit' /proc/$pid/limits; echo "Currently open files: $(ls -1 /proc/$pid/fd | wc -l)"; echo; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment