Entering content frame

Background documentation Thread Manager Locate the document in its SAP Library structure

This manager supplies the threads, in which SAP J2EE Engine system operations are executed. It provides a set of properties for starting and managing system threads.

The Thread Manager runs on both server processes and dispatchers.

Dispatcher

Property

Description

Default Value

ChangeRQSizeStep

The resize step of the Request Queue. This approach eliminates the number of small resizes by making one big resize.

50

ChangeThreadCountStep

The step width, which is used to change the size of the thread pool. If the current number of running threads is not sufficient, this number of threads will be raised or killed on the next resize of the Thread Pool.

100

CheckForDecreaseTimeout

Specifies the period between checks performed on the Thread Manager to determine if the current number of threads must be decreased in order to avoid nonworking threads and to release memory. When the thread count grows, check time must decrease.

3 min

InitialRQSize

The initial size of waiting objects in the Request Queue. This is a structure, which holds the requests to start a thread, until a free thread is available and able to process the request.

100

InitialThreadCount

The initial size of the thread pool. Specifies how many threads are started at the ThreadManager initialization. After startup, each thread is put in a waitQueue, until there is a Runnableobject for processing.

100

MaxRQSize

The maximum size of the request queue. It is used to avoid infinite wait.

200

MaxThreadCount

The maximum number of threads that the Thread Manager will manage. This limit is needed to avoid overload due to too many running threads.

200

MinRQSize

The minimum size of the request queue.

Recommendation

It does not take much memory, so better keep this value high.

100

MinThreadCount

Absolute minimum number of the threads in the Thread Manager’s pool. Even if the J2EE Engine has absolutely no requests, this is the minimum number of threads that will be kept running.

50

NeededPositiveDecreaseChecks

Specifies the number of consecutive checks returned as “true”, after which the number of threads is decreased. This property is used to avoid temporary decrease of requests and then to return to the normal (high) level.

3

 

Server

Property

Description

Default Value

ChangeRQSizeStep

See above.

100

ChangeThreadCountStep

See above.

100

CheckForDecreaseTimeout

See above.

3 min

InitialRQSize

See above.

500

InitialThreadCount

See above.

40

MaxRQSize

See above.

6000

MaxThreadCount

See above.

40

MinRQSize

See above.

100

MinThreadCount

See above.

40

NeededPositiveDecreaseChecks

See above.

3

 

See also:

Thread System in the Administration Manual

 

 

Leaving content frame