Created
January 26, 2012 22:39
-
-
Save mferrier/1685566 to your computer and use it in GitHub Desktop.
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
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