I am working on performance tuning for a Sitecore website. My current task is to disable memory monitor hook. For this, I am referring to Sitecore's tuning guide which can be found here. Now, according to the section 7.3.3, in order to disable memory monitor, I need to comment out specific lines in web.config.

However, I was wondering if there is a better way to do this? I know for changing the 'Setting', we would do it by providing a patch file. I was wondering if I could do the same here without directly changing the web.config file or is that the only option for me in this particular case.

Please let me know. Thanks!

2 Answers 2


You could use a patch file to do this too. Using the <patch:delete /> method:

<hook type="Sitecore.Diagnostics.MemoryMonitorHook, Sitecore.Kernel">
    <patch:delete />

Add that to a config in your include folder and it will remove the memory hook config without having to directly edit the web.config file.

  • 1
    Thank you so much. I did not know that I could do that and I really did not want to change the web.config file directly :) Oct 25, 2017 at 14:55

Richard's answer is absolutely correct.

It removes the memory monitor hook completely.

If you want to disable it only, you can change the Check Interval attribute only with 00:00:00 value.

Just drop the patch config file to App_config\Include with the following content:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
            <hook type="Sitecore.Diagnostics.MemoryMonitorHook, Sitecore.Kernel">
                <param  patch:instead="*[@desc='Check interval']" desc="Check interval">00:00:00</param>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.