Geeks With Blogs
Dennis Bottjer | MVP

How to Enable IIS 6.0 Compression for SharePoint:

Microsoft’s Internet Information Server (IIS) has long support HTTP Compression.  However, supporting and implementing compression are two different things.  Many settings within IIS are easily configured from the IIS Admin GUI.  Unfortunately, enabling and configuring compression is not supported through the GUI and requires editing the IIS Metabase.  The metabase can be edited manually or updated from a command prompt.  The commands can be combine into the following script:

Script:

cd c:\inetpub\adminscripts

REM Turn On Compression
cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true
cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true

REM Set Compression to High Level
cscript.exe adsutil.vbs set w3svc/filters/compression/gzip/hcdynamiccompressionlevel "9"
cscript.exe adsutil.vbs set w3svc/filters/compression/deflate/hcdynamiccompressionlevel "9"

REM IIS 6.0 Only

REM cscript.exe adsutil.vbs set w3svc/filters/compression/gzip/hcscriptfileextensions "css" "js" "asp" "exe" "axd" "aspx"
REM cscript.exe adsutil.vbs set w3svc/filters/compression/deflate/hcscriptfileextensions "css" "js" "asp" "exe" "axd" "aspx"

iisreset
pause

Recommendations:

File Extensions:

Consider Adding: “ascx”, “ashx”, “asmx” “xml”

Testing:

Test the various file extensions and compression levels.  Perhaps start with a compression level of 7 to 8 or 9 after monitoring CPU utilization.  The results of compression can be monitored using Fiddler.

Related Download Available:

Administration: From Knee Jerk Reactions to Proactive Solutions | A Dozen Tips for Improved SharePoint Performance (Presentation Slides)

Technorati Tags:
Posted on Tuesday, April 14, 2009 12:58 AM | Back to top


Comments on this post: Enable IIS 6 Compression for SharePoint

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © DennisBottjer | Powered by: GeeksWithBlogs.net