I'm facing the exact same issue. Even have started a thread on this.
Did you manage to get a clue on this ?
Yes you are on the right path. Setting up a thread pool using the schema as a reference. You should have a xsd file in your docs dir.
There is content online that demonstrates setting up the configuration. AS7 by recollection.
Ideally you want a thread pool with a max count of threads. Otherwise you will exhaust another resource (database/messaging) and cause application errors.