Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
来源:互联网 发布:最先进人工智能机器人 编辑:程序博客网 时间:2024/04/29 07:37
引用Blog:
http://www.cnblogs.com/dudu/archive/2009/11/10/1600062.html
Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
今天下午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。
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万并发请求
- UBuntu ftp
- One Nightmare
- linux多线程学习(三)——互斥锁线程控制
- Struts1和Struts2的区别和对比
- DIV的高度自动拉伸(height属性)在IE 7下无效和解决方法
- Windows Server 2008+IIS 7+ASP.NET支持10万个同时请求
- 转换人民币大小金额
- 解决phpMyAdmin登陆报错问题
- ASP.NET代码片段
- 关于openlaszlo的中文教程
- Windows Moblie 开发工具
- 11月10号,感觉今天很忙碌
- 梦中
- linux多线程学习(四)——信号量线程控制