Increased resource consumption on Sitecore instances with the Indexing sub-role might be encountered when the size of the EventQueue table has grown considerably because of the high rate of item changes. When Sitecore attempts to clean up the EventQueue, the task might fail with a timeout.
To mitigate the issue, take these steps:
TRUNCATE TABLE [EventQueue]
To prevent the issue from occurring in the future, take these steps:
Take steps 2 and 3 by creating a configuration patch file in the \App_Config\Include\zzz folder. For example:
<?xml version="1.0" encoding="utf-8"?> <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> <sitecore> <settings> <setting name="InstanceName" value="CM" role:require="ContentManagement"/> </settings> <scheduling> <agent type="Sitecore.Tasks.CleanupEventQueue, Sitecore.Kernel" set:interval="01:00:00" role:require="ContentManagement"> <DaysToKeep> <patch:delete/> </DaysToKeep> <IntervalToKeep>04:00:00</IntervalToKeep> </agent> </scheduling> </sitecore> </configuration>