本文介绍了查找 Linux OOM 杀手杀死了哪个进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当 Linux 内存不足 (OOM) 时,OOM 杀手会根据一些启发式选择要杀死的进程(这是一个有趣的阅读:http://lwn.net/Articles/317814/).
When Linux runs out of memory (OOM), the OOM killer chooses a process to kill based on some heuristics (it's an interesting read: http://lwn.net/Articles/317814/).
如何以编程方式确定哪些进程最近被 OOM 杀手杀死?
How can one programmatically determine which processes have recently been killed by the OOM killer?
推荐答案
试试这个:
grep -i 'killed process' /var/log/messages
这篇关于查找 Linux OOM 杀手杀死了哪个进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!