[ZBX-16218] zabbix_sender doesn't clean up its semaphores Created: 2019 Jun 05  Updated: 2024 Apr 10  Resolved: 2019 Jun 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 4.2.1
Fix Version/s: 4.2.4rc1, 4.4.0alpha1, 4.4 (plan)

Type: Problem report Priority: Minor
Reporter: Remko Catersels Assignee: Andrejs Kozlovs
Resolution: Fixed Votes: 2
Labels: agent
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 11.2


Issue Links:
Duplicate
is duplicated by ZBX-16216 A huge number of open semaphores (zab... Closed
Team: Team A
Sprint: Sprint 53 (Jun 2019)
Story Points: 0.25

 Description   

Steps to reproduce:

Run zabbix_sender a few times in a row. Then look at the semaphores. Depending on the amount of semaphores the system has you will run out eventually.

Result:

Zabbix_sender will fail to send data to the Zabbix server. Stating that the system has run out of semaphores.

 Expected:
Normal zabbix_sender run.

 



 Comments   
Comment by Remko Catersels [ 2019 Jun 05 ]

https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/378846-zabbix-and-semaphore-use?view=thread

Comment by richlv [ 2019 Jun 05 ]

Might be different, but similar behaviour observed in the agent: ZBX-16216 .

Comment by Andrejs Kozlovs [ 2019 Jun 10 ]

Fixed in development branch:
   feature/ZBX-16218-4.2

Comment by Tao Zhou [ 2019 Jun 11 ]

I am having exactly the same issue.

Comment by Andrejs Kozlovs [ 2019 Jun 14 ]

Fixed in:

  • 4.2.4rc1 07391f7a9e7
  • 4.4.0alpha1 (master) b561d885e23
Comment by Remko Catersels [ 2019 Jul 10 ]

Just to confirm, Zabbix 4.2.4 landed in the FreeBSD ports tree. Several of our affected systems have been updated and so far I haven't seen any more left-over semaphores.

Thank you for fixing the issue.

Comment by Andris Mednis [ 2019 Jul 10 ]

Thanks for feedback, sirdice!

Comment by Benjamin Rechsteiner [ 2023 May 28 ]

i see similar behavior on my FreeBSD 12.3-STABLE (pfsense 2.6) with zabbix_sender (Zabbix) 6.0.2. the semaphores are not cleaned up.

Comment by Andrejs Sitals (Inactive) [ 2023 May 29 ]

brechsteiner, I believe it was fixed in 6.0.4, ZBX-20754

Generated at Thu Apr 25 23:54:58 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.