Optimizing and Maintaining the Performance of a Microsoft Dynamics CRM 2011 Server Infrastructure
Total Page:16
File Type:pdf, Size:1020Kb
Optimizing and Maintaining the Performance of a Microsoft Dynamics CRM 2011 Server Infrastructure Microsoft Corporation Published August 2011 Updated August 2012 Abstract Performance tuning and optimization is a continuous balancing act between design decisions and resource availability. This white paper provides tips, tricks, and guidance for optimizing and maintaining the performance of a Microsoft Dynamics CRM 2011 server infrastructure. This document is provided "as-is". Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Active Directory, Excel, Hyper-V, Internet Explorer, Microsoft Dynamics, Microsoft Dynamics logo, MSDN, Outlook, Notepad, SharePoint, Silverlight, Visual C++, Windows, Windows Azure, Windows Live, Windows PowerShell, Windows Server, and Windows Vista are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners. Contents Optimizing and Maintaining a Microsoft Dynamics CRM 2011 Server Infrastructure ..................... 6 Applies To .................................................................................................................................... 6 Introduction ................................................................................................................................... 6 Overview of Optimizing a Server Infrastructure ........................................................................... 7 General Approach to Optimization and Maintenance .................................................................. 8 Optimizing Performance and Establishing a Baseline .............................................................. 8 Monitoring and Maintaining Performance ................................................................................. 9 Logical Architecture for Microsoft Dynamics CRM 2011.............................................................. 9 The Client Tier ........................................................................................................................ 10 The Application Tier ................................................................................................................ 10 The Data Tier .......................................................................................................................... 11 Server-Side Techniques for Optimizing the Client Tier .............................................................. 11 Using Compression Techniques ............................................................................................. 12 Configuring HTTP Compression ......................................................................................... 12 Using WAN Accelerator Hardware ...................................................................................... 14 Configuring Proxy Server Settings.......................................................................................... 14 Reducing E-Mail Traffic by Modifying Outlook Rules ............................................................. 15 Optimizing and Maintaining the Application Tier ........................................................................ 16 Optimizing and Maintaining Windows Server ......................................................................... 16 Optimizing the Performance of Windows Server ................................................................ 16 Configuring Windows Server for Optimal Performance ...................................................... 16 Considerations for Increasing the Ephemeral TCP Port Limit ............................................ 17 Monitoring the Performance of Windows Server .................................................................... 19 Optimizing and Maintaining the Microsoft .NET Framework and Microsoft .NET Applications ............................................................................................................................................. 19 Optimizing the Performance of the Microsoft .NET Framework .......................................... 19 Monitoring the Performance of Microsoft .NET Framework Applications ........................... 20 Optimizing and Maintaining Internet Information Services ..................................................... 22 Optimizing the Performance of Internet Information Services ............................................ 22 Optimizing the Performance of Integrated Windows Authentication and Kerberos Authentication .................................................................................................................. 22 Additional Optimization Considerations............................................................................... 23 Optimizing Microsoft .NET ThreadPool Settings ................................................................. 24 Monitoring the Performance of Internet Information Services ................................................ 25 Optimizing the Performance of Microsoft Dynamics CRM Server 2011................................. 25 Hardware and Software Requirements ............................................................................... 25 Enhancing Performance by Distributing Server Roles on Multiple Servers ........................ 26 Front End Server Roles ................................................................................................... 26 Back End Server Roles .................................................................................................... 27 Deployment Administration Server Roles ........................................................................ 27 Considerations for Distributing Server Roles ................................................................... 28 Throttling Client Synchronization Processes ....................................................................... 28 Limiting the Number of Records Returned by Aggregate Queries ...................................... 28 Optimizing the Performance of Queries against Large Datasets ........................................ 29 Best Practices .................................................................................................................. 29 Optimization Techniques ................................................................................................. 29 Optimizing the Performance of Applications Running Against Microsoft Dynamics CRM 2011 ................................................................................................................................. 32 Optimizing the Performance of the Microsoft Dynamics CRM Web Application ............. 32 Best Practices for Optimizing the Performance of Applications Running Against Microsoft Dynamics CRM 2011 .................................................................................................... 33 Optimizing the Performance of Microsoft Dynamics CRM Customizations ..................... 34 Optimizing the Performance of Custom Microsoft Dynamics CRM SDK Applications .... 35 Optimizing Microsoft Dynamics CRM Reporting Services...................................................... 36 Optimizing Report Performance ............................................................................................. 36 Optimization Guidelines ...................................................................................................... 37 Optimization Techniques ..................................................................................................... 37 Use SQL “Group By” ........................................................................................................ 37 Making Reports Pre-Filterable ......................................................................................... 37 Using Dynamic Excel or Filtered View Queries ............................................................... 38 Throttling Resources used for Reports and Data Visualizations ..................................... 38 Best Practices for Optimizing Workflow .................................................................................. 38 Optimizing and Maintaining the Data Tier .................................................................................. 41 Optimizing and Maintaining Microsoft SQL Server ................................................................. 41 Partition Alignment in Windows Operating Systems .............................................................. 42 Windows Server 2008: New Partitions ................................................................................ 42 Windows Server 2008: Pre-existing Partitions .................................................................... 43 Disabling Support for Parallel Plan Queries ........................................................................... 43 Using Efficient Queries ........................................................................................................... 43 Optimizing and Maintaining Query Performance ...................................................................