对于WebSocket的IIS上的8集限制并发连接 [英] Set limit concurrent connections for websocket on iis 8

查看:1188
本文介绍了对于WebSocket的IIS上的8集限制并发连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建工作asp.net应用程序使用WebSockets结果
我发表我的应用程序上IIS8(服务器64GB内存,处理器I7)结果
当我测试,我可以打开5000个并发连接结果
然后服务器不要想其他的开放连接结果
当我增加工作进程的数目我可以打开更多的连接。

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核心
需要进行设置下一个parametrs

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

CD%WINDIR%\\ SYSTEM32 \\ INETSRV \\
Appcmd.exe的设置配置/section:system.webserver/serverRuntime / appConcurrentRequestLimit:50000

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

在文件:

%WINDIR%\\ Microsoft.NET \\框架\\ v4.0.30319 \\ aspnet.config

%WINDIR%\\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ aspnet.config

需要添加

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>

这篇关于对于WebSocket的IIS上的8集限制并发连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