What is the difference between thread-pool and worker-thread pool?
Issue
-
What is the difference between configuring the remoting thread-pool for the remoting-connector in the ejb3 subsystem and configuring the worker-thread-pool in the remoting subsystem,the threads in the ejb3 subsystem that handle remote invocations are the ones executing the EJB methods? or do they hand off the execution to other threads?
-
In the ejb3 subsystem
<remote connector-ref="remoting-connector" thread-pool-name="ejb-thread-pool">
<channel-creation-options>
<option name="WORKER_READ_THREADS" value="4" type="xnio"/>
<option name="WORKER_WRITE_THREADS" value="4" type="xnio"/>
<option name="MAX_INBOUND_MESSAGES" value="167" type="remoting"/>
<option name="MAX_OUTBOUND_MESSAGES" value="167" type="remoting"/>
</channel-creation-options>
</remote>
<thread-pools>
<thread-pool name="default">
<max-threads count="10"/>
<keepalive-time time="100" unit="milliseconds"/>
</thread-pool>
<thread-pool name="ejb-thread-pool">
<max-threads count="167"/>
<keepalive-time time="75" unit="minutes"/>
</thread-pool>
</thread-pools>
- In the remoting subsystem
<worker-thread-pool read-threads="10" task-keepalive="60" task-max-threads="16" task-limit="16384" write-threads="10" />
Environment
- Red Hat JBoss EAP 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.