title: Azure web app worker process recycling unexpectedly
body: <p>We have an ASP.NET MVC web site running in an Azure Standard Medium App Service plan.</p>
  
  <p>Occasionally the worker process is recycled without warning.</p>
  
  <p>I added code to <code>Application_End</code> in <code>global.asax.cs</code> to log the <code>HostingEnvironment.ShutdownReason</code>.</p>
  
  <p>The logged reason is <code>HostingEnvironment</code> which as I understand it means the hosting environment initiated the shutdown.</p>
  
  <p>There are no application errors or events logged. "Always On" in Application Settings is set to "On".</p>
  
  <p>How can I determine the root cause of the shutdown? </p>