How to increase the maximum number of threads created for a connector in EAP6 ?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Issue
- Following messages are encountered in the
server.log:
INFO [org.apache.tomcat.util] (ajp-/10.10.10.10:8509-Acceptor) JBWEB003008: Maximum number of threads (64) created for connector with address /10.10.10.10 and port 8509
Resolution
- The following log message indicates that the limit for maximum threads that can be handled by a connector has reached.
INFO [org.apache.tomcat.util] (ajp-/10.10.10.10:8509-Acceptor) JBWEB003008: Maximum number of threads (64) created for connector with address /10.10.10.10 and port 8509
- For non-native APR connectors, the maximum number of threads which a connector can handle can be defined by adding the attribute
max-connectionsin the<subsystem xmlns="urn:jboss:domain:web:1.5">subsytem as:
<subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-connections="10000"/>
...
</subsystem>
- For APR connectors (native="true"), the max thread pool size is sized through the
org.apache.tomcat.util.net.MAX_THREADSsystem property instead
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
