如何在 Red Hat Enterprise Linux 中对 Out of memory (OOM) killer 进行故障排除
Issue
- Out of memory (OOM) killer 程序守护进程终止了活跃的进程。
- Red Hat OpenStack Platform 节点上的服务会被随机终止。
- 在 Red Hat OpenStack Platform 节点上,内存用量似乎很高。
- Red Hat OpenStack Platform 节点上的可用内存似乎较低。
- 在日志中出现
Out of memory: Kill process 43805 (keystone-all) score 249 or sacrifice child
:
[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.