Set limit concurrent connections for websocket on iis 8

…衆ロ難τιáo~ 提交于 2019-12-02 13:12:16

问题


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 then server dont wanted other open connections
When I increase the number of worker processes I can open more connections

But I'm wondering how I can increase a limit for one process?


回答1:


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>


来源:https://stackoverflow.com/questions/30500495/set-limit-concurrent-connections-for-websocket-on-iis-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!