Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22204

Java gateway memory leak issues if old jboss-client.jar is used

    XMLWordPrintable

Details

    • Documentation task
    • Status: Confirmed
    • Trivial
    • Resolution: Unresolved
    • 4.0.44, 5.0.30, 6.0.12, 6.2.6
    • None
    • None

    Description

      There is an issue with Zabbix Java gateway and memory leaks.

      2022-11-25 17:47:33.860 [Remoting "endpoint" I/O-1] ERROR org.xnio.listener - XNIO001007: A channel event listener threw an exception
      java.util.concurrent.RejectedExecutionException: Task org.jbo[email protected]64e7ad27 rejected from [email protected][Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
              at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
              at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
              at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
              at org.xnio.XnioWorker.execute(XnioWorker.java:741)
              at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:454)
              at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
              at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
              at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
              at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
              at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
              at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
              at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
      java.lang.OutOfMemoryError: Java heap space
      2022-11-25 18:24:35.193 [Thread-0] INFO  com.zabbix.gateway.JavaGateway - Zabbix Java Gateway 6.0.8 (revision c7c3044) has stopped
      ** Preparing Zabbix Java Gateway
      ** Preparing Zabbix Java Gateway log configuration file
      Updating /etc/zabbix/zabbix_java_gateway_logback.xml 'DebugLevel' parameter: 'info'... updated
      

      It occurs because of old jboss-client.jar is being used. Currently seems it only occurs if you try to monitor newer Wildfly versions.

      The fix is quite simple - use the newest jboss-client.jar from the newest Wildfly release to run Zabbix Java gateway.

      Can we please make a note on this in documentation? Something like this will suffice I believe:

      If you are trying to monitor Wildfly based java applications with Zabbix Java Gateway, please install the latest jboss-client.jar available on the Wildfly download page. https://www.wildfly.org/downloads/

      By default this jboss-client.jar should replace the existing one located here: /usr/share/zabbix-java-gateway/lib

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            ksalins Karlis Salins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: