Performance Options for SharePoint IIS

27. June 2009

Here are a few quick tips on kickin' up the IIS performance for SharePoint 2007.

Disk-based Caching for Binary Large Objects

The purpose of the BlobCache is to avoid extra database roundtrips required to pass down these objects when the page loads. Use this setting in the WebApp web.config file.

<BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" max-age="86400" enabled="true" />

  • location: Make sure you have plenty of hard drive for "location".
  • maxSize: The size in GB of the cache location.
  • max-age: Can be >= 0. The default is 86400 seconds (24 hours).

Flush the Cache

Use the stsadmin command to flush all binary large object (BLOB) caches associated with a specified Web application on different Web front-end computers on the farm: stsadm -o setproperty -propertyname blobcacheflushcount -propertyvalue 11 -url http://mywebapp:port

Enable IIS 6.0 Compression for SharePoint

 

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

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

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

 

The compression can be 0 to 10, 10 being the highest.

SharePoint, IIS ,