Sitecore stability issues when using Azure Web Apps

  • Description

    As of 28 June 2017, it has been identified that Sitecore solutions deployed to Azure Web Apps experience stability issues. The article describes symptoms and possible solutions.

    The behavior is a result of the improvements in the Azure Web Apps File Change Notification mechanism. 

    For any additional questions, please open a ticket on the Sitecore Support Portal.

    • The following errors are present in the log files:
      • ERROR Error in FileWatcher. Internal buffer overflow. Exception: System.IO.InternalBufferOverflowException
        Message: Too many changes at once in directory:D:\home\site\wwwroot\
      • WARN Shutdown message: Directory rename change notification for 'D:\home\site\wwwroot'.
        Overwhelming Change Notification in wwwroot HostingEnvironment initiated shutdown
    • Continuous Sitecore application restarts
    • Server responds with 503 Service Unavailable to incoming requests
  • Solution 1. Using Azure Management Portal

    Disable the Dynamic Cache by creating an App Setting for the impacted App Service:

  • Solution 2. Updating Sitecore Configuration 

    Disable the \wwwroot\App_config\Include\Sitecore.Diagnostics.config file:

    • Rename the file to Sitecore.Diagnostics.config.disabled
    • This configuration file enables collection of diagnostics information that can be useful to troubleshoot Sitecore behavior. It can be safely disabled if there is no ongoing troubleshooting processes that requires enabled diagnostics.

Applies to:

CMS 8+

June 29, 2017
July 14, 2017

Reference number:

170790, 170969

Keywords: 

  • Azure
  • ,
  • Managed Cloud
  • ,
  • Performance