linux如何查看进程OOM killer

基本概念:

Linux 内核有个机制叫OOM killer(Out-Of-Memory killer),该机制会监控那些占用内存过大,尤其是瞬间很快消耗大量内存的进程,为了防止内存耗尽而内核会把该进程杀掉。

如何查看:

grep "Out of memory" /var/log/messages  

结果如图:

详细分析转载自:http://blog.chinaunix.net/uid-29242873-id-3942763.html

原文地址:https://www.cnblogs.com/sunshine2016/p/8549955.html