In a JavaEE Application I have to spin up a lot of Threads. For that, I'm using the ManagedExecutorService.
@Resource
ManagedExecutorService mes;
In the standalone.xml configuration I have configured 25 core-threads and max-threads of 50.
<managed-executor-service
name="default"
jndi-name="java:jboss/ee/concurrency/executor/default"
context-service="default"
hung-task-termination-period="0"
hung-task-threshold="60000"
keepalive-time="5000"
core-threads="25"
max-threads="50"
/>
My expectation is that 25 threads will process immediate the requests and other 25 are started and help processing the requests. But what I see is, that the requests are processed only on the "core-threads" base.
what exactly is the meaning of this max-threads value?
regards