简体   繁体   English

在IIS 8上设置WebSocket的限制并发连接数

[英]Set limit concurrent connections for websocket on iis 8

I created asp.net app for work with websockets 我创建了与websockets一起使用的asp.net应用程序
I published my app on IIS8 (server RAM 64GB, processor i7) 我在IIS8上发布了我的应用程序(服务器RAM 64GB,处理器i7)
When I testing I can open 5000 concurrent connections 测试时,我可以打开5000个并发连接
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? 但是我想知道如何增加一个流程的限制?

I found decision 我找到了决定
For open 50k connections for 1 core 用于1核的开放式50k连接
Need set next parametrs 需要设置下一个参数

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

in files: 在文件中:
%windir%\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet.config %windir%\\ Microsoft.NET \\ Framework \\ v4.0.30319 \\ aspnet.config
%windir%\\Microsoft.NET\\Framework64\\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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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