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

…衆ロ難τιáo~ 提交于 2020-06-24 08:32:03

问题


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.


回答1:


Investigate references in the linked url to 'MaxConcurrentReqeustsPerCPU' which you may need to set by creating a new registry key, depending on your OS and framework.

http://blogs.msdn.com/b/tmarq/archive/2007/07/21/asp-net-thread-usage-on-iis-7-0-and-6-0.aspx

As already commented - check the actual concurrent request count using performance counters to determine which limit you're hitting i.e. it could be a limit of 5000 or maybe 12 (per cpu).

Edit: I realise this may look like I'm talking about a different setting entirely, but I believe there is overlap here.




回答2:


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).



来源:https://stackoverflow.com/questions/9774826/http-error-503-2-service-unavailable-the-serverruntimeappconcurrentrequestli

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!