HTTP Error 503.2 - Service Unavailable. The serverRuntime@appConcurrentRequestLimit setting is being exceeded

Phoenix picture Phoenix · Mar 19, 2012 · Viewed 38.7k times · Source

I have a intranet SiteCore website set up on IIS 7 which randomly throws the following error message

    HTTP Error 503.2 - Service Unavailable
    The serverRuntime@appConcurrentRequestLimit setting is being exceeded.

To fix this issue, I have made following changes

  • Increased the Queue Length of application pool myrjetAppPool from 1000 to 65535.
  • Modified Machine.Config to increase requestQueueLimit property of ProcessModel element to 100000
  • Increased appConcurrentRequestLimit to 10000 by running

    C:\Windows\System32\inetsrv\appcmd.exe set config /section:serverRuntime /appConcurrentRequestLimit:100000
    

But I'm still getting the same error. ANy help is greatly appreaciated.

Answer

Richard Hauer picture Richard Hauer · Mar 21, 2012

You might check to see where all your threads are going. We had occurrences where threads for Media Library assets were hanging and blocking up the queue.

In IIS Manager, select the server node from the tree, then the "Worker Processes" feature icon, then right-click the application pool of interest and select "View current requests". You might find something is getting stuck. I sometimes hit F5 on this screen a few dozen times in very quick succession to see the rate the requests are going through (of course Performance Monitor is better for viewing metrics but it won't tell you what URLs are being processed).