How do determine the dynamicCompressionDisableCpuUsage setting on IIS7

iis-7

I manage an IIS7 server and I'm trying to determine what the dynamicCompressionDisableCpuUsage and dynamicCompressionEnableCpuUsage settings on this IIS7 are set to? I have not been able to find anyway to ascertain this information through the IIS7 Manager.

Best Answer

You can get this information from IIS_schema.xml located in C:\Windows\System32\inetsrv\config\schema folder.

As per your question, the default value seen is

dynamicCompressionDisableCpuUsage -> defaultValue="90"
dynamicCompressionEnableCpuUsage -> defaultValue="50"

section from IIS_schema.xml

<sectionSchema name="system.webServer/httpCompression">
    <attribute name="staticCompressionDisableCpuUsage" type="uint" defaultValue="100" validationType="integerRange" validationParameter="0,100" />
    <attribute name="staticCompressionEnableCpuUsage" type="uint" defaultValue="50" validationType="integerRange" validationParameter="0,100" />
    <attribute name="dynamicCompressionDisableCpuUsage" type="uint" defaultValue="90" validationType="integerRange" validationParameter="0,100" />
    <attribute name="dynamicCompressionEnableCpuUsage" type="uint" defaultValue="50" validationType="integerRange" validationParameter="0,100" />

If you have a Web Site and want to know the httpCompression setting of that Web Site, you need to look into the web.config file of that Web Site root folder.