Loading...

Difference between Max jobs and Flow Limit and Thread Count

The below diagram from Tibco documentation gives good overview of concepts like Max jobs, Flow Limit, Thread Count, Activation Limit etc.
Max jobs and Flow Limit and Tread Count difference in TIBCO BW
The process instances created are typically held in memory. However, this may not be the case if the following parameters are set:
Max Jobs:
If the number of process instances in memory have reached the value of Max Jobs, then the process instances created are temporarily held on a disk. These process instances will be moved back into memory when sufficient memory is available.
Flow Limit:
When set, this property limits the number of process instances that can be created. If the number of process instances being created exceeds the value of FlowLimit, the engine suspends the creation of new process instances. However, it continues executing the process instances in memory. The engine resumes creating new process instances when process instances, approximately half the value specified for FlowLimit, have completed.

The number of process instances that can be created in memory is also limited by the memory available on the machine and the memory allocated to the JVM on which the process engine executes.
ThreadCount:
The process instances in memory are executed by the BusinessWorks engine. The number of process instances that can be executed concurrently by the engine is limited by the maximum number of threads, specified by property ThreadCount. Threads execute a finite number of tasks or activities uninterrupted and then yield to the next process instance that is ready.
StepCount:
The engine property StepCount determines the number of tasks that are executed by a thread uninterruptedly. However, the exceptions to StepCount occur when the job is blocked or in a transaction. When a job is in a transaction, the thread will not be released even if the StepCount is exceeded. However, if a process instance is waiting or is in a blocked state, it can be paged out and the freed memory used to process another process instance.
Activation Limit:
Activation Limit can be set if a process instance that is blocked should remain in memory till completion. Setting the ActivationLimit affects the engine performance substantially.

Training 5396887444265583726

Post a Comment Default Comments

Home item

Blog Archive

Popular Posts

Random Posts

Flickr Photo