简体   繁体   中英

IIS Maximum Concurrent Connections

I have a .Net project and I want to changed the maximum concurrent connections with cmd or exe in IIS default website.

How can I changed it with script, exe or cmd commant?

According to this answer: https://stackoverflow.com/a/7898696/888617 you can edit your machine.config to set the max connections.

<configuration>
  <system.net>
    <connectionManagement>
      <add address="*" maxconnection="65535"/>
    </connectionManagement>
  </system.net>
</configuration>

You can get the config file with:

string configPath =  System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM