K2 blackpearl Installation and Configuration Guide > Troubleshooting > Worklist > Troubleshooting Database CPU Utilization | Send feedback |
When running in a high load environment with large numbers of worklist retrievals (mostly in a clustered environment), the K2 database server may utilize 100% of the CPU capacity. This may result in worklist timeouts.
If there are a large amount of worklist items, the Microsoft SQL server’s CPU(s) might run at 100% when opening a worklist. This is due to a default behavior of MSSQL that takes one SQL query and executes it over all available CPU’s to try and execute it faster. Therefore, while executing one large query, no one else can connect to the worklist because MSSQL is using all the CPU capacity.
In order to manage this behavior a setting has been added to the K2Server.setup file. The new setting is called 'MAXDOP' (MAXimum Degree Of Parallelism) and it allows an administrator to specify how many CPU’s to use for a single SQL query. This setting is however only applicable to the worklist. If the MAXDOP setting is set to '0' (default), then the MSSQL server continues using the default behavior (where MSSQL determines how many CPU’s to use), but if the MAXDOP value is set it to 1, for example, it will force MSSQL to only use one CPU to execute a SQL query.
For more information on the Microsoft SQL MAXDOP option read the following links: