首页 技术 正文
技术 2022年11月14日
0 收藏 434 点赞 4,085 浏览 1622 个字

错误信息:
Error Summary:
HTTP Error 503.2 – Service Unavailable
The serverRuntime@appConcurrentRequestLimit setting is being exceeded.
Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler StaticFile
Error Code 0x00000000

1. 调整IIS 7应用程序池队列长度
由原来的默认1000改为65535。
IIS Manager > ApplicationPools > Advanced Settings
Queue Length : 65535

2. 调整IIS 7的appConcurrentRequestLimit设置
由原来的默认5000改为100000。

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

在%systemroot%\System32\inetsrv\config\applicationHost.config中可以查看到该设置:
<serverRuntime appConcurrentRequestLimit=”100000″ />

3. 调整machine.config中的processModel>requestQueueLimit的设置
由原来的默认5000改为100000。
路径%systemroot%\Microsoft.Net\Framework64\v2.0.50727\CONFIG\machine.config
或者%systemroot%\Microsoft.Net\Framework64\v4.0.30319\CONFIG\machine.config

<system.web>

  <processModel enable=”true” requestQueueLimit=”100000″/>

4. 修改注册表,调整IIS 7支持的同时TCPIP连接数
由原来的默认5000改为100000。

注册表路径:\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters

添加名称MaxConnections 类型REG_DWORD的十进制值100000

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

注册表路径:\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters

添加名称TcpTimedWaitDelay 类型REG_DWORD的十进制值30

reg add HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters /v TcpTimedWaitDelay /t REG_DWORD /d 

添加名称MaxUserPort 类型REG_DWORD的十进制值65534

reg add HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters /v MaxUserPort /t REG_DWORD /d 

完成上述4个设置,就可以支持10万个同时请求,博客园博客服务器已经启用上述设置。
此项用nginx反向代理iis,也需要调整TCPIP链接数

参考文章:
IIS 7.0 503 errors with generic handler (.ashx) implementing IHttpAsyncHandler

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,489
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,904
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,737
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,490
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,128
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,291