Why does JBoss EAP create more than 2 * max-pool-size connections to an IBM WebSphere MQ server?

Solution In Progress - Updated -

Issue

  • Why does JBoss EAP create more than 2 * max-pool-size connections to an IBM MQ queue manager?
  • When configuring the IBM WebSphere MQ resource adapter as follows, EAP should use 5 connections, but the queue manager shows over 10 connections.

     <transaction-support>XATransaction</transaction-support>
     ...
     <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:jboss/mqm" enabled="true" tracking="false" use-java-context="true" pool-name="java:jboss/mq/xa/mq-cd">
        ...
        <xa-pool>
            <min-pool-size>5</min-pool-size>
            <initial-pool-size>5</initial-pool-size>
            <max-pool-size>5</max-pool-size>
            <prefill>true</prefill>
        </xa-pool>
        ...
    </connection-definition>
    
  • Checking the JBoss EAP resource adapter statistics in the CLI (/subsystem=resource-adapters/resource-adapter=<RAR>/connection-definitions=<CONNECTION DEFINITION>/statistics=pool:read-resource(include-runtime=true)) shows max-pool-size available and active, but IBM MQ shows twice, or more connections to the queue manager.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.4
  • IBM WebSphere MQ resource adapter

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