Os:cent OS 6.5
Log path:/var/log/messages
A program running on the server, found reported killed. Check the log in/var/log/messages and find the following error:
Aug 16:28:11 kernel:out of Memory:kill process 3080 (forward) score 559 or sacrifice child
Aug 16:28:11 : Killed process 3080, UID 0, (forward) total-vm:1429064kb, ANON-RSS:1130444KB, file-rss:136kb
The original Linux also has memory oom processing, unlike the Android kill newspaper Oom process, Linux is killing the current most memory-consuming process.
When the Linux newspaper oom, it means that the entire system memory is not enough, if not kill the process, it will cause the system crash. Each process will have a oom_score parameter, such as an output PID of 988 Oom_score:
Cat/proc/988/oom_score
OOM killer will kill the most current score process when the system reports OOM, which is usually the most memory-intensive process.
Solution: One is to increase the system memory, the second is to optimize the process, so that it takes up memory. Third, you can use the Oom_score_adj parameter, which is computed into the oom_score, to avoid the process being killed (deprecated).
Reference:
Understand and configure the OOM killer under Linux
Linux VM Run parameters (ii): Oom Related parameters
Out of memory
The Oom killer mechanism and code analysis of Linux--memory control
Analysis of Linux kernel oom mechanism