We are getting this exception frequently on both CM and CD that Sitecore is shutting down and Prefetch and other cache are getting cleared.

Sitecore Prefetch master cache max size is 200 MB and when it was cleared its running cache size was 175MB (less than the max cache size). What can be the reasons for this and how can I resolve this?

Is sitecore shut down is only due to this cache clear or there could be other reasons?

Sitecore version - 9.1 enter image description here


3 Answers 3


If your Sitecore instance is built around Microsoft Azure cloud services (PaaS), you can check the CPU utilization in Azure. There are two ways to check the CPU utilization of a web app in Azure:

App Service Plan -> Overview -> CPU Percentage chart (overall CPU utilization of the resource in the app service plan). Go to the specific Azure resource, such as a web app, and then click on "Diagnose and solve problems" -> "Availability and Performance" -> "CPU Usage". I would also suggest checking Sitecore to prevent long-running processes and any custom code that may cause this issue.


As per the screenshot, it shows primary reason is insufficient memory. Sitecore can shut down if the memory available memory is not sufficient and the worker process may crash. One can add more memory to solve this issue or do code refactoring for other memory issues. Also, try this solution KeepAlive

Other reasons could be:

  1. Unhandle Exception.
  2. Any write to application bin directory.
  3. Any change to web.config.
  4. Anti-virus program that touch files.
  5. One of ProcessModel attribute in machine.config that cause application recycling.

Hope it helps!


There may be one or more reasons, due to which your Sitecore CM/CD Servers crash. You can verify the followings.

  1. Hosting environment initiated shutdown: This falls in the category of Soft Crash category and you will be able to see this error message in your Sitecore log file.
    • Check Application Pool settings
    • Check ASP.NET worker process restart reasons
  2. OutOfMemoryException – This falls in Hard Crash category, where your Sitecore instance will restart abruptly and when you open the Sitecore log files, it will show you lots of OutOfMemoryException errors.
    • Check caching configurations
    • Check IIS is running in X64 Mode
    • Get Crash Dump and analyze it
  3. Check Memory usage: If you see the Memory is always under pressure — Either it can be memory leak OR Order a RAM.

For details explanation of all of the above things, you can refer to the this.

Your Answer

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

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