Skip to content

Instantly share code, notes, and snippets.

@abdollar
Created March 8, 2011 04:13
Show Gist options
  • 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