Microsoft KB Archive/235437

= How to Change Process Throttling Options for IIS 5.0 =

Article ID: 235437

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q235437



SUMMARY
Internet Information Services 5.0 allows for the throttling of application spaces. Throttling affects each application that is running in its own memory space (High Isolation).



MORE INFORMATION
The throttling action is not based on the CPU load, but rather the CPU time expended servicing the application. For example, the settings for this option are as follows:

10% CPU time

and the Threshold percentages are:

100%

150%

200%

This means that after the application has used 10 percent of the elapsed processor time, the 100-percent threshold throttle will occur. At 15 percent (150 percent of the setting), the second throttle will occur. At 20 percent (200 percent of the setting), the final throttle will occur.

The events are as follows:

100 percent: An event is logged in the IIS Log file if process logging is enabled.

150 percent: Thread priority is lowered, thereby decreasing the impact of the application.

200 percent: Application is stopped. It may only be restarted by the Web operator.

All of the settings are customizable.

To change the time percentage, do the following:
 * 1) Open the MMC.
 * 2) Expand the IIS Snap-in to open the application or Web site.
 * 3) Right-click the computer name.
 * 4) Click the Performance tab.
 * 5) Select the Enable process throttling check box.
 * 6) Set Maximum CPU use (10% is default).
 * 7) Select Enforce Limits.NOTE: Failure to select the Enforce Limits will result in log entries only; no other measures will be taken.

To change the threshold limits (for example to 50%, 75%, and 100% respectively), do the following:  Open a command prompt. Change the directory to c:\inetpub\adminscripts and type the following:

cscript adsutil.vbs set w3svc/CPULimitLogEvent 5000

cscript adsutil.vbs set w3svc/CPULimitPriority 7500

cscript adsutil.vbs set w3svc/CPULimitProcStop 10000

Note: All values include two decimal places, but the decimal is omitted (for example 50.00% = 5000)

The settings above are global to the Web service for a particular server. The Cscript executable may be skipped if Cscript.exe is the default scripting host.

To set Cscript as the default scripting host, use:

cscript //h:cscript

To set Wscript as the default scripting host, use:

cscript //h:wscript

Additional query words: iis

Keywords: kbinfo KB235437

-

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

© Microsoft Corporation. All rights reserved.