[ZBX-7009] Memory leak in SNMP trapper Created: 2013 Sep 15 Updated: 2017 May 30 Resolved: 2013 Dec 10 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.0.8rc1 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Critical |
Reporter: | Peter Vilhan | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | memoryleak, snmptraps | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Debian wheezy 7.1 64bit, 8gb ram, 4core cpu, inside the vmware vsphere4. |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() |
Description |
All of the RAM is eaten by zabbix_server process, responsible for SNMP Traps. Zabbix stats: I use Zabbix for processing of SNMP traps received from CISCO DCM9900. I have created few hundreds of regular expressions, identifying source service contained in snmp trap. I use mainly computed items, which uses stored regular expressions and contains formulas like: Graph of free emmory is included. You can see piked as i have restarted zabbix server. |
Comments |
Comment by richlv [ 2013 Sep 15 ] |
please attach a graph showing zabbix_server memory usage, too |
Comment by Peter Vilhan [ 2013 Sep 16 ] |
zabbix memory consumption 5 hours after server restart. Sorry, I am really new to zabbix, so I am not able to attach zabbix_server memory consumption graph. Zabbix tell me, simple check is not supported on item proc.mem[zabbix_server,zabbix,,] |
Comment by richlv [ 2013 Sep 16 ] |
if you check the zabbix server logfile, is process with id 9144 really snmp trapper ? |
Comment by Peter Vilhan [ 2013 Sep 16 ] |
Of course it is, here is the output from zabbix_Server.log. I have attached second screenshot from top after 12 hours: |
Comment by Peter Vilhan [ 2013 Sep 16 ] |
Patch files I have attached show changes I have made into Zabbix. I needed to get Local Time into Timestamp row in Latest data(history_log table), because I use count function to count the number of video errors in last 5 seconds as received in snmp trap. |
Comment by richlv [ 2013 Sep 16 ] |
sorry, we don't have the resources to support custom patches. please, revert all patches and repeat the test. also, proc.mem is an agent item, not simple check. when testing with unpatched version, please, provide a graph, showing zabbix server memory usage |
Comment by Peter Vilhan [ 2013 Sep 16 ] |
Hello richlv, thank you for your response and for the advice regarding proc.mem. I have reverted all changes, so now I am running vanilla 2.0.9rc1. As you can see on zab_orig.png, nothing has changed and zabbix server proccess is still eating memory. After 40 minutes zabbix_server process responsible for snmp traps has: What else can I do? I have tried valgrind, but it detached from console after startup and does not show anything important. Thank you for your help. Best regards, Peter |
Comment by richlv [ 2013 Sep 16 ] |
thanks for testing unpatched version, we'll see how this develops |
Comment by Peter Vilhan [ 2013 Dec 10 ] |
Fixed in 2.2.0! Peter |
Comment by richlv [ 2013 Dec 10 ] |
thanks. we didn't see this internally, so closing as 'cannot reproduce' |