QlikView Server service crashes often and randomly with Error Restart: Server aborted trying to recover by restart. Reason for restart: No document purger activity for 120 seconds.
This can occur in some cases where the user has an application with a large number of objects.
QlikView automatically saves and loads the objects layout state in every reload. When this takes longer than 2 minutes, the Restart error appears.
Environment:
QlikView 11.20 SR 3
QlikView 12.00, 12.10
QlikView November 2018 and November 2019 (12.20 and 12.30)
Resolution:
The Layout State can be disabled from 11.20 SR13 onwards.
The default behavior can be changed by modifying the EnableApplyLayoutState setting in the QlikView Server settings.ini file, where 1 (default) = Enabled and 0 = Disabled.
As it is enabled by default this has to be set to 0 (for Desktop users this can be configured also from the Easter Egg menu).
In a QlikView Server environment, the setting is applied with the following steps:
- Stop the QlikView Server service
- Navigate to C:\ProgramData\QlikTech\QlikViewServer
- Locate the settings.ini
- Open in a text editor
- Add the line EnableApplyLayoutState=0 inside the [Settings 7] section and above the [Authentication] section.
- Start the QlikView Server service