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:
- How many live connections can a server/application/cpu support?
- Is there any maximum number of incoming connections that could be set/get?
- What is the optimum number of sockets per application regardless of data transfer over the socket?
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?
To whomever may be interested:
running ASP.NET 4.5
WebSocket connections are initiated by a HTTP
handshake, hence some of the IIS throttles that apply to HTTP requests
will also apply to WebSockets.
appConcurrentRequestLimitin the IIS Configuration can be used to set the maximum concurrent requests per application:Maximum concurrent connections to an ASP.net 4 Web Application can be set with ApplicationPool’s maxConcurrentRequestsPerCPU property:
When the total amount of connections exceed the
maxConcurrentRequestsPerCPUsetting, ASP.NET will start throttling requests using a queue. To control the size of the queue, you cantweak the machine.config requestQueueLimit:
The following performance counters should be considered while
conducting concurrency testing and adjusting the optimum settings
detailed above: