Dynamic Compression

by Walter Oliver

Dynamic compression can save a significant amount of bandwidth with a tradeoff in using extra CPU. If bandwidth savings are more important than additional CPU, and the server is not currently bound by CPU, enable dynamic compression.

The amount of CPU used by dynamic compression can be controlled by a setting on the server called dynamicCompressionDisableCpuUsage. This setting makes sure that if the system reaches the specified level of CPU usage, dynamic compression will not cause additional load. The default value for disabling the CPU usage is 90%. Depending on your requirements, determine a number that works for your environment.

Note

If you do not install Dynamic Compression, these settings will not take effect.

To configure dynamic compression

  • Open a command prompt and run the following:
%windir%\system32\inetsrv\appcmd set config -section:urlCompression /doDynamicCompression:true
%windir%\system32\inetsrv\appCmd set config -section:httpCompression /dynamicCompressionDisableCpuUsage:50
%windir%\system32\inetsrv\appCmd set config -section:httpCompression /dynamicCompressionEnableCpuUsage:30