Share via


CPULimitLogEvent

CPULimitLogEvent specifies the percentage of CPU time, in 1/1000ths of a percent, that all isolated processes on the Web server are allowed to occupy during a given process accounting interval (specified by CPUResetInterval). If the processes attempt to occupy more CPU time than specified in CpuLimitLogEvent, a note is recorded in the Windows Event Log specifying that the processes have exceeded the limits. If process accounting is enabled, the limit overrun is entered into the IIS log.

If CpuLimitLogEvent is set to 0, or a value greater than 100,000 (100 percent), IIS will not log any events against the process. However, one of the other process throttling properties, such as CPULimitPriority, CPULimitProcStop, or CPULimitPause, could generate a response from IIS if a CPU limit is exceeded.

note Note Because process accounting in IIS uses Windows Job Objects to monitor CPU times for an entire process, process accounting logs and throttles only those applications that are isolated in a separate process from IIS.

Process throttling and process accounting are independently controlled by several other metabase properties.

To properly activate process throttling, CPULimitsEnabled must be set to true, and at least one of the following properties must be set to true: CpuLimitLogEvent, CPULimitPriority, CPULimitProcStop, or CPULimitPause.

important Important Applications that do not have process throttling enabled do not contribute to the total CPU time for the purposes of calculating CPU limit overruns.

Attribute Name Attribute Value
XML Data Type DWORD
WMI Data Type
SINT32
ADSI Data Type DWORD
ABO Data Type DWORD
ABO Metabase identifier
MD_CPU_LIMIT_LOGEVENT
Attributes INHERIT
Default Value 0
MetaFlagsEx CACHE_PROPERTY_MODIFIED
User Type IIS_MD_UT_SERVER
StartingNumber Not applicable
EndingNumber 0
ID 2149

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Code Example

For general code examples, please see Code Examples to Configure Metabase Properties