Tomcat increases the number of threads from minSpareThreads to maxThreads step by step.
What is the trigger that makes Tomcat increase the number of threads?
Tomcat increases the number of threads from minSpareThreads to maxThreads step by step.
What is the trigger that makes Tomcat increase the number of threads?
It's probably slightly different than you write:
(I have to admit, I didn't look up the documentation - and you didn't say if this applies to HTTP threads, database threads or others, but this is what I'm used to see)
Sample: Let say you have configured 10 / 5 / 20 threads (min, minSpare, max). On startup, 10 threads will be added to the pool. For the first 5 consumed threads, nothing else happens. Once the 6th thread is consumed, you have less than 5 spare threads and this is the reason to start up more (until this condition is met again).