I have Linux machine dedicated to serving static contents and PHP pages with Apache. Apache also work as a reverse proxy in a subdomain. I moved the PostgreSQL database to another Linux machine.

Is it safe to disable the OOM killer in the kernel?

  • Three words: add more RAM. There's also another variant of this: add more swap. Pushing your machine to the limit of its abilities will always cause grief, regardless of what the OS running happens to be. Commented Aug 12, 2010 at 1:02
  • What is the benefit of disabling OOM killer ?
    – user368507
    Commented Aug 3, 2011 at 0:26

1 Answer 1


Probably not.

If the OOM killer is running then it is likely that the OOM killer needs to be run to avoid the machine simple grinding to a halt as nothing, even the kernel, can allocate new memory if needed. The OOM killer exists because it is generally better to have some services fall over due to the killer than the whole machine to fall off the face of the 'net.

If you see the OOM killer in action with any regularity then you should either reconfigure the services on the machine to use less RAM, or you may need to add more RAM to the machine.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .