Set limit concurrent connections for websocket on iis 8

前端 未结 1 1369
梦谈多话
梦谈多话 2021-01-24 08:38

I created asp.net app for work with websockets
I published my app on IIS8 (server RAM 64GB, processor i7)
When I testing I can open 5000 concurrent connections
and t

相关标签:
1条回答
  • 2021-01-24 09:23

    I found decision
    For open 50k connections for 1 core
    Need set next parametrs

    cd %windir%\System32\inetsrv\ appcmd.exe set config /section:system.webserver/serverRuntime /appConcurrentRequestLimit:50000

    in files:
    %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet.config
    %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
    need add

    <?xml version="1.0" encoding="UTF-8" ?>
    <configuration>
        <system.web>
            <applicationPool maxConcurrentRequestsPerCPU="50000" />
        </system.web>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题