Created
May 9, 2012 06:50
-
-
Save bensie/2642524 to your computer and use it in GitHub Desktop.
Kill passenger instance PIDs using over 400MB
This file contains hidden or 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
| for i in `sudo /usr/local/src/passenger-XXX/bin/passenger-memory-stats | grep "Passenger RackApp" | awk '{if ($4>400) print $1}'`; do kill -9 $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment