Linux under the program is Killed__linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.