欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

讓W(xué)in2008+IIS7+ASP.NET支持10萬并發(fā)請(qǐng)求

 更新時(shí)間:2013年06月10日 19:33:41   作者:  
由于之前使用的是默認(rèn)配置,服務(wù)器最多只能處理5000個(gè)同時(shí)請(qǐng)求,今天下午由于某種情況造成同時(shí)請(qǐng)求超過5000,從而出現(xiàn)了上面的錯(cuò)誤
今天下午17點(diǎn)左右,博客園博客站點(diǎn)出現(xiàn)這樣的錯(cuò)誤信息:

Error Summary:

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

Detailed Error Information:

Module IIS Web Core
Notification BeginRequest
Handler StaticFile

Error Code 0x00000000

由于之前使用的是默認(rèn)配置,服務(wù)器最多只能處理5000個(gè)同時(shí)請(qǐng)求,今天下午由于某種情況造成同時(shí)請(qǐng)求超過5000,從而出現(xiàn)了上面的錯(cuò)誤。

為了避免這樣的錯(cuò)誤,我們根據(jù)相關(guān)文檔調(diào)整了設(shè)置,讓服務(wù)器從設(shè)置上支持10萬個(gè)并發(fā)請(qǐng)求。

具體設(shè)置如下:

1. 調(diào)整IIS 7應(yīng)用程序池隊(duì)列長度

由原來的默認(rèn)1000改為65535。

IIS Manager > ApplicationPools > Advanced Settings

Queue Length : 65535

2. 調(diào)整IIS 7的appConcurrentRequestLimit設(shè)置

由原來的默認(rèn)5000改為100000。

c:\windows\system32\inetsrv\appcmd.exe set config /section:serverRuntime /appConcurrentRequestLimit:100000

在%systemroot%\System32\inetsrv\config\applicationHost.config中可以查看到該設(shè)置:

復(fù)制代碼 代碼如下:

<serverRuntime appConcurrentRequestLimit="100000" />


3. 調(diào)整machine.config中的processModel>requestQueueLimit的設(shè)置

由原來的默認(rèn)5000改為100000。

復(fù)制代碼 代碼如下:

<configuration>
<system.web>
<processModel enable="true" requestQueueLimit="100000"/>


參考文章:http://technet.microsoft.com/en-us/library/dd425294(office.13).aspx

4. 修改注冊(cè)表,調(diào)整IIS 7支持的同時(shí)TCPIP連接數(shù)

由原來的默認(rèn)5000改為100000。

復(fù)制代碼 代碼如下:

reg add HKLM\System\CurrentControlSet\Services\HTTP\Parameters /v MaxConnections /t REG_DWORD /d 100000


完成上述4個(gè)設(shè)置,就可以支持10萬個(gè)并發(fā)請(qǐng)求,博客園博客服務(wù)器已經(jīng)啟用上述設(shè)置。

參考文章:

IIS 7.0 503 errors with generic handler (.ashx) implementing IHttpAsyncHandler

Tuning Windows Server 2008 for PHP

相關(guān)文章

最新評(píng)論