MSDN documentation doesn't seem to have good coverage on ASP.net 4.5 support of HTML5 WebSockets protocol!
This is what I'm looking for:
Update:
Requests from flash RTMP sockets (an alternative to websocket) could be well configured on Adobe Media Server application server. Isn't any sort of configurations for number of requests, ideal time, size of chunks, ... for ASP.net inside application or IIS 8 configuration?
A blocked connection can be caused by: AdBlocker / Cookie blocker browser extensions. Antivirus and Firewall software. Proxy and VPN connections.
With at least 30 GiB RAM you can handle 1 million concurrent sockets.
There are several challenges you have to overcome because the WebSockets protocol is more CPU demanding on the client's side than on the server's side. At the same time you need a lot of RAM to store information about open connections if you have millions of them.
By default, a single server can handle 65,536 socket connections just because it's the max number of TCP ports available.
To whomever may be interested:
WebSocket connections are initiated by a HTTP handshake, hence some of the IIS throttles that apply to HTTP requests will also apply to WebSockets. appConcurrentRequestLimit
in the IIS Configuration can be used to set the maximum concurrent requests per application:
<serverRuntime appConcurrentRequestLimit="250000" />
Maximum concurrent connections to an ASP.net 4 Web Application can be set with ApplicationPool's maxConcurrentRequestsPerCPU property:
<system.web> <applicationPool maxConcurrentRequestsPerCPU="20000" /> </system.web>
When the total amount of connections exceed the maxConcurrentRequestsPerCPU
setting, ASP.NET will start throttling requests using a queue. To control the size of the queue, you can tweak the machine.config requestQueueLimit:
<processModel autoConfig="false" requestQueueLimit="250000" />
The following performance counters should be considered while conducting concurrency testing and adjusting the optimum settings detailed above:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With