让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
来源:互联网 发布:mysql开启二进制日志 编辑:程序博客网 时间:2024/04/29 14:01
今天下午17点左右,博客园博客站点出现这样的错误信息:
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中可以查看到该设置:
3. 调整machine.config中的processModel>requestQueueLimit的设置
由原来的默认5000改为100000。
<system.web>
<processModel requestQueueLimit="100000"/>
4. 修改注册表,调整IIS 7支持的同时TCPIP连接数
由原来的默认5000改为100000。
reg add HKLM/System/CurrentControlSet/Services/HTTP/Parameters /v MaxConnections /t REG_DWORD /d 1000000
完成上述4个设置,就可以支持10万个同时请求,博客园博客服务器已经启用上述设置。
- 让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- 让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- 让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- 让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- 让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- 让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万个同时请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万个同时请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万个同时请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万个同时请求
- Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- Windows Server 2008 IIS 7 ASP.NET 支持10万个同时请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万并发请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万并发请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万并发请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万并发请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万并发请求
- 让Windows Server 2008 + IIS 7+ ASP.NET 支持10万并发请求
- LocalAlloc,VirtualAlloc,malloc,new的异同
- 很不错的英语听力网站
- 计算任何一天是星期几的几种算法【转】
- 中国有帮人在弄linux图形界面:http://www.linuxgraphics.cn/home/index.html (Linux GUI 技术网)
- WPF的三维变换应用
- 让Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- Java从入门到精通 - JavaString 字符串拼接,截取,查找及日期转换
- 骆驼邮件群发器破解版2011.1.1
- GLSL教程 OpenGL Setup for GLSL 清理
- Tab Control控件的详细使用
- ubuntu扩展硬盘
- android重力感应模拟器sensorsimulator
- 浅谈BeanNameUrlHandlerMapping
- 11GR2 issue: can not open the alert at same time.