If you tune thread pool sizes, the server
components can
reuse threads. The reuse of threads eliminates the need to create
new threads at run time to handle each new request.
To
tune the thread pool size settings, you can use the
Thread
pools option in the
WebSphere® Application Server administrative
console.
The default thread pool is used when requests arrive for
message-driven beans or if a transport chain was not defined for a
thread pool. The WebContainer thread pool is used when requests come
over HTTP.
You can tune the following settings to improve performance
in your system:
- Minimum size
- The minimum number
of threads to maintain in the thread pool.
- Default thread
pool: 20
- WebContainer thread pool: 120
- Maximum size
- The maximum number of
threads to maintain in the thread pool.
- Default thread pool:
50
- WebContainer thread pool: 120
- Thread inactivity timeout
- The amount of inactivity
(in milliseconds) that can elapse before
a thread is reclaimed.
- Default thread pool: 30000
- WebContainer
thread pool: 60000
- Allow thread
allocation beyond maximum thread size
- If enabled, the number
of threads can increase beyond the maximum
size configured for the thread pool.