There is a known issue with Sitecore 9 running on Windows 2012 R2, that makes Sitecore to restart several times before becoming stable. This is how to fix it.

We've been noticing lately that Sitecore CM app suddenly becomes slowly, and when this happens, checking the logs in the backend, Sitecore keeps restarting itself for several times, and then becomes stable again. This also happens after a deployment, when the appPool is recycled, and then Sitecore needs about 10 restarts to become stable again.


The message in the logs is usually the same:


WARN  Sitecore shutting down
WARN Shutdown message: Directory rename change notification for 'C:\inetpub\wwwroot\zzzz'.
Overwhelming Change Notification in zzzz
HostingEnvironment initiated shutdown


After contacting with Sitecore support, it happens that there is a known issue in Windows 2012 R2 that recycles IIS when a lot of changes are detected inside the "/App_Data" folder. This is documented from Sitecore here: Sitecore 9 is extending support to Azure Web Apps, so now the old "Data" folder is not outside the site, but it's using now the standard "App_Data" folder, which is inside the root folder of the site, and Sitecore processes a lot of I/O work during startup, which was causing IIS to recycle the appPool every time.


To fix the issue:

What should be an easy process, became more complicated, because the patch did not install correctly, and we got this error:

Windows Patch error

To fix this, Microsoft Support provided the following steps:


1. Expand the patch to a temp folder, using the command:

expand -f:* "C:\path\to\Windows8.1-KB3052480-v2-x64.msu" C:\path\to\tempfolder


2. Install it manually

dism /online /add-package /packagepath:"C:\path\to\tempfolder\\"


3. Finally, check at Windows Update Installed updates that it is installed correctly, searching for "KB3052480"


This has become a mandatory patch for any Sitecore project running under a Windows 2012 R2 environment.


Author bio

Sergi Gisbert
Sergio Gisbert
Technical Architect
I'm primarily focused on the delivery of successful projects with Sitecore CMS. When I’m not at work, I’m running a side project started back in 2009 called “Fatherhood," which takes up most of my non-working hours. I'm always keen to escape to snowy mountains and ski down them!


comments powered by Disqus

Related Articles

Sign up to our ClearThought newsletter

Get inspired and learn something new by subscribing to our FREE newsletter. It’s full of ClearPeople's thought-leadership whitepapers, blogs, events, and much more. We promise to not use your email for spam.

Closing this message and/or accessing our website tells us you are happy to receive all cookies on the ClearPeople website.
However, if you would like to, you can change your cookies settings at any time.