[ZBX-25060] Zabbix Agent 2 increasing memory leak Created: 2024 Aug 18  Updated: 2025 Mar 24  Resolved: 2025 Mar 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 7.0.2
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Ghazi Triki Assignee: Vladislavs Sokurenko
Resolution: Duplicate Votes: 0
Labels: agent, performance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File zabbix_agent2_heap.diff    
Issue Links:
Duplicate
is duplicated by ZBX-23221 Memory leak when using encryption by ... Closed
Related
related to ZBX-23076 Zabbix Agent2 high memory usage Closed
related to ZBX-24653 configuration options to limit zabbix... Closed
Team: Team A
Sprint: S24-W34/35, S24-W36/37, S24-W38/39, S24-W40/41, S25-W12/13
Story Points: 0.25

 Description   

Steps to reproduce:

  1. Install NetBird agent on the server.
  2. Link the agent2 to a server with a private IP in the NetBird VPN.

Result:

It happens only for a single server within our infrastructure. I stopped the agent after using 91.3496 % of our 32GB RAM.

Expected:

Memory usage should be moderate.

 



 Comments   
Comment by Andris Zeila [ 2024 Aug 20 ]

Hello, do I understand correctly that you have several servers with agent2 connecting to zabbix server using NetBird VPN and only one of them is having memory problems ? In that case are there any configuration specifics or agent checks that are used only with this server ?

Comment by Vladislavs Sokurenko [ 2025 Jan 10 ]

Please try compiling with zabbix_agent2_heap.diff, then run

go tool pprof http://localhost:6060/debug/pprof/heap

and type

top
Comment by Vladislavs Sokurenko [ 2025 Mar 19 ]

Closing as a duplicate of ZBX-23221

Generated at Sat Jun 07 12:12:09 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.