[ZBX-19042] Java Gateway file descriptor leak Created: 2021 Feb 19  Updated: 2021 Apr 15

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Java gateway (J)
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Major
Reporter: Arturs Lontons Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File chart-2-2.png    
Issue Links:
Duplicate

 Description   

We are seeing constant file descriptor increase on some of our Java gateway (see descriptor graph)
This increase in descriptors correlates with Java gateway stopping data collection once the descriptor count peaks.

Java gateway version: 4.2.8

Java version:
java -version
openjdk version "1.8.0_262"
OpenJDK Runtime Environment (build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)

Additional JARs:
jboss-client.jar-21.0.1 (recently upgraded version)

We attempted to alleviate the issue with:

-XX:MaxDirectMemorySize=512m
-Dsun.rmi.transport.connectionTimeout=1000

This did not improve the behavior in any way.



 Comments   
Comment by Vladislavs Sokurenko [ 2021 Feb 19 ]

Also see ZBX-8579

Comment by Vladislavs Sokurenko [ 2021 Feb 19 ]

Have you tried 4.2.0 version of java gateway ? Did you upgrade from some version when issue started to occur ?

zalex_ua What is sense to try older (4.2.0) version than newer already used (4.2.8)

vso it is very useful information if issue was there since for ever or occurred in some specific version due to recent changes.

Generated at Wed Jul 02 08:12:01 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.