About the maximum number of requests that can be processed at the same time in IIS 10.0

wada 0 Reputation points
2024-10-18T07:54:19.4433333+00:00

I'm launching an application service with IIS 10.0 on Windows Server.

If you send 200 requests from the client to the server at the same time, 32 requests will be processed at the same time if the number of CPU cores on the server is 2, and 128 requests will be processed at the same time if the number of CPU cores is 8. When the number of cores was increased to 16, 256 requests were processed at the same time.

It seems that 16 requests are processed per core, but please tell me where the maximum number of requests that can be processed simultaneously per core is set.

Internet Information Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XuDong Peng-MSFT 10,761 Reputation points Microsoft Vendor
    2024-10-18T09:25:18.23+00:00

    Hi @wada,

    It seems that 16 requests are processed per core, but please tell me where the maximum number of requests that can be processed simultaneously per core is set.

    Based on your description, I think what you are looking for the setting about maxConcurrentRequestsPerCPU. It specifies how many simultaneous requests ASP.NET allows per CPU.

    Simple refer to this official doc: <applicationPool> Element (Web Settings) - Attributes.

    But according to the documentation, the default value should be 5000 (.NET Framework 4), and different with what you mentioned. You can check the configuration file with location:

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
    

    Add <system.web> element in configuration:

    <configuration>
      <system.web>
        <applicationPool 
            maxConcurrentRequestsPerCPU="5000"
            maxConcurrentThreadsPerCPU="0" 
            requestQueueLimit="5000" />
      </system.web>
    </configuration>
    

    In addition, this configuration applies to ASP.NET applications running in integrated mode on IIS 7.0 or later, please check whether it matches your situation.

    Best regards,

    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.