8 Sep 2013

How to protect running process from OOM killer

While running Minecraft server on Ubuntu server, the java process was killed when there is no available memory.

To prevent this, need to make an exception to OOM killer.
To do this, PID is required.

Run "ps -A" to know the PID.

Then use the command below to make an exception.
"echo -17 > /proc/$PID/oom_adj"


Post a Comment