调整IIS 7应用程序池队列长度
由原来的默认1000改为65535。
General->Queue Length设置为65535(队列长度所支持的最大值)
Process Model->Idle Time-out设置为0(不让应用程序池因为没有请求而回收)
Recycling->Regular Time Interval设置为0(禁用应用程序池定期自动回收)
2. 调整IIS 7的appConcurrentRequestLimit设置
由原来的默认5000改为100000。
设置命令:
在%systemroot%\System32\inetsrv\config\applicationHost.config中可以查看到该设置:
<serverRuntime appConcurrentRequestLimit="100000" />(保存后该设置立即生效)
3. 调整.NET Framework的machine.config
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
<processModel autoConfig="true" />
改为
<processModel enable="true" requestQueueLimit="100000"/>(保存后该设置立即生效)
参考文章:http://technet.microsoft.com/en-us/library/dd425294(office.13).aspx
4. 修改注册表,调整IIS 7支持的同时TCPIP连接数
由原来的默认5000改为100000。
reg add HKLM\System\CurrentControlSet\Services\HTTP\Parameters /v MaxConnections /t REG_DWORD /d 100000
(需要在命令行运行 net stop http & net start http & iisreset 使设置生效)