Chapter 19. Configuring JBI Component Thread Pools
Component configuration PIDs
Thread pool properties
Table 19.1. Component Thread Pool Properties
|corePoolSize||8||Specifies the minimum number of threads in a thread pool. If the number of available threads drops below this limit, the runtime will always create a new thread to handle the job.|
|maximumPoolSize||32||Specifies the maximum number of threads in a thread pool. Setting this property to -1 specifies that it is unbounded.|
|queueSize||256||Specifies the number of jobs allowed in a component's job queue.|
- If the component's thread pool is smaller than the corePoolSize, a new thread is created to process the task.
- If less than queueSize jobs are in the component's job queue, the task is placed on the queue to wait for a free thread.
- If the component's job queue is full and the thread pool has less than maximumPoolSize threads instantiated, a new thread is created to process the task.
- The job is processed by the current thread.
Example 19.1. Component Thread Pool Configuration
corePoolSize = 10 maximumPoolSize = 200 ...