Hi,
Generally speaking, License Service role is handled by a thread of a WEBCON Workflow Service. This means that you can get license service error in two cases:
- a thread responsible for License Service dies,
- WEBCON Workflow Service is not responding at all (or is turned off).
The second case can happen on any WEBCON BPS version and for multiple reasons. Since we're talking about errors every "few seconds", a possible scenario is an infinite loop operation (like timeout actions) or other heavy operations which make Workflow Service to consume too much resources (or even memory leak) and crash. These are just examples, it'd require more diagnostics, such as monitoring resource usage, availability of other service roles etc.
However, on builds 2023.1.3 (up to and including .202) we recognized an issue that may lead to killing a License Service thread, leading to this error.
This may happen when some particular service operations exceed a time limit set in "Service operations timeout in seconds" (https://docs.webcon.com/docs/2024R1/Studio/SystemSettings/ServiceConf/SystemSettings_ServiceManagDetails#2-miscellaneous).
Most common reasons are:
- a recurrent (cyclical) action that creates/moves too many workflow elements or actions executed on these elements are too time-consuming
- a text layer is put on a PDF file and SOLR indexing of that text layer exceeds the limit.
That's why Tomasz and Przemysław suggested increasing the limit. In some cases this may be enough. But it may happen that there are still some configuration/optimization issues on the environment and some operations done by the Workflow Service are taking too much time.
It'd be a good idea to take a peek at action executions statistics (WFActionExecutions table) and recurrent action definitions (WFRecurrentActionsDefinitions table) and analyze if there are actions with long average duration times. Better optimization (lower automation times, lower amount of elements proceeded simultaneously) may give better results.
What's most important is that the issue with license service thread being killed will be addressed in next 2023.1.3 publication (builds higher than .202), so I'd suggest that every environment that's currently on 2023.1.3 should be upgraded to that version.
Kind regards