設置 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
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,他的設置是
改成
## 然後,其他步驟都正確
## 5. 運行命令使用設置生效
net stop http & net start http & iisreset
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.