[ZBX-4848] Zabbix Agent Memory Leak Created: 2012 Apr 09 Updated: 2017 May 30 Resolved: 2013 Apr 10 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 1.8.11 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Blocker |
Reporter: | Gioacchino Mazzurco | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | memoryleak | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Linux OpenWrt 2.6.32.27 #1 Thu Apr 5 15:58:38 CEST 2012 mips GNU/Linux |
Description |
I am trying zabbix as monitoring system on our community network in Italy ( ninux.org ) I am experiencing a big problem with the agent, our devices are embedded system with openwrt and ~16MB of ram so we have noticed rapidly of a memory leak on latest version of zabbix_agentd As you can see there [0] the free memory on the device is slowly decreasing after starting zabbix agentd end grow up instantly when /etc/init.d/zabbix_agentd restart is runned To be able to run Zabbix on an embedded system like openwrt we had to apply some little patches [1] but they doesn't seems the cause of the memory leak [0] http://eigenlab.org/~gioacchino/Immagini/zabbix_agentd_memory_leak.png More info here: root@OpenWrt:~# zabbix_agentd -V root@OpenWrt:~# ps ax root@OpenWrt:~# cat /etc/zabbix/zabbix_agentd.conf
Server=zabbix.eigenlab.org
#ServerPort=10051
Hostname=localhost
#ListenPort=10050
#ListenIP=127.0.0.1
StartAgents=1
#RefreshActiveChecks=120
#DisableActive=1
#EnableRemoteCommands=1
DebugLevel=3
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
Timeout=3
|
Comments |
Comment by Gioacchino Mazzurco [ 2012 Apr 09 ] |
here you can see the real time free memory graph http://zabbix.eigenlab.org/history.php?action=showgraph&itemid=22522&sid=2d7d93a558b68c6b as you can see free memory is decreasing from latest zabbix_agentd restart moreover i have a question why with ps ax i can see 4 agentd process if in config it is set to 1 ? end here more updated info |
Comment by Gioacchino Mazzurco [ 2012 Apr 09 ] |
As someone suggested me on irc i have changed the config file in this way and restarted zabbix root@OpenWrt:~# /etc/init.d/zabbix_agentd restart
Server=2001:1418:1a9:eeab::100
#ServerPort=10051
Hostname=localhost
#ListenPort=10050
#ListenIP=127.0.0.1
StartAgents=1
#RefreshActiveChecks=120
DisableActive=1
#EnableRemoteCommands=1
DebugLevel=3
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
Timeout=3
|
Comment by Gioacchino Mazzurco [ 2012 Apr 09 ] |
added zabbix_agentd used memory graph http://zabbix.eigenlab.org/history.php?action=showgraph&itemid=22525&sid=cb8ad6e906416fd5 |
Comment by Gioacchino Mazzurco [ 2012 Apr 09 ] |
It seems that removing system.hostname ( that replies ZBX_NOTSUPPORTED ) and system.uname ( that replies the correct info ) from zabbix server item list, memory used by zabbix_agentd stop growing on the embedded system |
Comment by Gioacchino Mazzurco [ 2012 Apr 09 ] |
my bad it doesn't stopped but slowed |
Comment by Alexei Vladishev [ 2012 Jun 13 ] |
Please include at least one evidence that the agent is leaking memory. Free memory usage is irrelevant information. It would be nice if you could upgrade to the latest 1.8.13. |
Comment by richlv [ 2013 Feb 07 ] |
please reopen if you have additional information |
Comment by Oleksii Zagorskyi [ 2013 Apr 10 ] |
Reopen to unify labels |