[ZBXNEXT-2035] Make Zabbix Agent immune to OOM killer. Created: 2013 Nov 20  Updated: 2013 Nov 20

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Oleg Ivanivskyi Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: memory
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Attachments: File zabbix-agent.patch    
Issue Links:
Duplicate

 Description   

It would be very useful to make Zabbix Agent immune to the Linux oom_killer, as it would allow the agent to keep collecting and sending data to the server, even when the monitored hosts are running out of memory.
It could be as simple as adding a line to the startup (init.d) script which would set the oom score value of -17 on /proc/PID/oom_adj or -1000 for /proc/PID/oom_score_adj (/proc/PID/oom_adj is being deprecated).

The following link provides some information on how these two files are used: https://www.kernel.org/doc/Documentation/filesystems/proc.txt (section 3.1)

Attached is a proposed solution for modifying the init script (tested and working on CentOS 6.4).



 Comments   
Comment by richlv [ 2013 Nov 20 ]

interesting request... i'd expect most users to want the opposite - to have their production system processes keep on running, and better let agent to be killed

i'd say we should document this possibility in the manual, but i don't think we will include this in the default distribution in any way

Comment by Oleg Ivanivskyi [ 2013 Nov 20 ]

We'll see (https://www.zabbix.com/forum/showthread.php?t=43243).

Generated at Fri Apr 26 10:04:46 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.