[XNIO] IO worker connection count provides incorrect values in Red Hat Fuse (Karaf runtime)

Solution Verified - Updated -

Issue

The org.xnio "Connection count" JMX MBean attribute returns an incorrect value -1, so that it is hard to monitor the performance of the Undertow server.
A sample JMX output may read:

 Bind address /0:0:0:0:0:0:0:0:8181
  Connection count -1
  Connection limit high water 2147483647
  Connection limit low water 2147483647
  Object Name org.xnio:type=Xnio,provider="nio",worker="XNIO-?",address="/0:0:0:0:0:0:0:0:8181"
  Provider name nio
  Worker name XNIO-?

Environment

  • Red Hat Fuse
    • 7.7 and older
    • Karaf runtime

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content