Created
March 8, 2011 04:13
-
-
Save abdollar/859833 to your computer and use it in GitHub Desktop.
Disable the oom killer on linux
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
disable oom-killer | |
Run as root or add to script - for passenger | |
for pid in $(pidof PassengerNginxHelperServer) ; do echo "disabling oom on pid $pid"; echo -17 | tee /proc/$pid/oom_adj > /dev/null; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment