Configuring the Component Thread Pools
From version 3.1, ServiceMix now uses separate and configurable thread pools for each component and flow, which allow much more tuning when needed.
...
configs.get("foo.bar")
configs.get("foo")
defaultConfig
Examples
Following is an example configuration of the factory:
...
Note that maximumPoolSize
and queueSize
can be set to -1 to not bound these values.
Additional Information
The thread pools behavior is a function of how the ThreadPoolExecutor
from the JavaSE works. When the ThreadPoolExecutor
is configured by the ServiceMix ExecutorFactoryImpl.createService()
method, it does so using the corePoolSize
and the maximumPoolSize
properties from the conf/servicemix.properties
file. The ThreadPoolExecutor
then uses the values set using those properties to influence how the size of the thread pool is adjusted at runtime. For more information, see the ThreadPoolExecutor
's Javadoc.