We have run load test with single user submitting 100 forms.
EJB pool is set as:
<thread-pools>
<thread-pool name="default">
<max-threads count="250"/>
<keepalive-time time="100" unit="milliseconds"/>
</thread-pool>
</thread-pools>
Before test:
/subsystem=ejb3/thread-pool=default/:read-resource(include-runtime=true)
{
"outcome" => "success",
"result" => {
"active-count" => 0,
"completed-task-count" => 2L,
"current-thread-count" => 2,
"keepalive-time" => {
"time" => 100L,
"unit" => "MILLISECONDS"
},
"largest-thread-count" => 2,
"max-threads" => 250,
"name" => "default",
"queue-size" => 0,
"rejected-count" => 0,
"task-count" => 2L,
"thread-factory" => undefined
}
}
After test:
{
"outcome" => "success",
"result" => {
"active-count" => 0,
"completed-task-count" => 389L,
"current-thread-count" => 250,
"keepalive-time" => {
"time" => 100L,
"unit" => "MILLISECONDS"
},
"largest-thread-count" => 250,
"max-threads" => 250,
"name" => "default",
"queue-size" => 0,
"rejected-count" => 0,
"task-count" => 389L,
"thread-factory" => undefined
}
}
It looks like pool is filled. Forms are submitted one by one. Then why it is not reused? Can anybody help on analyzing this case?