public
Created

Disable the oom killer on linux

  • Download Gist
Disable the oom killer
1 2 3 4 5
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.