Configuring the Maximum Number of Concurrent CGI Requests
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
To prevent performance degradation and to decrease the possibility of security exposures on your Web server, you can configure the maximum number of simultaneous CGI requests allowed to run at one time.
Important
You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /User:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".
Important
Using Registry Editor incorrectly can cause serious problems that require reinstalling the operating system. Because Registry Editor bypasses the standard safeguards that prevent you from entering settings that are conflicting or likely to degrade performance or damage your system, exercise caution when making changes to the registry. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. For information about how to edit the registry, see "Changing Keys and Values" in Registry Editor Help.
Procedures
To configure the maximum number of concurrent CGI requests
From the Start menu, click Run.
In the Open box, type Regedit.exe, and click OK.
Navigate to the following location in the registry: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters.
From the Edit menu, point to Add, click DWORD Value and then add the following registry value:
Name: MaxConcurrentCgisExecuting
Type: REG_DWORD
Data: IIS uses a default value of 256 if this registry key does not exist. You can set the value between 0 and 4294967295 (unlimited) depending on your needs. Using a low value means that fewer CGI requests can run concurrently on the Web server; however, using a high value can cause performance degradation.
Quit Registry Editor.
Related Information
For more information about the registry key MaxConcurrentCgisExecuting, see WWW Service Registry Entries.
For general information about programming CGI applications, refer to the MSDN Online Library.