Microsoft KB Archive/235461

= Enhancing performance in Internet Information Server 4.0 =

Article ID: 235461

Article Last Modified on 2/9/2006

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q235461



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
This article provides some general performance-enhancement settings for Internet Information Server (IIS) 4.0. The default settings for Internet Information Server 4.0 are adequate for most uses; however, sites serving a great number of users may need to increase certain default parameters to increase performance. These settings should be verified on a test computer prior to making changes to the production computer.



MORE INFORMATION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.  Increase the number of script engines cached by performing the following steps:  Open the MMC, and then right-click the computer name. Click Properties. Click WWW Service, and then click Edit master properties. Click the Home Directories tab, and then click Configuration. Click the Process Options tab.</li> Change the value in Script Engines cached to 100. Setting this value higher than 250 will show only marginal results.</li> Change the value in Max ASP files cached to approximately 25 percent of the ASP page count (for example, 1,000 ASP pages would need 250 as a default).</li></ol> </li> Change the Performance settings in the Web site to 100,000+Visits: <ol style="list-style-type: lower-alpha;"> Open the MMC and right-click on the Web site.</li> Click the Performance tab.</li> Slide the optimization bar to the far right.</li></ol> </li> The following changes must be made from the command line: <ol style="list-style-type: lower-alpha;"> Change the directory to c:\winnt\system32\inetsrv\adminsamples.</li> Change the default script host to cscript (will save some keystrokes):

cscript //h:cscript

(Optional)</li> Change ASPQueueTimeout to 30 sec (defaults to unlimited) by typing the following:

adsutil set w3svc/1/AspQueueTimeout 30

</li> Set the ServerListenBackLog to 500 (default 40) by typing the following:

adsutil.vbs set w3svc/1/ServerListenBackLog 500

</li> Change MaxEndPointConnections to 500 (default 100) by typing the following:

adsutil set w3svc/1/MaxEndPointConnections 500

</li></ol> </li> Open the Registry Editor to make the following changes: <ol style="list-style-type: lower-alpha;"> Change ProcessorThreadMax to 14 (hex) (Reg DWord):

The value is not present by default.</li> Create the MaxBlocks Registry setting (if not present already):

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

193026 FIX: NOT_ENOUGH_STORAGE errors in IIS log file

</li> <li>If the scripting host was changed, and if it needs to be changed back to the default (wscript) type the following, and then press ENTER:

cscript //h:wscript

</li></ol> </li></ol>

For best results, it is recommended that consistent monitoring and benchmarking be used. For relatively simplistic analysis, Performance Monitor may be used with the following counters:
 * ASP object: Requests Queued, Requests Executing, Script Engines Cached.
 * Processor object: % Processor Time
 * Memory: Available Bytes

Explanation of counters:
 * Requests Queued displays the current number of ASP pages waiting to execute. It is not unusual for the queue to periodically spike, but should return to a count at or near zero. Queuing may be caused by a resource (Database connection, CPU, and so on) not being available to service the request.
 * Requests Executing displays the current number of ASP pages executing and gives a general idea of site load.
 * Script Engines Cached displays the current number of script engines loaded into memory. If this value is showing the same value as the setting mentioned earlier, it may be increased. It should be increased in stages (50) until the number of engines cached remains below the maximum setting.

Note Increasing the value will increase the amount of memory used by Internet Information Server.
 * % Processor Time Displays the current processor load.
 * Available bytes Displays available RAM

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

229814 Configuring IIS to handle heavy usage

Additional query words: IIS4 iis 4.0

Keywords: kbhowto KB235461

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.