Created
April 15, 2013 16:15
-
-
Save Karm/5389258 to your computer and use it in GitHub Desktop.
Define Thread Pools for HTTP Connector in AS7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) ./subsystem=threads/thread-factory=http-connector-factory:add(group-name="my-cool-pool",thread-name-pattern="HTTP-%t", priority="9") | |
2) ./subsystem=threads/unbounded-queue-thread-pool=my-cool-pool:add(thread-factory="http-connector-factory", keepalive-time={time=30, unit="seconds"}, max-threads=30) | |
3) ./subsystem=web/connector=http:write-attribute(name=executor, value="my-cool-pool") | |
Translates into: | |
... | |
<subsystem xmlns="urn:jboss:domain:threads:1.1"> | |
<thread-factory name="http-connector-factory" group-name="my-cool-pool" thread-name-pattern="HTTP-%t" priority="9"/> | |
<unbounded-queue-thread-pool name="my-cool-pool"> | |
<max-threads count="30"/> | |
<keepalive-time time="30" unit="seconds"/> | |
<thread-factory name="http-connector-factory"/> | |
</unbounded-queue-thread-pool> | |
</subsystem> | |
... | |
<subsystem xmlns="urn:jboss:domain:web:1.4" default-virtual-server="default-host" native="false"> | |
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" executor="my-cool-pool"/> | |
<virtual-server name="default-host" enable-welcome-root="true"> | |
<alias name="localhost"/> | |
<alias name="example.com"/> | |
</virtual-server> | |
</subsystem> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment