We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

How to limit throughput in asp.net 4.7.2 app hosted in IIS 8.5? [Answered]RSS

1 reply

Last post Sep 15, 2020 02:47 AM by Jalpa Panchal

  • How to limit throughput in asp.net 4.7.2 app hosted in IIS 8.5?

    Sep 12, 2020 08:04 PM|skmcfadden|LINK

    We have an asp.net api using a third party c++ library that has concurrency / threading limitations / restrictions.  Would like to configure iis / asp.net app so that these threading / concurrency restrictions are honored.  Here they are:

    1. No more than 1 active request per worker process (threading limitation).
    2. No more than 4 worker processes (concurrent licensing limitation, no more than 4 concurrent requests running on the vm at any given time).

    How do we configure web.config and iis for these limitations?

  • Re: How to limit throughput in asp.net 4.7.2 app hosted in IIS 8.5?

    Sep 15, 2020 02:47 AM|Jalpa Panchal|LINK

    Hi,

    you can limit the number of connection per site by using the IIS site advance setting limit section:

    to set max worker process per thread use IIS application pool advance setting.

    Reference link:

    https://docs.microsoft.com/en-us/iis/configuration/system.applicationHost/sites/site/limits

    https://stackoverflow.com/questions/18729682/increase-request-queue-limit-of-asp-net

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.