### CpuLoggingOptions

This metabase property contains flags that specify how IIS should log CPU times for services, servers, or applications. You can use this property to configure IIS to sum the CPU times of CGI applications only, of ISAPI extensions and ASP applications only, or of all applications.

Data type | Long
Default value | 1
Inheritance | Inheritable

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

You can also directly manipulate the bit flags within CpuLoggingOptions by using the hexadecimal values in the following Bitmask Values table.

Process throttling and process accounting are independently controlled by several other metabase properties. In order to enable process accounting you must set CpuEnableLogging (which is a member of CpuLoggingMask) to TRUE, and set at least one other CpuLoggingMask property to TRUE. It is also necessary to set at least one member flag of the CpuLoggingOptions, set CpuLoggingInterval to a nonzero value, and set either CpuAppEnabled or CpuCgiEnabled, as appropriate, to TRUE.

To properly activate process throttling, CpuLimitsEnabled must be set to TRUE, and at least one of the following properties should be set to TRUE: CpuLimitLogEvent, CpuLimitPriority, CpuLimitProcStop, or CpuLimitPause.

This property contains the following flags:

CpuEnableAppLogging | CpuEnableAllProcLogging
CpuEnableCgiLogging |

###### Access Locations

This property is accessible at the following locations:

Metabase Path | Key Type
/LM/W3SVC | IIsWebService
/LM/W3SVC/N | IIsWebServer

###### IIS Admin Base Object Information

The following tables list additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier | MD_CPU_LOGGING_OPTIONS
User type | IIS_MD_UT_SERVER
Default bitmask setting | MD_CPU_ENABLE_ALL_PROC_LOGGING

###### Bitmask Values

Constant | Value | Description
MD_CPU_DISABLE_ALL_LOGGING | 0x00000000 | Do not log CPU information.
MD_CPU_ENABLE_ALL_PROC_LOGGING | 0x00000001 | Log the sum of CPU time used by applications and CGI.
MD_CPU_ENABLE_CGI_LOGGING | 0x00000002 | Log the CPU time used by CGI applications.
MD_CPU_ENABLE_APP_LOGGING | 0x00000004 | Log the CPU time used by ISAPI and ASP applications.

© 1997-2001 Microsoft Corporation. All rights reserved.