Windows Server 2008 IIS 並發請求設定

來源:互聯網
上載者:User

標籤:進階   分享圖片   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 並發請求設定

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.