標籤:進階 分享圖片 erro 避免 strong RoCE 官網 sha enable
補救伺服器的時候,突然發現部分機器出現了錯誤,大致描述如下
HTTP Error 503.2 - Service Unavailable
正在超過 [email protected] 設定的值。
....
伺服器IIS基本都用的預設設定,為了避免下次再次出現此類錯誤,找了相關配置,提高IIS並發數量設定
1. 修改IIS應用程式集區隊列長度
進階設定裡,隊列長度修改為 65535
2. 修改IIS的 appConcurrentRequestLimit 設定
預設值是5000,修改為50000(或者更大的值)
c:\windows\system32\inetsrv\appcmd.exe set config /section:serverRuntime /appConcurrentRequestLimit:50000
在%systemroot%\System32\inetsrv\config\applicationHost.config中可以查看到該設定:
<serverRuntime appConcurrentRequestLimit="50000" />
3. 修改machine.config中的processModel>requestQueueLimit的設定
由原來的預設5000改為50000
<processModel enable="true" requestQueueLimit="50000"/>
4. 修改註冊表,調整IIS 7支援的同時TCPIP串連數
reg add HKLM\System\CurrentControlSet\Services\HTTP\Parameters /v MaxConnections /t REG_DWORD /d 100000
5. 重啟服務,設定生效
net stop http & net start http & iisreset
微軟官方參考文章
Modifying the ASP.NET Request Queue Limit
http://technet.microsoft.com/en-us/library/dd425294(office.13).aspx
Microsoft.com 微軟官網IIS應用程式集區配置推薦,應用程式集區配置項說明
Managing, Tuning, and Configuring Application Pools in IIS 7.0
Windows Server 2008 IIS 並發請求設定