[ZBX-4891] Zabbix Server memory leak Created: 2012 Apr 19 Updated: 2017 May 30 Resolved: 2012 Oct 12 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.0.0rc3 |
Fix Version/s: | 2.0.3 |
Type: | Incident report | Priority: | Blocker |
Reporter: | Andrew Howell | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
RHEL 6.2 |
Attachments: |
![]() ![]() ![]() ![]() |
Description |
Since upgrading to 2.0.0rc3 build 26725 from 2.0.0rc2 the server processes have had a memory leak. Seems to be about 350 K a minute according to my memory graphs. |
Comments |
Comment by Oleksii Zagorskyi [ 2012 Apr 21 ] | |||||||||||||||||||||||||||||||||
Andrew, describe please how do you monitor that "memory leak"? Attach please the graph with maximal period where it's visible point of upgrade to 2.0.0rc3 Show us please result of this query: | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 Apr 23 ] | |||||||||||||||||||||||||||||||||
Hi Oleksiy, Just noticed it with vm.memory.size[available] on the zabbix server. I've attached the graph, the date we upgraded to 2.0.0rc2 was the 12/4 You can see the memory usage conincedes with the restarts of the zabbix server (extract below from log file) 27430:20120412:083114.107 Starting Zabbix Server. Zabbix 2.0.0rc3 (revision 26725). mysql> select i.type, COUNT
-----
----- current zabbix processes USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 Apr 23 ] | |||||||||||||||||||||||||||||||||
I upgraded to 2.0.0rc3 release today and early indications are that the memory leak is gone. I'll update you again tomorrow after it's been running over night | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 Apr 24 ] | |||||||||||||||||||||||||||||||||
No the memory leak is still there (2.0.0rc3 rev 26994) | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 Apr 30 ] | |||||||||||||||||||||||||||||||||
I still have this issue, can you explain why this ticket was closed? Please let me know if you want me to provide more information | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 May 01 ] | |||||||||||||||||||||||||||||||||
Hi, Could you please reopen this ticket and investigate it. I've attached valgrind log, happy to do run anything else you want me too. | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 May 17 ] | |||||||||||||||||||||||||||||||||
Memory leak is still there in 2.0.0rc4 | |||||||||||||||||||||||||||||||||
Comment by richlv [ 2012 May 17 ] | |||||||||||||||||||||||||||||||||
could you please monitor server memory usage with item key proc.mem[zabbix_server_mysql] ? | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 May 18 ] | |||||||||||||||||||||||||||||||||
Attached screenshot of proc.mem[zabbix_server_mysql] for a day. The drop at the beginning is where I restarted zabbix server | |||||||||||||||||||||||||||||||||
Comment by richlv [ 2012 May 18 ] | |||||||||||||||||||||||||||||||||
could you please attach zabbix server config file (w/o passwords etc) ? | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 May 19 ] | |||||||||||||||||||||||||||||||||
Attached zabbix_server.conf. If you don't restart the server regularly the memory leak will grow until the server runs out of memory and swap. | |||||||||||||||||||||||||||||||||
Comment by Jeremy Lingmann [ 2012 Aug 27 ] | |||||||||||||||||||||||||||||||||
We are also experiencing this issue with Zabbix 2.0.2. The 'zabbix_server' process slowly grows in size, until we have to restart zabbix. Let me know if you would like us to collect any diagnostics information. | |||||||||||||||||||||||||||||||||
Comment by richlv [ 2012 Aug 27 ] | |||||||||||||||||||||||||||||||||
a memleak for 2.0 was fixed in | |||||||||||||||||||||||||||||||||
Comment by Benjamin [ 2012 Aug 28 ] | |||||||||||||||||||||||||||||||||
We are also experiencing this issue. Is the only fix to recompile from the most recent svn? | |||||||||||||||||||||||||||||||||
Comment by richlv [ 2012 Aug 28 ] | |||||||||||||||||||||||||||||||||
if it's thee same memleak, it might be a fix. if it's something else, of course, it won't help. well, technically not using any triggers might also stop the leaks, but i wouldn't consider that to be a fix | |||||||||||||||||||||||||||||||||
Comment by Andrew Howell [ 2012 Oct 12 ] | |||||||||||||||||||||||||||||||||
This is fixed in 2.0.3 |