How to troubleshoot Out of memory (OOM) killer in Red Hat Enterprise Linux

Solution Verified - Updated -

Issue

  • The Out of memory (OOM) killer daemon is killing active processes.
  • Services on Red Hat OpenStack Platform nodes are randomly dying.
  • Memory usage seems to be high on Red Hat OpenStack Platform nodes.
  • Available memory on Red Hat OpenStack Platform nodes seems to be low.
  • There are Out of memory: Kill process 43805 (keystone-all) score 249 or sacrifice child noticed in the logs:
[Wed Aug 31 16:36:42 2016] Out of memory: Kill process 43805 (keystone-all) score 249 or sacrifice child
[Wed Aug 31 16:36:42 2016] Killed process 43805 (keystone-all) total-vm:4446352kB, anon-rss:4053140kB, file-rss:68kB
[Wed Aug 31 16:56:25 2016] keystone-all invoked oom-killer: gfp_mask=0x280da, order=0, oom_score_adj=0
[Wed Aug 31 16:56:25 2016] keystone-all cpuset=/ mems_allowed=0
[Wed Aug 31 16:56:25 2016] CPU: 2 PID: 88196 Comm: keystone-all Not tainted 3.10.0-327.13.1.el7.x86_64 #1

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat OpenStack Platform 9.0
  • Red Hat OpenStack Platform 8.0
  • Red Hat OpenStack Platform 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content