设置 win2008 r2 iis7.5 最大并发数过程

## 1、参考
https://www.cnblogs.com/valu/p/6901455.html
大概以下 4 步
    1. 调整IIS 7应用程序池队列长度
    2、调整IIS 7的appConcurrentRequestLimit设置
    3、调整machine.config中的processModel>requestQueueLimit的设置
    4. 修改注册表,调整IIS 7支持的同时TCPIP连接数

## 到了 第 2 步 总是提示:
    找不到标识符section:serverRuntime 之类错误

## 找到微软文档,学习 appcmd。exe 操作 Server Runtime <serverRuntime>
    https://docs.microsoft.com/en-us/iis/configuration/system.webServer/serverRuntime
    找到他的 3 个范例

    appcmd.exe set config "Default Web Site" -section:system.webServer/serverRuntime /enabled:"True" /commit:apphost

    appcmd.exe set config "Default Web Site" -section:system.webServer/serverRuntime /frequentHitThreshold:"5" /commit:apphost

    appcmd.exe set config "Default Web Site" -section:system.webServer/serverRuntime /frequentHitTimePeriod:"00:00:20" /commit:apphost

## 照猫画虎写了一条
c:\windows\system32\inetsrv\appcmd.exe set config “att” -section:system.webServer/serverRuntime /appConcurrentRequestLimit:"100000" /commit:apphost

然后再执行,提示:

已经在配置提交路径“MACHINE/WEBROOT/APPHOST”向“MACHINE/WEBROOT/APPHOST/att”的“system.webServer/serverRuntime”节应用了配置更改

## 到了第三步, 找到machine.config文件位置
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config

找到 健 processModel,他的设置是

    <processModel autoConfig="true"/>
改成

    <processModel enable="true" requestQueueLimit="100000" />

## 然后,其他步骤都正确

## 5. 运行命令使用设置生效 
net stop http  & net start  http & iisreset

猜你喜欢

转载自my.oschina.net/u/1440971/blog/1798466
今日推荐