Skip to content

Instantly share code, notes, and snippets.

@mferrier
Created January 26, 2012 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mferrier/1685566 to your computer and use it in GitHub Desktop.
Save mferrier/1685566 to your computer and use it in GitHub Desktop.
in /engineyard/bin/passenger_monitor change:
if [[ $app_real -gt $limit ]]; then
kill -6 $app_pid
logger -t passenger_monitor -s "Killing PID $app_pid (app $app_name) - memory $app_real MB exceeds $limit MB"
fi
to
if [[ $app_real -gt $limit ]]; then
kill -USR1 $app_pid
logger -t passenger_monitor -s "Killing PID $app_pid (app $app_name) - memory $app_real MB exceeds $limit MB"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment