ThreadCount (bw_engine_threadcount)
The threadCount property specifies the number of threads that the ActiveMatrix BusinessWorks engine allocates .The default value of engine threads is eight.
The jobs in memory are executed by the engine. The number of jobs that can be executed concurrently by the engine is limited to the maximum number of threads, indicated by this property. This property specifies the size of the job thread pool, and is applied to the BW Application running within the container.
Threads execute a finite number of tasks or activities uninterrupted and then yield to the next job that is ready. The thread count can be tuned to the optimum value by starting with a default value of eight threads and then doubling it up until maximum CPU is reached.
The CPU and memory resources should be measured under a typical processing load to determine if the default threadCount value is suitable for the environment. Please refer the below formats to set threadcount value on different container platforms:
docker run -e BW ENGINE_THREADCOUNT=16 -p <Host_ApplicationPortToExpose>:<Container_ApplicationPort> <ApplicationImage>
Kubernetes:
env: -name: BW_ENGINE_THREADCOUNT value: 32
Pivotal Platform:
env: BW_LOGLEVEL: ERROR BW_ENGINE_THREADCOUNT: 32