Configuring and Testing Caching and Other Performance Options in Microsoft SharePoint Technologies

Similar documents
Scaling out a SharePoint Farm and Configuring Network Load Balancing on the Web Servers. Steve Smith Combined Knowledge MVP SharePoint Server

SharePoint 2010 Performance and Capacity Planning Best Practices

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

Capacity Planning for Microsoft SharePoint Technologies

Drupal Performance Tuning

SharePoint Integration Framework Developers Cookbook

Sitecore Health. Christopher Wojciech. netzkern AG. Sitecore User Group Conference 2015

SHAREPOINT 2010 DEVELOPMENT : IN THE CLOUD. Faraz Khan Senior Consultant RBA Consulting

SharePoint Checklist and Resources

10 Steps to Optimize SharePoint Performance

EPiServer Operator's Guide

Cache Configuration Reference

Developing Microsoft SharePoint Server 2013 Advanced Solutions. Version: Demo. Page <<1/8>>

CMS Performance Tuning Guide

TABLE OF CONTENTS. Features - SharePoint Server idataagent. Page 1 of 72 OVERVIEW SYSTEM REQUIREMENTS - SHAREPOINT SERVER IDATAAGENT INSTALLATION

Notes on how to migrate wikis from SharePoint 2007 to SharePoint 2010

Tutorial #1: Getting Started with ASP.NET

SharePoint Performance Optimization

EMC Documentum Repository Services for Microsoft SharePoint

E-Commerce: Designing And Creating An Online Store

Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 (VB)

Who is SharePoint Joel?

1703 Discovering SharePoint 2007 for Developers

TIBCO Spotfire Metrics Prerequisites and Installation

SharePoint 2010 End User - Level II

1 (11) Paperiton DMS Document Management System System Requirements Release: 2012/

Developing ASP.NET MVC 4 Web Applications MOC 20486

IISADMPWD. Replacement Tool v1.2. Installation and Configuration Guide. Instructions to Install and Configure IISADMPWD. Web Active Directory, LLC

Getting Started with HC SharePoint Module

SharePoint Backup and Recovery along with Best practices for My Sites. Daniel Glenn, MCTS

Elgg 1.8 Social Networking

DocAve Website Migrator 2.2 for Microsoft SharePoint

Designing and Developing Microsoft SharePoint Server 2010 Applications (MS10232)

OTP Server Integration Module

Project Online: Manage External Sharing

Migrating helpdesk to a new server

This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications.

System Administration Training Guide. S100 Installation and Site Management

metaengine DataConnect For SharePoint 2007 Configuration Guide

multiple placeholders bound to one definition, 158 page approval not match author/editor rights, 157 problems with, 156 troubleshooting,

Developing ASP.NET MVC 4 Web Applications

Web Pages. Static Web Pages SHTML

EMC Documentum Connector for Microsoft SharePoint

Code Estimation Tools Directions for a Services Engagement

ACME Intranet Performance Testing

Developing ASP.NET MVC 4 Web Applications Course 20486A; 5 Days, Instructor-led

Thomas Röthlisberger IT Security Analyst

Simple Tips to Improve Drupal Performance: No Coding Required. By Erik Webb, Senior Technical Consultant, Acquia

SelectSurvey.NET Developers Manual

EXAM TS: Microsoft SharePoint Server 2010, Configuring. Buy Full Product.

ManageEngine IT360. Professional Edition Installation Guide.

Creating Page Layouts using SharePoint Designer or Visual Studio

Avatier Identity Management Suite

Designing and Developing Web Applications by using the Microsoft.NET Framework

Programming Fundamentals of Web Applications Course 10958A; 5 Days

MOC 20467B: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

One Bing Maps application ID was used to make requests to two different sets of URLs, one for staging and one for production.

Content Management System

Telelogic DASHBOARD Installation Guide Release 3.6

SharePoint Development for.net Developers

Monitoring Replication

Installation & User Guide

Expanded contents. Section 1. Chapter 2. The essence off ASP.NET web programming. An introduction to ASP.NET web programming

