Skip to content

Instantly share code, notes, and snippets.

@seanhussey
Created October 9, 2009 15:45
Show Gist options
  • Save seanhussey/206125 to your computer and use it in GitHub Desktop.
Save seanhussey/206125 to your computer and use it in GitHub Desktop.
# Find open file descriptors (I think) for mongrel
ps aux | grep mongrel_rails | awk '{print $2}' | xargs -n1 -I 'foo' /usr/sbin/lsof -p 'foo' | sort | awk '{print $2}' | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment