SHAREPOINT 2007
Download
1 / 51

Or... What you should be doing to help your mature-as-its-ever-going-to-be SharePoint 2007 farm through to SP2010 pre - PowerPoint PPT Presentation


  • 143 Views
  • Uploaded on

SHAREPOINT 2007 PERFORMANCE TUNING MUST-HAVES. or... "What you should be doing to help your mature-as-it's-ever-going-to-be SharePoint 2007 farm through to SP2010“ presenter: Mark Vogt VOGTLAND CONSULTING 2010.03.18. About The Presenter….

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Or... What you should be doing to help your mature-as-its-ever-going-to-be SharePoint 2007 farm through to SP2010 pre' - didier


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Slide1 l.jpg

SHAREPOINT 2007

PERFORMANCE TUNING

MUST-HAVES

or..."What you should be doing to help your mature-as-it's-ever-going-to-be SharePoint 2007 farm through to SP2010“presenter:Mark VogtVOGTLAND CONSULTING2010.03.18


About the presenter l.jpg
About The Presenter…

  • Mark Vogt, Mark Vogt, Ltd – SharePoint Consultant, PM & EA

  • Presenter Bio:

  • BS: Aerospace Engineering - U of MN IT

  • MS: Mechanical Engineering & Robotics (ABT) – U of MN IT

  • MS: Computer Science/AI - IIT

  • Consulting in KM & portal technologies since 1995

  • Roles actively include developer, PM, architect & manager

  • Worked with SharePoint technologies since it  came out in 2000

  • Runs blogs & videos focusing on SharePoint, Consulting & “The Big Picture”...

  • LOVES SharePoint

  • Sees SharePoint as one-of-a-kind enabling technology with no equal

  • SharePoint Purple Belt


Target audience sharepoint green belts l.jpg
Target Audience: SharePoint Green Belts…

Most CSPUG Attendees are Green Belts - people experienced in using SharePoint for months/years, possibly experts in certain aspects of SharePoint, but NOT experts in all…

  • CSPUG Chairs 

  • Presenters  

  • Sponsors   

  • Visitor/Novices    

  • White Belts     

  • Green Belts                  

  • Purple Belts   

  • Brown Belts  

  • Black Belts 


Deliverables from this presentation l.jpg
Deliverables: from this Presentation…

  • Overview of Situation for you & your colleagues

  • Definitionsfor you & your colleagues

  • Explanations for you & your colleagues

  • Risks/Benefits for your Bosses

  • Checklists for your Administrators

  • Next Steps for everyone


Game plan why the slides are so dense l.jpg
Game Plan: Why the slides are so “dense”…

  • The presentation is meant to serve as a take-away

  • We’ll be moving fast & skimming

  • You can review the added details later

  • That way the presentation is still useful without presenter


Overview of situation l.jpg
Overview of Situation…

  • It's 2010 - SharePoint 2007 has been out for a full 3 years;

  • Even late adopters now have a fully-mature SharePoint 2007 environment;

  • "Fully-Mature" is code for "everyone's finally using it";

  • "Fully-Mature" is code for "at or beyond limits of original design";

  • "Fully-Mature" is code for "daily complaints about performance";

  • "Fully-Mature" is code for "not putting another dime into it";

  • This presentation will cover some "low hanging fruit" which can significantly improve your SP2007 performance, at least long enough to let you deploy your SP2010 farm to new, fast hardware, migrate content and let your "fully-mature" users into the new environment…

  • (note: "fully-mature users" is also code for "now they take SharePoint for granted, ignore all your warnings about what NOT to do in your farm, turn on versioning 20 levels deep, use WiFi connections 300 ft from the nearest WAP, upload 100 MB files which have NO value to anyone but themselves, install web parts and javascript they KNOW they're NOT supposed to, coerce your developers into "enhancing" your farm WITHOUT your knowledge… and still complain about YOUR farm"… )


What can you do l.jpg
What can you do?...

  • We can't talk about everything you could do…

  • We can talk about a few "must-haves"…

    • Techniques that are easy to implement

    • Techniques that apply to all SharePoint environments

    • Techniques with high benefit-to-risk ratios


Tip be methodical in evaluating each improvement l.jpg
Tip: Be Methodical in evaluating each improvement…

  • Devise repeatable tests with:

    • large & small files (emphasize most common file sizes expected)

    • varying file types (different file types are affected differently)

    • Varying operations (typically Page Loads, Downloads, Uploads, Edit/Saves)

    • short & long distances from The Farm

    • wide & narrow bandwidth to The Farm

  • Re-Test again & again as “stack on” each enhancement


Must have iis http compression l.jpg
Must-Have:IIS (HTTP) Compression…

Definition:

"The seamless, on-the-fly compression, transmission and decompression of file-based content from web server to web browser";

  • It's NOT "IIS" Compression;

  • It IS (more accurately) "HTTP" compression;

  • Works on outbound (downloads) content delivery

  • Works with individual files (e.g. htm, aspx, js, css,) comprising a request

  • Disabled OOTB, but enabled per SP web app during provisioning


Explanation http compression l.jpg
Explanation: HTTP Compression…


Free tool fiddler lets you see http compression l.jpg
Free Tool: Fiddler lets you see HTTP compression…

http://www.fiddlertool.com


Risks benefits http compression l.jpg
Risks/Benefits:HTTP Compression…

  • Low Risks:

    • OOTB in SP2007;

    • Single Metabase.xml file requires editing

    • Manual editing possible & straightforward

    • Readily/Easily adjusted or even reverted

    • Some ZIP-related oddities; fix available

    • Requires WFEs which are below 80% Avg CPU (typical)

  • High Benefits:

    • Outbound content reductions from 15% to 95% !


Checklist http compression l.jpg
Checklist: HTTP Compression…

C:\windows\system32\inetsrv\metabase.xml:

  • SAMPLE EDITS:

  • <IIsCompressionSchemeLocation ="/LM/W3SVC/Filters/Compression/gzip"

  • HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"

  • HcCreateFlags="1"

  • HcDoDynamicCompression="TRUE"

  • HcDoOnDemandCompression="TRUE"

  • HcDoStaticCompression="TRUE"

  • HcDynamicCompressionLevel="9"

  • HcFileExtensions="htm

  • html

  • txt

  • js

  • css

  • htc

  • doc

  • docx

  • xls

  • xlsx

  • ppt

  • pptx

  • pdf"

  • HcOnDemandCompLevel="9"

  • HcPriority="1"

  • HcScriptFileExtensions="asp

  • aspx

  • asmx

  • dll

  • exe">

  • </IIsCompressionScheme>

PRE-EDIT STEPS:

_ OPEN Start > Administrative Tools > IIS Manager

_ RMC on Local Server Icon > Properties

_ CHECK checkbox property “Enable Direct Metabase Edit”

EDIT STEPS:

_ LAUNCH cmd.exe > IISRESET /stop

_ OPEN Windows Explorer

_ NAVIGATE to C:\Windows\System32\inetsrv\

_ LOCATE Metabase.xml file

_ DUPLICATE Metabase.xml file > Metabase_20100318.xml

_ EDIT Metabase.xml

_ SEARCH for text “IISCompressionScheme” (2 elements – gzip & deflate)

_ EDIT <IISCompressionScheme> elements (so both match)

_ CHANGE Compression Levels to "9"

_ INCLUDE all the static & dynamic content YOU have!

POST-EDIT STEPS:

_ SAVE & CLOSE Metabase.xml

_ RESTART IIS via cmd.exe > IISRESET /start

_ RE-TEST performance tests &record results

_ CHECK with Users (ultimate judges of success)


Results http compression l.jpg
Results: HTTP Compression…

  • TIP: Test new file formats by batch-ZIP-ing a bunch of them, and do some stats…


Thought l.jpg
Thought

  • Why does HTTP compression only work on outbound traffic?

  • (save for discussion…)


Uber topic sharepoint asp net web caching l.jpg
Uber-Topic: SharePoint (ASP.NET) Web Caching…

Definition: Web Caching –

The temporary storing (typically in WFE's RAM or VRAM) and retrieving of already-generated HTTP responses or portions of responses.

This is MUCH (10x) faster than re-requesting the same page or portions of pages (resources) all the way back to the Database Server…


Explanation sp2007 web caching l.jpg
Explanation: SP2007 Web Caching…

FAST 

SLOW 

Output (page)

Caching

Output (page)

Caching

Output (page)

Caching

Browser (private)

Caching

VRAM

BLOB Caching

RAM

Object Caching

Output Caching

CHALLENGE: caching is going on everywhere…


Confusion so much caching related lingo l.jpg
Confusion: So much caching-related lingo…

How Mark makes sense of it all:

Caching

Data Caching

Web Caching

Browser-side ("client-side") Caching

Server-side Caching

Output (Page) Caching

Object (Control) Caching

BLOB (Resource) Caching

Appliance-side Caching (aka "edge" caching)


Table summarizing sp2007 web caching l.jpg
Table: Summarizing SP2007 Web Caching…


Type browser private caching l.jpg
Type: Browser("private") Caching…

  • IE7 has built-in "private" caching

  • Limit is 1024 MB (1 GB) 

  • Represents the very fastest (shortest) caching

  • Operation can be hard to administratively control and optimize…


Must have custom cache control http header l.jpg
Must-Have: Custom cache-control HTTP Header…

Browser cache usage can be improved for static websites via custom HTTP response headers;

“post-check” is cool trick to load “old” page instantly from browser cache, then update behind-the-scenes as needed…


Risks benefits custom cache control http header l.jpg
Risks/Benefits: Custom cache-control HTTP Header…

  • Low Risk

    • Leverages OOTB caching in IE7 IE8

    • Readily/Easily adjusted via IIS Manager at web app

    • Tends to benefit mostly-static web pages/sites

  • High Benefits

    • Fastest possible caching scenario

    • Significant reduction of Page Load times

    • Clever leveraging of “effective Page Load” phenomena(“perception is reality…”)


Checklist custom cache control http header l.jpg
Checklist:Custom cache-control HTTP Header…

SCHEDULE the following tasks for next maintenance window

__ RDC into each WFE in The Farm with admin-level privileges

__ PERFORM IISRESET /stop /noforce

__ OPEN IIS Manager

__ FOR EACH (web application in SharePoint farm)

__ RMC > Properties > HTTP Headers

__ ADD new custom header: “cache-control: max-age=3600, post-check”

__ RESTART IIS via IISRESET /start

__ RE-TEST Performance; record results; compare to previous baseline

__ EXPERIMENT with max-age (vary between 1 min and 1 hour)

__ CHECK with Users (ultimate judges of success)


Type server side wfe caching l.jpg
Type: Server-side (WFE) Caching…

  • Output or "Page" Caching (think "pages & web parts")

  • BLOB or "Disk" Caching (think "resources/external files")

  • Object Caching (think "page fragment/control")

  • All exist on each WFE

  • All use either WFE RAM or VRAM (disk)

  • Some share the SAME server resources (RAM/VRAM)!

  • Each type of caching serves a specific purpose…

  • Not all purposes apply to all environments

  • => Not all caching will benefit all situations


Must have blob disk caching l.jpg
Must-Have: BLOB (disk) Caching…

  • AKA "disk-based" caching

  • Content really is stored on disk instead of RAM

  • "BLOBS" include all file content typically stored in and retrieved from the database (e.g. js, css, gif, jpg, etc);

  • Think "resources/files that are also part of a requested page“

  • Typically 20-60 resources for SharePoint page ! (significant)

  • Part of ASP.NET (built right into native IIS performance counters)

  • Disabled by default in SP2007;

  • Enabled on per-web application basis (easy to manage)


Explanation blob disk caching l.jpg
Explanation: BLOB (disk) Caching…

Edit each web app's web.config file:


Risks benefits blob disk caching l.jpg
Risks/Benefits: BLOB (disk) Caching…

  • Low Risk

    • OOTB in SP2007;

    • Single line of web.config file;

    • Highly configurable wrt location, size, selection;

    • Location off of WFE further improves performance;

    • Readily/Easily adjusted or even disabled;

    • Managed at the Web Application-level (*whew*)

  • High Benefits

    • Reduction of Browser Load times ranging from ½ to 1/7th of un-cached load times


Checklist blob disk caching l.jpg
Checklist: BLOB (disk) Caching…

SCHEDULE the following tasks for next maintenance window

__ PRE-TEST performance of BLOB retrieval using Fiddler 2 (record download times of largest files)

__ RDC into each WFE in The Farm with admin-level privileges

__ PERFORM IISRESET /stop /noforce

__ EXPLORE C:\inetpub\wwwroot\wss\virtualdirectories\

__ NAVIGATE into each web application sub-folder

__ FOR-EACH (web application) DO

LOCATE the web.config file

COPY web.config file to web.config_2010.03.18 (best practice);

OPEN web.config file in edit mode

FIND "<Blobcache" text string => should yield only a single element

EDIT <Blobkcache string as desired - particularly location, size & file types

SAVE web.config file

__ PERFORM IISRESET /start

__ RE-TEST performance

__ CHECK with Users (ultimate judges of success)


Must have object caching l.jpg
Must-Have: Object Caching…

  • Located in the VRAM of each WFE (shares resources with BLOB Cache)

  • Caches

    • Site Navigation Structure

    • Content in the different fields of a document library item or a list item

    • Published pages & resources

    • Draft pages

  • Manifested to Users as good/bad navigation, queries and edits/saves

  • Enabled by default

  • Controls a single site collection at a time (challenging for some farms)

  • Defaults to 100 MB; ranges from 100 MB to 300 MB max per site collection

  • Shares both same memory space & same process as BLOB Cache

  • Need to be careful about over-allocating memory for this cache

  • Need to be REALLY careful about under-allocating memory for this cache


Risks benefits object caching l.jpg
Risks/Benefits: Object Caching…

  • Moderate Risk

    • OOTB & on-by-default in SP2007;

    • Only need to adjust Object Cache Size (MB);

    • Readily/Easily adjusted via Site Collection Admin Page

    • DO need to be careful about balancing shared server resources

    • OVER-allocating immediately & negatively impacts performance

    • UNDER-allocating can create "cache thrashing" – VERY BAD!

    • Annoying to manage for large site collection counts

    • Tuning techniques range from complex to simplistic (go for simple)

    • Often tuned manually, and only on high-use site collections !

  • Moderate Benefits

    • Already working with default of 100 MB (per site collection)

    • Varying reduction of resource load times


Checklist object caching l.jpg
Checklist:Object Caching…

SCHEDULE the following tasks for next maintenance window

__ START with all Site Collections all remaining at default Object Cache Size = 100 MB

__ MONITOR (via PerfMonitor Counter Log ) SharePoint Publishing Cache/Number of Compactions

low/zero compactions and good edit/save feedback from users = > probably leave as-is

high compactions and poor edit/save feedback from users => try increasing in 25 MB increments

NEVER reduce without having valid reason (thrashing horror stories abound)

__ DETERMINE (various means) all "high latency" site collections

FOR-EACH (site collection)

__ BROWSE to Site Actions > All Site Settings > Site Collection Admin > Site Collection Object Cache

__ CONFIRM current Object Cache Setting (100 MB default)

__ INCREASE value by 50 MB

__ SAVE & RESTART SERVER !! (or previous counts will not be reset)

__ RE-TEST performance (particularly navigation and edits/saves)

__ CHECK with Users (Ultimate judges of success)

OPTIONAL – leverage Performance Counter to quantify optimal settings (overkill compared to other effort)


Must have increased browser server connections l.jpg
Must-Have: Increased Browser-Server Connections…

Both IE7 and IE8 OOTB have fewer max server connections than they could have…

IE7 defaults to 2 server connections

IE8 defaults to 6 server connections

Microsoft provides a fix to increase this value to 10:

http://support.microsoft.com/default.aspx/kb/282402?p=1


Risks benefits increased browser server connections l.jpg
Risks/Benefits: Increased Browser-Server Connections…

Low Risk:

Enhancement comes directly from Microsoft

Can be implemented by individual users or via SMS

Can be tuned/adjusted to optimize LAN bandwidth

Daring to go above 10 connections => perception of DNS !

High Benefits:

Increased # concurrent downloads => faster page loads

IE7 (2 connections): 10 sec page loads

IE7 (10 connections): 3 sec page loads


Checklist increased browser server connections l.jpg
Checklist: Increased Browser-Server Connections…

__ BROWSE to http://support.microsoft.com/default.aspx/kb/282402?p=1

__ CLICK “Fix it” button

__ RE-TEST Performance against current baseline


Must have ethernet not wifi connections l.jpg
Must-Have: Ethernet (not WiFi) Connections

Connection Type is not sexy, but in many environments this single apparently insignificant decision can eclipse all other attempts to improve SP2007 performance combined.

Example:

Your Ethernet connection (ideally) provides 25 Mb/s of download bandwidth;

Your pre-tuning performance gave 20 secs to download a 20 MB file;

Your Tunings improve this to 10 secs (a whopping 50% gain);

BUT…

4. Your users like the convenience of WiFi, so they ignore your best practices;

5. Your users set up 75 ft from the nearest WAP, because they like the view;

6. At this location, their Effective Bandwidth is now 5 Mb/s for downloads;

SO…

7. Downloading that same file now takes 50 secs, AND USERS COMPLAIN.


Also investigate proxy server caching l.jpg
Also Investigate: Proxy Server Caching…

  • Most proxy servers these days also provide static web content (output) caching – investigate this if your WFEs are memory-limited…


Also investigate load balancer caching l.jpg
Also Investigate: Load Balancer Caching…

  • Many current load balancers also provide static web content (output) caching. Investigate this as well if your WFEs are memory limited…


Nice to have riverbed s steelhead cc appliance client l.jpg
Nice-to-Have: Riverbed’s Steelhead CC Appliance & Client…

  • Does Caching & Compression like other technologies

  • Differentiator is that it handles BOTH outbound AND inbound traffic


Nice to have aptimize isapi filter l.jpg
Nice-to-Have: Aptimize ISAPI Filter…

  • Bolts-on to IIS

  • Configured per web app (handy)

  • Post-processes HTTP responses

    • Packs js,css

    • Minifies & gzips resources

    • Sprite-ifies images

  • Improves caching

  • Remote Page Times improved 65%

  • Local Page Times improved 37%

  • Used on SharePoint.microsoft.com


Next steps l.jpg
Next Steps…

__ SKETCH out your own environment's Content Delivery Chain, from Database to Browser

__ IDENTIFY all possible points of caching & compression

__ MEASURE baseline performance metrics (Content Download Rate, Content Upload Rate, Page Load Time, Edit/Save Time, others)

__ ASSESS current IIS (HTTP) Compression settings on each WFE

__ INVENTORY all commonly-used file types (e.g. doc, docx, xls, xlsx, ppt, pptx, pdf, etc)

__ PREPARE changes/modifications needed to the HTTP Compression settings

__ INVENTORY Disk Caching Settings on all WFEs

__ INVENTORY BLOB Caching Settings on all WFEs

__ INVENTORY Object Cache in “key” Site Collections (ugh)

__ IMPLEMENT improvements ONE AT A TIME

__ RE-TEST/MEASURE performance improvements & compare to baseline

__ CHECK WITH USERS (ultimate judges of success)


Conclusion l.jpg
Conclusion…

  • HOW TO REQUEST A COPY OF THIS PRESENTATION:

  • VISIT MARK’S BLOG:

    • www.markvogt.us or www.thewiseconsultant.us

  • OTHER AVAILABLE PRESENTATIONS:

    • PowerShell v2.0 for SharePoint 2007 Reporting, Policing & Administration

    • The Perfect SharePoint Server Farm

    • Governing SharePoint…with SharePoint

    • SharePoint-enabled Project Management Methodology


Discussion l.jpg
Discussion…

Q: WHAT experiences have others had with these techniques?

Q: WHAT other performance-relevant best practices can others share?

Q: WHAT other inbound technologies have others had success with?

Q: WHAT techniques have others developed for quickly/programmatically inventorying various caching settings?

Q: WHAT does Microsoft literature mean when it states that BLOB Caching 100 MB is "per site collection"? What are the best practices for environments with thousands of low-use site collections and users which demand good performance?

Q: What happens when you circumvent Central Admin, browse directly to the Output Cache URL, and set it. Can you get Output Caching for NON-publishing websites?


References credits l.jpg
References/Credits…

  • http://blogs.technet.com/wbaer/archive/2008/01/30/http-compression-internet-information-services-6-0-and-sharepoint-products-and-technologies.aspx

  • http://blogs.msdn.com/joekr/archive/2008/09/04/enabling-http-compression-in-iis.aspx

  • http://technet.microsoft.com/en-us/library/cc298466.aspx

  • http://msdn.microsoft.com/en-us/library/bb727371.aspx

  • http://blog.thekid.me.uk/archive/2007/07/17/speed-up-your-sharepoint-site-using-cache-control.aspx


ad