zoukankan      html  css  js  c++  java
  • IIS7 优化网站请发并发数

    聚聚呀最近常常出现网站请求错误,IIS处理不过来用户的请求。错误的页面

    an existing connection was forcibly closed by the remote host

     

    现在做了以下的调整

    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。

    <configuration>
        
    <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万个同时请求

     

  • 相关阅读:
    关联规则算法---Eclat算法
    Apriori算法第二篇----详细分析和代码实现
    scrapy框架初识
    git入门
    phantomjs的和谷歌浏览器的简单使用
    selenium模块的而简单使用
    代理ip的使用以及多进程爬取
    爬虫之re块解析
    爬虫初识和request使用
    xpath的基础使用
  • 原文地址:https://www.cnblogs.com/Leung/p/1602595.html
Copyright © 2011-2022 走看看