Skip to content

Instantly share code, notes, and snippets.

@abdollar
Created March 8, 2011 04:13
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 abdollar/859833 to your computer and use it in GitHub Desktop.
Save abdollar/859833 to your computer and use it in GitHub Desktop.
Disable the oom killer on linux
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