zoukankan      html  css  js  c++  java
  • IIS 提高连接的并发数,和CPU的使用率。

    要提高iis服务器的同时请求数,可以按如下方法设置(下面以支持同时10万个请求为例):

    1. 调整IIS应用程序池队列长度
    由原来的默认1000改为65535。

    IIS Manager > ApplicationPools > Advanced Settings > Queue Length : 65535
    2. 调整IIS的appConcurrentRequestLimit设置
    由原来的默认5000改为100000。
    c:windowssystem32inetsrvappcmd.exe set config /section:serverRuntime /appConcurrentRequestLimit:100000
    在%systemroot%System32inetsrvconfigapplicationHost.config中可以查看到该设置
    3. 调整machine.config中的processModel > requestQueueLimit的设置
    由原来的默认5000改为100000。
    <processModel requestQueueLimit="100000"/>
    4. 修改注册表,调整IIS支持的同时TCPIP连接数
    由原来的默认5000改为100000
    reg add HKLMSystemCurrentControlSetServicesHTTPParameteris /v MaxConnections /t REG_DWORD /d 100000
  • 相关阅读:
    链接Oracle数据库
    Spring boot Mybatis
    Spring Boot 部署
    javaEE应用组件
    maven项目搭建步骤
    Spring Boot中Redis的使用
    Struts2 Hello,Wold
    使用JSON
    Spring中Quartz的配置
    Guice示例
  • 原文地址:https://www.cnblogs.com/kainjie/p/6419180.html
Copyright © 2011-2022 走看看