JBossWeb WildFly Subsystem Configuration: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
* [[JBossWeb WildFly Subsystem Concepts]] | * [[JBossWeb WildFly Subsystem Concepts]] | ||
=Thread Pool Configuration= | =AJP/HTTP Thread Number Configuration= | ||
==Direct Connector Configuration== | |||
The maximum number of threads handling HTTP requests (over the HTTP/HTTPS/AJP protocols) can be configured directly on the corresponding connectors, using the <tt>max-connections</tt> attribute, or via a thread pool configuration, as shown [[#Thread_Pool_Configuration#below]]. | |||
<pre> | |||
<subsystem xmlns="urn:jboss:domain:web:2.2" ... > | |||
... | |||
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-connections="200"/> | |||
<connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp" max-connections="200"/> | |||
<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" enable-lookups="false" secure="true" max-connections="200"> | |||
... | |||
</connector> | |||
... | |||
</subsystem> | |||
</pre> | |||
==Thread Pool Configuration== | |||
A thread pool must be configured in the "threads" subsystem, as described here: | A thread pool must be configured in the "threads" subsystem, as described here: |
Revision as of 19:30, 30 July 2016
Internal
AJP/HTTP Thread Number Configuration
Direct Connector Configuration
The maximum number of threads handling HTTP requests (over the HTTP/HTTPS/AJP protocols) can be configured directly on the corresponding connectors, using the max-connections attribute, or via a thread pool configuration, as shown #Thread_Pool_Configuration#below.
<subsystem xmlns="urn:jboss:domain:web:2.2" ... > ... <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-connections="200"/> <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp" max-connections="200"/> <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" enable-lookups="false" secure="true" max-connections="200"> ... </connector> ... </subsystem>
Thread Pool Configuration
A thread pool must be configured in the "threads" subsystem, as described here:
Once the thread pool has been configured, it can be plugged into the HTTP connector as follows:
... <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" executor="http-thread-pool"/> ...
Red Hat Recommendations on the Number of AJP/HTTP Threads
- How large should our JBoss AJP or HTTP thread pool be? https://access.redhat.com/solutions/452023