Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iis7 increase number of threads/concurrent requests per working process

How can I increase the number of threads/concurrent requests per working process on IIS7?

I don't want to increase the number of processes to create a web garden (for now).

like image 996
rjlopes Avatar asked Aug 18 '09 13:08

rjlopes


People also ask

How do I increase the number of threads in IIS?

To change how the IIS thread pool works, and how many threads it provides for your workload, you can modify a number of registry values under the registry key HKLM\System\CurrentControlSet\Services\InetInfo\Parameters. The configured maximum number of threads (per processor) in the IIS thread pool.

How many concurrent requests can IIS handle?

Has a maximum of 10 concurrent connections before an HTTP 403.9 error message is returned. HTTP 403.9 returns Access Forbidden: Too many users are connected.

How do you change threads per CPU limit?

Click to expand Limits Properties under Behavior, click Threads Per Processor Limit, enter the desired value for Threads Per Processor Limit and click Apply in the Actions pane.


2 Answers

I found it:

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

http://blogs.msdn.com/tmarq/archive/2007/07/21/asp-net-thread-usage-on-iis-7-0-and-6-0.aspx http://msdn.microsoft.com/en-us/library/dd560842(VS.100).aspx

like image 63
rjlopes Avatar answered Sep 24 '22 05:09

rjlopes


Check out http://iistuner.codeplex.com/ it solved all of our problems regarding setting these numbers. It basically fixes all wierd and hard to find settings with one click.

like image 40
Johan Wikström Avatar answered Sep 24 '22 05:09

Johan Wikström