Troubleshooting SQL Server Enterprise Geodatabase Performance Issues. Matthew Ziebarth and Ben Lin



Similar documents
Optimize Your Deployment Using Best Practices

Tuning Microsoft SQL Server for SharePoint. Daniel Glenn


Administering your PostgreSQL Geodatabase

DATABASE ANALYST I DATABASE ANALYST II

Preparing a SQL Server for EmpowerID installation

The 5-minute SQL Server Health Check

Administering Microsoft SQL Server 2012 Databases

The Database is Slow

Squeezing The Most Performance from your VMware-based SQL Server

IBM Tivoli Monitoring V6.2.3, how to debug issues with Windows performance objects issues - overview and tools.

2 Working with a Desktop GeoDatabase

SQL Server 2012 Optimization, Performance Tuning and Troubleshooting

Throwing Hardware at SQL Server Performance problems?

Administering your Oracle Geodatabase

SYSTEM SETUP FOR SPE PLATFORMS

IOS110. Virtualization 5/27/2014 1

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

An Esri White Paper February 2011 Best Practices for Storing the ArcGIS Data Reviewer Workspace in an Enterprise Geodatabase for Oracle

Administering Your Microsoft SQL Server Geodatabase

UBGP008: Maximizing SQL Server Performance with Microsoft Dynamics GP. John Lowther

Enhancing SQL Server Performance

Optimizing Performance. Training Division New Delhi

Support Document: Microsoft SQL Server - LiveVault 7.6X

Enterprise Architectures for Large Tiled Basemap Projects. Tommy Fauvell

Hands-On Microsoft Windows Server 2008

Exam Number/Code : Exam Name: Name: PRO:MS SQL Serv. 08,Design,Optimize, and Maintain DB Admin Solu. Version : Demo.

Enterprise Network Deployment, 10,000 25,000 Users

