当前位置首页 > IIS知识

web性能忧化(IIS篇)

阅读次数:343 次  来源:admin  发布时间:

1. 调整IIS 7应用程序池队列长度

由原来的默认1000改为65535。

IIS Manager > ApplicationPools > Advanced Setting

2. 调整IIS 7的appConcurrentRequestLimit设置

由原来的默认5000改为100000。

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

在%systemroot%\System32\inetsrv\config\applicationHost.config中可以查看到该设置:

lt;serverRuntime appConcurrentRequestLimit="100000" />

3. 调整machine.config中的processModel>requestQueueLimit的设置

由原来的默认5000改为100000。

<configuration>
    <system.web>
        <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

5. 运行命令使用设置生效

net stop http  & net start  http & iisreset 

完成上述4个设置,就可以支持10万个并发请求,博客园博客服务器已经启用上述设置。

来源:http://www.cnblogs.com/dudu/archive/2009/11/10/1600062.html

上一篇:Linux系统计算文件夹下文件数量数目
下一篇:org.apache.rocketmq.client.exception.MQClientException:Noroutein