Kentico CMS 7.0 Intranet Administrator's Guide

SharePoint Server 2010 Capacity Management: Software Boundaries and Limits

How To Create A Site In Sharepoint 2013

Virto Active Directory Service for SharePoint. Release Installation and User Guide

WHAT'S NEW IN SHAREPOINT 2013 WEB CONTENT MANAGEMENT

Estimate Performance and Capacity Requirements for Workflow in SharePoint Server 2010

MS SQL Server Database Management

Installation & User Guide

Implementing and Administering an Enterprise SharePoint Environment

Kentico CMS 5 Developer Training Syllabus

Cortex Release 8.4. Cortex Release Notes. Jocelyn Brittain

How to Configure a Stress Test Project for Microsoft Office SharePoint Server 2007 using Visual Studio Team Suite 2008.

Intro to Developing for SharePoint Online: What Tools Can I Use?

Dev01: Kentico CMS 7 Developer Essentials Syllabus

DocuSign for SharePoint

MS 10978A Introduction to Azure for Developers

Web+Center Version 7.x Windows Quick Install Guide 2 Tech Free Version Rev March 7, 2012

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide

Archive Attender Version 3.5

How To Set Up An Openfire With Libap On A Cdd (Dns) On A Pc Or Mac Or Ipad (Dnt) On An Ipad Or Ipa (Dn) On Your Pc Or Ipo (D

Developing Microsoft SharePoint Server 2013 Core Solutions

Working with Structured Data in Microsoft Office SharePoint Server 2007 (Part1): Configuring Single Sign On Service and Database

This manual cannot be redistributed without permission from joomla-monster.com

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT

Database Configuration Guide

SharePoint 2013 Syllabus

Transcription:

Configuring and Testing Caching and Other Performance Options in Microsoft SharePoint Technologies

Module Overview The Out of the Box Experience Resources and Tools for Testing IIS Compression Output Caching BLOB Caching Object Caching Delayed Downloading of Core.js

The Out of the Box Experience SharePoint Configuration Options Most caching options are turned off Anonymous access is disabled IIS Compression is turned on This is new in SharePoint 2007 The User Interface is Light Page Payload sizes are relatively small

Resources and Tools LogParser: Analyzing user load in the real-world Creating a Test Environment: SharePoint Test Data Population Tool (sptdatapop) Performance Testing: Two different tools, two different purposes Visual Studio Team Test: Lets you measure the throughput available in your site. Fiddler: Lets you examine individual requests to see what is being downloaded on each request and how large each item is. Tweak settings based on what you see in VSTT and Fiddler Test again with VS.NET to check for improvement

DEMO Establishing the Baseline Performance James Petrosky Sr. Consultant / SharePoint Ranger Microsoft Consulting Services WW Office Servers Center of Excellence

IIS Compression By default, when you install MOSS 2007 / WSS 3.0 IIS Compression is turned on Hit the site and look in %WINDIR%\IIS Temporary Compressed Files Compression is turned on primarily for static files Static files: Htm, html, txt, js, css, htc; Dynamic files: asp, exe, axd You may want to also compress aspx files CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "asp" exe" "axd" aspx" CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions "asp" exe" axd" aspx NOTE: No point in compressing files that are already compressed, like.jpg

IIS Compression Considerations Consider tuning the compression level Lower values make bigger files but put less stress on system resources Out of the box it is set to 0 for dynamic files (10 for static files) Can go as high as 10 9 was often used in WSS 2.0 / SPS 2003 CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/GZIP/HcDynamicCompressi onlevel "9" CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/DEFLATE/HcDynamicCompr essionlevel "9"

Output Caching Implemented in MOSS as Site Collection Output Cache Control it at the site collection level Exceptions allowed for layout pages and subsites Caching profiles determine cache characteristics You can use different profiles for anonymous and authenticated users Out of box includes four profiles that fit most scenarios

Output Cache Considerations What if I don t want the whole page to be exactly the same every time Post-Cache Substitution controls, like login Default caching behavior for authenticated users is to cache for Reader only Check Allow writers to view cached content in profile to change Use the cache debug statements Verify it is working first! It s a checkbox when you configure Site Collection Output Cache

Anonymous vs. Authenticated Users The authentication of users can impact what is possible with caching Anonymous users are easiest because they all see the same thing Authenticated users can use things like loyalty programs but still use cached content too The challenge with authenticated users is to minimize variations of groups and rights Design the site hierarchy accordingly if possible Put non-anonymous content in subsite(s)

DEMO Enabling & Testing Output Cache James Petrosky Sr. Consultant / SharePoint Ranger Microsoft Consulting Services WW Office Servers Center of Excellence

Blob Cache Blob Cache puts SharePoint items on disk Also stamps a cacheability value on items in the blob cache Turned off by default; must edit web.config to change Parameters: location: the directory where items are stored path: a regex expression of the types of files that should be blob cached maxsize: the size in GB that the cache is allowed to use max-age: the amount of time in seconds that items should be cached on the client enabled: set to true to enable the blob cache

Blob Cache Considerations Use it! Doesn t have an Admin UI, but don t worry Add items used in your site to it HTC is a good example it is used but not in the default list Only works on items stored in a SharePoint list Some lists don t work out of the box for anonymous users Master Page Gallery Style Library

DEMO Enabling BLOB Caching James Petrosky Sr. Consultant / SharePoint Ranger Microsoft Consulting Services WW Office Servers Center of Excellence

Object Cache Finally, a cache enabled by default Used to store frequently accessed items Site navigation structure Field content of a library or list item Content by Query web part data Configured to use 100MB by default Use Object Cache UI to flush Object Cache as well as disk-based cache (which really means the blob cache)

Object Cache Considerations Use caution when adjusting memory allocated to Object Cache Monitor the SharePoint Publishing Cache Publishing cache hit ratio for your site collection Target hitting 90% plus If below that number then increase amount of memory allocated to Object Cache All caches share same object space in process Means no more than 2GB max on x32 windows Includes SharePoint DLLs and modules as well x64 can help here if you are memory constrained

Delay Downloading core.js Core.js is the biggest of the jscript files in WSS 3.0 / MOSS 2007 257k on disk, 54k compressed Not required at load time in most anonymous user scenarios Blog by Product Group describing how to delay loading it http://blogs.msdn.com/ecm/archive/2007/02/21/building-a-newpage-layout-which-does-not-reference-core-js-but-downloadsit-while-the-page-is-being-viewed-thereby-optimizingresponse-time.aspx

Delay Downloading Create custom layout page that doesn t use core.js Add this tag: <SharePointWebControls:ScriptLink runat="server"/> Means unless core.js is referenced, don t use it Create custom control to check for authenticated users if (HttpContext.Current.Request.IsAuthenticated) Microsoft.SharePoint.WebControls.ScriptLink.RegisterC ore(this.page, true); Put control in the GAC, mark as safe in web.config and add to layout page

Delay Downloading (continued) Add an IFRAME to the layout page; contents of the IFRAME page look like this: <body> <SharePoint:ScriptLink name="core.js" runat="server" /> <script language="javascript"> DisableRefreshOnFocus(); </script> </body> Publish, base Home page on this layout, and test First time anonymous user should not see core.js in page source, but it should end up in browser cache

Delay Downloading core.js Considerations Site Master Page and the System Master Page must be different; otherwise all pages in _layouts would not work right Only works for anonymous users; authenticated users always need it at load time for things like Site Actions menu Make sure master page doesn t have controls that require core.js at load time to work Make sure master page doesn t have any ScriptLink controls that load or reference core.js

DEMO Testing Performance After Caching Configurations James Petrosky Sr. Consultant / SharePoint Ranger Microsoft Consulting Services WW Office Servers Center of Excellence

Module Summary Use the tools to get a baseline and measure improvement Use anonymous or a small number of authenticated roles Use output cache, blob cache and object cache Know the considerations for each one and measure results Delay downloading core.js if you need quicker page display