Storage and SQL Server capacity planning and configuration (SharePoint...

Dynamics NAV/SQL Server Configuration Recommendations

Sawmill Log Analyzer Best Practices!! Page 1 of 6. Sawmill Log Analyzer Best Practices

CA ARCserve and CA XOsoft r12.5 Best Practices for protecting Microsoft SQL Server

Backup/Restore Microsoft SQL Server 7.0 / 2000 / 2005 / 2008

Microsoft SQL Server Guide. Best Practices and Backup Procedures

An Esri White Paper February 2011 Best Practices for Storing the ArcGIS Data Reviewer Workspace in an Enterprise Geodatabase for SQL Server

Microsoft SQL Server OLTP Best Practice

AE EHR Database Servers

Performance Tuning Guidelines for PowerExchange for Microsoft Dynamics CRM

MOC 20462C: Administering Microsoft SQL Server Databases

ArcSDE Database Servers Tutorial

ArcGIS for Server: Administrative Scripting and Automation

MS SQL Server 2014 New Features and Database Administration

Very Large Enterprise Network Deployment, 25,000+ Users

Optimizing SQL Server 2012 for SharePoint SharePoint Saturday/Friday, Honolulu March 27, 2015

GeoManitoba Spatial Data Infrastructure Update. Presented by: Jim Aberdeen Shawn Cruise

Using SQL Server 2014 In-Memory Optimized Columnstore with SAP BW

Best Practices Guide. McAfee epolicy Orchestrator Software

White Paper. Freeance Mobile for Cityworks

ArcGIS 9. Installation Guide: Workgroup for Microsoft SQL Server Express

ArcSDE Configuration and Tuning Guide for Oracle. ArcGIS 8.3

Geospatial Server Performance Colin Bertram UK User Group Meeting 23-Sep-2014

Very Large Enterprise Network, Deployment, Users

Exam : Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 2. Title : The safer, easier way to help you pass any IT exams.

System Requirements and Configuration Options

Best Practices Guide Revision B. McAfee epolicy Orchestrator Software

Hardware/Software Guidelines

ION EEM 3.8 Server Preparation

Microsoft SQL Server Decision Support (DSS) Load Testing

ArcGIS 10.1 Geodatabase Administration. Gordon Sumerling & Christopher Brown

ArcSDE Spatial Data Management Roles and Responsibilities

1. Technical requirements 2. Installing Microsoft SQL Server Configuring the server settings

Table of Contents. Introduction. Audience. At Course Completion

Hardware Performance Optimization and Tuning. Presenter: Tom Arakelian Assistant: Guy Ingalls

Distribution One Server Requirements

Virtuoso and Database Scalability

Mind Q Systems Private Limited

Performance Verbesserung von SAP BW mit SQL Server Columnstore

ArcGIS Server and Geodatabase Administration for 10.2

Database Configuration Guide

Microsoft SQL Database Administrator Certification

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Avamar Backup and Data De-duplication Exam

50238: Introduction to SQL Server 2008 Administration

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

Configuring Apache Derby for Performance and Durability Olav Sandstå

Database Servers Tutorial

Preparing an IIS Server for EmpowerID installation

SQL Server Business Intelligence on HP ProLiant DL785 Server

Environment Optimization Guide

Best Practices Every SQL Server DBA Must Know

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

Web Server (Step 1) Processes request and sends query to SQL server via ADO/OLEDB. Web Server (Step 2) Creates HTML page dynamically from record set

SharePoint 2010 Performance and Capacity Planning Best Practices

Novell File Reporter 2.5 Who Has What?

PROJECT: ArcGIS Server Hosting

Description of Application

Geodatabase Programming with SQL

ArcGIS Server Performance and Scalability Testing Methodologies. Andrew Sakowicz, Frank Pizzi

SQL Best Practices for SharePoint admins, the reluctant DBA. ITP324 Todd Klindt

MDM Multidomain Edition (Version 9.6.0) For Microsoft SQL Server Performance Tuning

SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1

ArcSDE for Microsoft SQL Server Administration. Rob Stauder, ESRI

Deploying and Optimizing SQL Server for Virtual Machines

Five Best Practices for Maintaining an Enterprise Geodatabase

PARALLELS SERVER 4 BARE METAL README

Minimum Requirements for Cencon 4 with Microsoft R SQL 2008 R2 Express

ArcGIS for Desktop Best Practices in a Citrix XenApp Environment. Jeff DeWeese Sr. Technical Architect Esri January 4, 2013

Minimum Requirements for Cencon 4 with Microsoft R SQL 2008 R2 Standard

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

Transcription:

Troubleshooting SQL Server Enterprise Geodatabase Performance Issues Matthew Ziebarth and Ben Lin

Troubleshooting SQL Server Enterprise Geodatabase Performance Issues AGENDA General configuration recommendations Recovery models & log space Trace flag 4199 Max Degree of Parallelism Demo on MAXDOP Final Notes Q & A

General configuration recommendations

The ArcSDE DBTUNE Table Use the DBTUNE table to separate data types This is not just for performance, but also for data recovery A RAID will not eliminate all disk contention and I/O Flash storage will not compensate for data file contention

Types of data to separate In DBTUNE: - Business tables from delta tables - Business indexes from delta indexes - Complex dataset types such as networks, topologies B IX On DISK: - Data files from log files

Recovery models & log space

The log may be slowing you down LDF files become very large Writing to any log file takes time

Recovery Models Simple Model. No log backups. Work-loss exposure = last full database backup. This may be suitable for your organization. Full Model. Large log backups including all transactions. Near-zero work-loss exposure. These logs must be stored on server as well as backed up to ensure full historical point in time recovery. Data file corruption, no problem. Bulk Model. Reduced size of Full but still large log files. Work-loss exposure = last log backup. No point in time recovery. +

Recovery Models

Log Location

Trace flag 4199 The Principle of Least Surprises

Trace Flag 4199 Trace flag 4199, per Microsoft: Controls multiple query optimizer changes previously made under multiple trace flags. And...any hotfix that could potentially affect the execution plan of a query must be controlled by a trace flag. Except for fixes to bugs that can cause incorrect results or corruption, these hotfixes are turned off by default, and a trace flag is required to enable the fix. - Enable this globally to take advantage of bug fixes.

Max Degree of Parallelism

What comprises Degree of Parallelism? The DOP is based on multiple factors of the OS and the Database Instance: - # of available CPU Cores - # of available logical threads - Type of query - # of rows returned - Availability of distribution statistics Hardware + Utilization + Query + Output + Stats = DOP

What is a CPU Core Count? The physical number of cores on the CPU within the processor packages To find this: Click on Run and type MSINFO32

What is the Thread Count? If the CPU uses multi-threading, the logical thread count is the core count x2. x 2

What Type of Query? The query operators, or query steps, need to be expensive to take advantage of parallelism. Otherwise the query will execute serially. Mathematically, parallelism is used when the estimated cost of the operation is higher than the cost threshold for parallelism setting.

What are Distribution Stats? Refers to high or low (poor) selectivity Unique key has high selectivity; there is 1 Ben will demonstrate this in the DEMO The actual selectivity is not as important for DOP as maintaining these statistics.

The Cost Threshold for Parallelism If the SQL Server query optimizer believes a query operator will take this amount of cost units (in seconds) if run serially, this parameter is reached. The default is 5 and can be set between 0 and 32767 seconds, or about 9 hours. Threshold is reached, therefore parallelism! This is a very old default value but your data design factors into changing it. The coordination of the parallel threads also has a hidden cost!

Does this affect you??

Why is this happening? It s a complex bug in that the inverse of what you would expect to occur, occurs. Query Optimizer incorrectly computes it would be fastest to coordinate all available threads to return your spatial results. The Spatial Index is not used! This is intermittent because if utilization is high and spare cores do not exist to use within a query, parallelism isn t an option sometimes.

How do we diagnose? This will come in to your GIS/T department as a performance problem that will be intermittent and inverse to server load. Get the full configuration of the SQL Server database (exact build) and the database server hardware such as CPUs, Cores, Processors, Model/Brand, and RAM. Ask about utilization trends. SQL trace or Execution plan check for spatial index. *This issue only applies to SQL Server Geometry or Geography types.

How do we fix this? The fastest way to diagnose and fix this is to alter the MAXDOP setting. (In a Test environment first, preferably) 1 = DISABLE parallelism. 2 = 2 cores per operator, and so on. Generally users should find a sweet spot MAXDOP setting or adjust per data. THIS SETTING DOES NOT REQUIRE A RESTART OF ANY KIND. IT IS DYNAMIC. When you can, patch this. Please see KB articles on final page. *The default was finally changed from 0 to a hardware calculation in SS 2016!

MAXDOP Demo Ben Lin

Final Notes Check your MAXDOP settings! Make sure your feature classes have a spatial index Use Compress, Analyze Datasets, Rebuild Indexes often Use SQL Server Profiler Examine execution plans Enable SDE Intercept Contact Esri Technical Support for assistance

Thank you Please fill out the session survey in your mobile app - Select Troubleshooting SQL Server Enterprise Geodatabase Performance Issues in the Mobile App - Use the Search Feature to quickly find this title - Click Demo Theater Survey - Answer a few short questions and enter any comments

Esri Documentation Want to learn more? ArcGIS 10.3 SQL Server DBTUNE configuration parameters Esri KB 35704 - SDE Intercept Esri KB 38871 - SQL Server MAXDOP Esri KB 36617 - SQL Server Spatial Index Hinting Microsoft Documentation MS KB 2570501 - MAXDOP Bug Fix for 2008 MS KB 2757097 - MAXDOP bug in 2012 - Defect 630366 Defect 20179508 - Spatial index not used on multiproc machine unless MAXDOP set downward MS Premier Field Engineer MAXDOP tips SQL Server Recovery Models Trace flag 4199 Give us a call at ESRI Technical Support at 888-377-4575

Questions?