[jboss-jira] [JBoss JIRA] (WFLY-8882) Artemis client uses unbounded threap pool

Jeff Mesnil (JIRA) issues at jboss.org
Fri Jun 2 11:36:00 EDT 2017


Jeff Mesnil created WFLY-8882:
---------------------------------

             Summary: Artemis client uses unbounded threap pool
                 Key: WFLY-8882
                 URL: https://issues.jboss.org/browse/WFLY-8882
             Project: WildFly
          Issue Type: Bug
          Components: JMS
    Affects Versions: 11.0.0.Alpha1
            Reporter: Jeff Mesnil
            Assignee: Jeff Mesnil
            Priority: Critical


Artemis client thread pool can be configured using the messaging-activemq subsystem's global-client-thread-pool-max-size attribute (introduced in 11.0.0.Alpha1).

By mistake, the default value of this attribute was set to -1 (through the ActiveMQClient.DEFAULT_THREAD_POOL_MAX_SIZE constants).
This means that unless configured otherwise, the Artemis clients running in the app server (e.g. MDB code) will use an unbounded thread pool.
The correct configuration is to *not* have a default value. If that's the case, Artemis will determine the size of the pool depending on the number of processors (8 * Runtime.getRuntime().availableProcessors())




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list