[ZBX-7711] Memory leak of vmware collector process Created: 2014 Jan 28  Updated: 2017 May 30  Resolved: 2014 Feb 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.1
Fix Version/s: 2.2.2rc2, 2.3.0

Type: Incident report Priority: Blocker
Reporter: Kodai Terashima Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: memoryleak, vmware
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 2.2.1, vSphere 5.1


Issue Links:
Duplicate

 Description   

vmware collector uses memory more than VMwareCacheSize. It seems that the process has memory leak problem.

StartVmwareCollectors=1
VMwareFrequency=60
VMwareCacheSize=8M

This Zabbix server monitor 1 vSphere 5.1 directly, and 7 VMs are working on the vSphere. vmware collector uses 120MB memory for 3 weeks, and continue to grow.

zabbix 4676 0.0 0.0 141920 2972 ? S Jan15 0:16 /usr/sbin/zabbix_server: ipmi poller #3 [got 0 values in 0.040843 sec, idle 5 sec]
zabbix 4677 0.0 0.0 141928 2524 ? S Jan15 1:55 /usr/sbin/zabbix_server: snmp trapper [processed data in 0.000051 sec, idle 1 sec]
zabbix 4678 0.0 0.0 141920 2960 ? S Jan15 0:16 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000009 sec, idle 5 sec]
zabbix 4679 0.0 0.0 141920 2756 ? S Jan15 1:16 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000016 sec, idle 1 sec]
zabbix 4680 0.3 3.9 256608 123620 ? S Jan15 71:04 /usr/sbin/zabbix_server: vmware collector #1 [updated 0, removed 0 VMware services in 0.000008 sec, idle 5 sec]



 Comments   
Comment by Kodai Terashima [ 2014 Jan 31 ]

It seems that this issue duplicate to ZBX-7392.
I'm testing Zabbix 2.2.1 with ZBX-7392 fix for 6 hours. There is no memory leak so far.

wiper gnuregexp.c is used only on Windows. On *nix we are using the libc regular expressions.

Comment by Andris Zeila [ 2014 Feb 04 ]

I could reproduce it and got the trace:

# allocation summary: 20 block(s) with total size 20480
	0x47def9 zbx_dvsprintf() at str.c:717
	0x47e05b __zbx_zbx_dsprintf() at str.c:760
	0x4459e6 wmware_vm_get_devices_by_counterid() at vmware.c:1383
	0x445ef7 vmware_service_create_vm() at vmware.c:1546
	0x446648 vmware_service_create_hv() at vmware.c:1786
	0x447623 vmware_service_update() at vmware.c:2543
	0x447d12 main_vmware_loop() at vmware.c:2798
	0x418c08 MAIN_ZABBIX_ENTRY() at server.c:873
	0x474762 daemon_start() at daemon.c:221
	0x417dde main() at server.c:562

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7711

Comment by Alexander Vladishev [ 2014 Feb 04 ]

(1) Please review my changes in r42204:42205

wiper thanks, CLOSED

Comment by Andris Zeila [ 2014 Feb 04 ]

Released in:
pre-2.2.2rc2 -r42208
pre-2.3.0 -r42209

Generated at Sat Apr 20 02:25:24 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.