Created
March 22, 2012 17:09
-
-
Save gerhard/2159874 to your computer and use it in GitHub Desktop.
Find total RSS memory used by all ruby processes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ps aux | awk '/[0-9] ruby/ { print $0; rss += $6 } END { print "TOTAL RSS: " rss/1024 " MB" }' | |
# Don't forget about resque ones | |
$ ps aux | awk '/[0-9] ruby|[0-9] resque/ { print $0; rss += $6 } END { print "TOTAL RSS: " rss/1024 " MB" }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment