让Windows Server 2008 + IIS 7+ ASP.NET 支持10万并发请求
2015-06-22 17:15
537 查看
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
由于之前使用的是默认配置,服务器最多只能处理5000个同时请求,今天下午由于某种情况造成同时请求超过5000,从而出现了上面的错误。
为了避免这样的错误,我们根据相关文档调整了设置,让服务器从设置上支持10万个并发请求。
具体设置如下:
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:100000
在%systemroot%\System32\inetsrv\config\applicationHost.config中可以查看到该设置:
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
由于之前使用的是默认配置,服务器最多只能处理5000个同时请求,今天下午由于某种情况造成同时请求超过5000,从而出现了上面的错误。
为了避免这样的错误,我们根据相关文档调整了设置,让服务器从设置上支持10万个并发请求。
具体设置如下:
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:100000
在%systemroot%\System32\inetsrv\config\applicationHost.config中可以查看到该设置:
相关文章推荐
- ASP.NET错误
- Windows 使用 Yeoman generators 创建 ASP.NET 应用程序
- ASP.NET MVC5--添加验证
- ASP.NET MVC4中用 BundleCollection使用问题手记
- raspberry pi2 andrid
- 《微软ASP.NET站点部署指南》系列技术文章整理收藏
- ASP.NET 学习博客
- AOP那些学术概念—通知、增强处理连接点(JoinPoint)切面(Aspect)
- 【ASP.NET】基本对象
- raspberry fm电台
- raspberry 高级应用
- raspberry 2b 启动信息
- ASP.NET MVC5--为数据库新增字段(涉及数据库迁移技术)
- 总结ASP.NET中用到的几种代码
- asp.net web 服务器端全局定时执行任务
- ASP.NET定时执行任务
- 认识ASP.NET 5项目结构和项目文件xproj
- 【MVC】ASP.NET MVC 4项目模板的结构简介
- ASP.NEt MVC5--创建下拉列表
- AspNetPager