Aug 4th, 2010, 08:55 AM
Max pool size in ThreadPoolTaskExecutor
I'm defining my thread pool with the following lines in my application context:
<bean id="executor" class="org.springframework.scheduling.concurrent.T hreadPoolTaskExecutor">
<property name="corePoolSize" value="5" />
<property name="maxPoolSize" value="200" />
But when I check the usage of the thread pool during execution using executor.getActiveCount(), I only see the active count going up to core pool size. It never goes beyond that even though there are more threads queued up. I'm sure I'm missing something - what is it?
Tags for this Thread