forked from SignalR/SignalR
-
Notifications
You must be signed in to change notification settings - Fork 0
Performance
davidfowl edited this page Nov 7, 2011
·
39 revisions
ASP.NET and IIS scale very well, but you'll need to change a few settings to set up your server for lots of concurrent connections, as opposed to lots of requests per second.
Increase the number of concurrent requests IIS will server at once:
- Open %windir%\inetsrv\config\applicationHost.config
- Locate the serverRuntime element
- Add the appConcurrentRequestLimit attribute if not already there and set it to a suitable number (5000 is the default in IIS7+)
Example
<serverRuntime appConcurrentRequestLimit="250000" />
Increase the request queue limit that affects how many concurrent requests ASP.NET will process:
- Open %windir%\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
- Locate the processModel element
- Set the autoConfig attribute to false and the requestQueueLimit attribute to a suitable number
Example
<processModel autoConfig="false" requestQueueLimit="250000"/>