Skip to content

Instantly share code, notes, and snippets.

@bensie
Created May 9, 2012 06:50
Show Gist options
  • Select an option

  • Save bensie/2642524 to your computer and use it in GitHub Desktop.

Select an option

Save bensie/2642524 to your computer and use it in GitHub Desktop.
Kill passenger instance PIDs using over 400MB
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