3

I've created an asp.net app for work with WebSockets. I published my app on IIS 8 (server specs: 64GB RAM, i7 processor). I could open up to 5000 concurrent connections during testing. The server wouldn't open new connections after this limit has been reached.

I can open more connections if I increase the number of Worker Processes, but I'm wondering if I can do so with a single Worker Process.

Janez Kuhar
  • 3,705
  • 4
  • 22
  • 45
pasha
  • 566
  • 5
  • 19

1 Answers1

8

I've successfully raised the per Worker Process limit to 50,000 by applying the following changes:

  • open cmd as Administrator and run:
%windir%\System32\inetsrv\appcmd.exe set config /section:system.webserver/serverRuntime /appConcurrentRequestLimit:50000
  • add the following block:

    <configuration>
      <system.web>
        <applicationPool maxConcurrentRequestsPerCPU="50000" />
      </system.web>
    </configuration>
    

    to these files:

    • %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet.config
    • %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
Janez Kuhar
  • 3,705
  • 4
  • 22
  • 45
pasha
  • 566
  • 5
  • 19