IIS application pool configuration optimization program

Content Directory

IIS application pool optimize the allocation scheme IIS highly concurrent configuration a .IIS site bindings pool settings II. Support ten thousand concurrent requests

IIS application pool configuration optimization program

Recently as more and more customers of the system, customers have access to reflect slow, especially api requests is growing rapidly. So I want to start from IIS to a wave of optimization.

High concurrency IIS configuration

A .IIS site is bound pool settings

Web site to find the application pool corresponds bound "application pool" → "find the corresponding application pool" → Right "Advanced Settings."
1. The default queue length is 1000 to 65535 modified maximum length.
2. Start bit applications 32: default value False, to True, whether some of those mounting assembly 32 or 32-bit error will php.
3. managed pipeline mode: the Integrated or Classic
4. inactivity timeout (minutes): 20 minutes by default, change the long point.
5. Quick fault protection → Enabled: Default True, changed to False.
6. The default recovery day recovery interval, 0 is not modified recovered.
7. Select the "true" in the "prohibited overlap recycling" where, thus avoiding the problem of suspended animation application pool recycling.

II. Support ten thousand concurrent requests

1. Adjust the appConcurrentRequestLimit IIS7 default settings from the original 5000 changed to 100,000.
[1] performed in cmd:

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

[2]% systemroot% \ System32 \ inetsrv \ config \ applicationHost.config you can view the settings:
<serverRuntime appConcurrentRequestLimit="100000" />

2.调整machine.config中的processModel>requestQueueLimit的设置
[1] 单击“开始”,然后单击“运行”,或者 windows + R。
[2] 在“运行”对话框中,键入notepad%systemroot%\Microsoft.Net\Framework64\v4.0.30319\CONFIG\machine.config
然后单击“确定”。(不同的.NET版本路径不一样,可以选择你自己当前想设置的.NET版本的config)
[3] 找到如下所示的 processModel 元素:<processModel autoConfig="true" />
[4] 将 processModel 元素替换为以下值:<processModel enable="true" requestQueueLimit="15000" />
[5] 保存并关闭 Machine.config 文件

3.修改注册表,调整IIS 7支持的同时TCPIP连接数由原来的默认5000改为100000。\
在cmd中执行

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

4.运行命令使用设置生效
net stop http & net start http & iisreset
注意 :使用命令 可能会报错(报错原因就是配置设置的有问题)
一定要注意配置文件的修改 否则后果很严重 !!!!

Guess you like

Origin www.cnblogs.com/Abert33/p/11459894.html