Performance Counters. Microsoft SQL. Technical Data Sheet. Overview:



Similar documents
One of the database administrators

VirtualCenter Database Performance for Microsoft SQL Server 2005 VirtualCenter 2.5

Chapter 15: AppInsight for SQL

The Complete Performance Solution for Microsoft SQL Server

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

Response Time Analysis

EZManage V4.0 Release Notes. Document revision 1.08 ( )

Performance Monitoring with Dynamic Management Views

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

MS SQL Performance (Tuning) Best Practices:

Managing and Monitoring Windows 7 Performance Lesson 8

Rackspace Cloud Databases and Container-based Virtualization

Optimizing Performance. Training Division New Delhi

Module 15: Monitoring

Enhancing SQL Server Performance

Microsoft SQL Server: MS Performance Tuning and Optimization Digital

SQL Server Performance Tuning and Optimization

Cognos Performance Troubleshooting

Response Time Analysis

Configuring Apache Derby for Performance and Durability Olav Sandstå

SQL Server. SQL Server 100 Most Asked Questions: Best Practices guide to managing, mining, building and developing SQL Server databases

Response Time Analysis

Dynamics NAV/SQL Server Configuration Recommendations

SQL Server 2012 Performance White Paper

Using Database Performance Warehouse to Monitor Microsoft SQL Server Report Content

Administering Microsoft SQL Server 2012 Databases

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

Solving Performance Problems In SQL Server by Michal Tinthofer

SQL Server Administrator Introduction - 3 Days Objectives

Microsoft SQL Server performance tuning for Microsoft Dynamics NAV

PERFORMANCE TUNING IN MICROSOFT SQL SERVER DBMS

SQL Server 2012 Optimization, Performance Tuning and Troubleshooting

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

PERFORMANCE TUNING FOR PEOPLESOFT APPLICATIONS

MOC 20462C: Administering Microsoft SQL Server Databases

High-Volume Data Warehousing in Centerprise. Product Datasheet

SAP HANA - Main Memory Technology: A Challenge for Development of Business Applications. Jürgen Primsch, SAP AG July 2011

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Microsoft SQL Database Administrator Certification

Benchmarking Cassandra on Violin

SQL Server Performance Assessment and Optimization Techniques Jeffry A. Schwartz Windows Technology Symposium December 6, 2004 Las Vegas, NV

DBMS Performance Monitoring

Throwing Hardware at SQL Server Performance problems?

Query Performance Tuning: Start to Finish. Grant Fritchey

About Me: Brent Ozar. Perfmon and Profiler 101

Summary: This paper examines the performance of an XtremIO All Flash array in an I/O intensive BI environment.

Oracle Architecture, Concepts & Facilities

Java DB Performance. Olav Sandstå Sun Microsystems, Trondheim, Norway Submission ID: 860

IBM DB2: LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs

Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit.

NUTECH COMPUTER TRAINING INSTITUTE 1682 E. GUDE DRIVE #102, ROCKVILLE, MD WEB: TEL:

IBM Tivoli Composite Application Manager for Microsoft Applications: Microsoft Internet Information Services Agent Version Fix Pack 2.

Accelerating Server Storage Performance on Lenovo ThinkServer

Monitoreo de Bases de Datos

Infor LN Performance, Tracing, and Tuning Guide for SQL Server

MS SQL Server 2005 Data Collector. Status: 12/5/2008

MS SQL Server 2000 Data Collector. Status: 12/8/2008

Virtuoso and Database Scalability

Capacity Planning Process Estimating the load Initial configuration

Your Data, Any Place, Any Time.

Dr.Backup Release Notes - Version

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

SQL diagnostic manager Management Pack for Microsoft System Center. Overview

SOLIDWORKS Enterprise PDM - Troubleshooting Tools

Your Data, Any Place, Any Time. Microsoft SQL Server 2008 provides a trusted, productive, and intelligent data platform that enables you to:

Improve Business Productivity and User Experience with a SanDisk Powered SQL Server 2014 In-Memory OLTP Database

MS Designing and Optimizing Database Solutions with Microsoft SQL Server 2008

Performance Troubleshooting Guide for Microsoft Business Solutions Navision

Microsoft SQL Server Solution 1.0 Guide

Managing Orion Performance

VMware vcenter 4.0 Database Performance for Microsoft SQL Server 2008

Oracle Rdb Performance Management Guide

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

Optimising SQL Server CPU performance

Microsoft SQL Server Beginner course content (3-day)

Crystal Reports Server 2008

Configuration and Development

vrops Microsoft SQL Server MANAGEMENT PACK User Guide

SQL Server 2012 Query. Performance Tuning. Grant Fritchey. Apress*

SQL Server 2005 Features Comparison

Best practices for operational excellence (SharePoint Server 2010)

WITH A FUSION POWERED SQL SERVER 2014 IN-MEMORY OLTP DATABASE

MS-40074: Microsoft SQL Server 2014 for Oracle DBAs

Data Warehousing Concepts

Seminar 5. MS SQL Server - Performance Tuning -

SQL Server 2012 End-to-End Business Intelligence Workshop

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

SQL Server 2008 Performance and Scale

Server Consolidation with SQL Server 2008

Condusiv s V-locity Server Boosts Performance of SQL Server 2012 by 55%

<Insert Picture Here> Best Practices for Extreme Performance with Data Warehousing on Oracle Database

Oracle and Sybase, Concepts and Contrasts

Microsoft. Course 20463C: Implementing a Data Warehouse with Microsoft SQL Server

Microsoft SharePoint 2010 on HP ProLiant DL380p Gen8 servers

SQL Anywhere 12 New Features Summary

Monitor and Manage Your MicroStrategy BI Environment Using Enterprise Manager and Health Center

Perfmon counters for Enterprise MOSS

Features Overview Guide About new features in WhatsUp Gold v12

SSIS Training: Introduction to SQL Server Integration Services Duration: 3 days

East Asia Network Sdn Bhd

Transcription:

Performance Counters Technical Data Sheet Microsoft SQL Overview: Key Features and Benefits: Key Definitions: Performance counters are used by the Operations Management Architecture (OMA) to collect data and answer the questions posed to the various devices by the polling engine to determine its state of wellbeing. These counters provide the OMA with the data and information it needs to establish how well an application, server, service or driver is performing and whether there are any issues. By comparing the counter result with the defined threshold, the OMA is able to determine a problem or predict a future problem. They are also used for capacity planning. Performance analysis Capacity planning Determine system bottlenecks Performance Counter: A performance counter is that part of a modern microprocessor or other device, system or software that measures and gathers performance relevant events of the device, system or software without affecting the performance of a Sourcing has spent a great deal of time building an expertise on this complex subject both in its OMA and its people. There are thousands of performance counters for each device, system or application and the selection of those counters which will provide the customer or technical team with the most value is where the complexity lies. To some degree, the selection of the counters is considered an art. The selection depends on what the application, device or system does for the organisation and how important that role is to the business. Monitoring for the sake of monitoring is a waste of resources, time and money. System fine-tune Application performance program. For example, one performance counter might count the number of level 1 data cache misses while another performance counter might count the number of data reads or data writes. Database Lock: Database management systems utilise locks

to provide concurrency control. Common uses of locks are to ensure that only one user can modify a record at a time and that data cannot be read while it is being modified. Locking mechanisms can be enforced at the row, table or page level. Database Deadlock: Client applications using the database may require exclusive access to a given table, and in order to gain exclusive access they ask for a lock. If two client applications both attempt to lock the same table at the same time, neither will receive it, there is no general way to decide who to give the lock to. In this case both clients will wait for the lock forever. Lock Waits: Indicate that at least one process is locked by the lock on another process. A request waits for a resource (a database table or a row of a table) that is locked exclusively by another user. Statistics for processes waiting on a lock. Log Buffer Waits: Statistics for processes waiting for log buffer to be available. Log Write Waits: Statistics for processes waiting for log buffer to be written. Memory Grant Queue Waits: Statistics for processes waiting for memory grant to become available. Network IO Waits: Statistics relevant to wait on network I/O. Page IO Latch Waits: Statistics relevant to page I/O latches. Page Latch Waits: Statistics relevant to page latches, not including I/O latches. Non-Page Latch Waits: Statistics relevant to non-page latches. Thread Safe Memory Waits: Statistics for processes waiting on thread-safe memory allocators. Transaction Ownership Waits: Statistics relevant to processes synchronising access to transaction. Wait For The Worker Waits: Statistics relevant to processes waiting for worker to become available. Performance Counters: The following performance counters are used by Sourcing and the OMA for the monitoring of Microsoft SQL: Page 2 of 15

Database Lock Instance Counters o SQL Server Average Wait Time ms: Reflects the average amount of wait time (milliseconds) for each lock request that resulted in a that could not be satisfied immediately and required the caller to wait before being granted the lock. o SQL Server Number Of Deadlocks Per Sec: Reflects the number of lock requests that resulted in a deadlock. o SQL Server Lock Waits Per Sec: Reflects the number of lock requests DBName Master o Active Transactions: Reflects the number of active update transactions for the database. o Log Cache Hit Ratio: Reflects the percentage of log cache reads that were satisfied from the log cache. o Log Flush Sec: Reflects the number of log flushes per second. o Log Flush Waits Sec: Reflects the number of commits waiting on log flush per second. o Log Flush Wait Time: Reflects the total wait time (milliseconds). o Percent Log Used: Reflects the percent of space in the log that is in use. o Transactions Per Sec: Reflects the number of transactions started for the database.

MSSQL Counters o Actual Buffer Pages: Reflects the number of pages in the buffer pool including database, free and stolen. o Average Latch Wait Time ms: Reflects the average latch wait time (milliseconds) for latch requests that had to o Buffer Cache Hit Ratio: Percentage of pages found in the buffer cache without having to read from disk. The ratio is the total number of cache hits divided by the total number of cache lookups since SQL Server was started. After a long period of time, the ratio moves very little. Because reading from the cache is much less expensive than reading from disk, you want this ratio to be high. Generally, you can increase the buffer cache hit ratio by increasing the amount of memory available to SQL Server. o Buffer Free List Stalls Per Sec: Reflects the number of requests that had to wait for a free page. o Buffer Free Pages: Reflects the total number of pages on all free lists. o Free Space Scans Per Sec: Reflects the number of scans per second that were initiated to search for free space within pages already allocated to an allocation unit to insert or modify record fragments. Each scan may find multiple pages. o Full Scans Per Sec: Reflects the number of unrestricted full scans. These can either be base table or full index scans. o Ideal Buffer Pages: Reflects the ideal number of pages in the buffer pool. o Index Searches Per Sec: Reflects the number of index searches. Index searches are used to start range scans, single index record fetches, and to reposition within an index. Page 4 of 15

o Latch Waits Per Sec: Reflects the number of latch requests that could not be granted immediately and had to wait before being granted. o Maximum Workspace Memory KB: Reflects the total amount of memory granted to executing processes. This memory is used primarily for hash, sort and create index operations. o Memory Manager Grants Pending: Reflects the current number of processes waiting for a workspace memory grant. o Page Life Expectancy: Reflects the number of seconds a page will stay in the buffer pool without references. that occur as a result of overflowing index pages. o Total Latch Wait Time ms: Reflects the total latch wait time (milliseconds) for latch requests that had to wait in the last second. o Total Server Memory: Reflects the total amount of dynamic memory the server is currently consuming. o Work Files Created Per Sec: Reflects the number of work files created per second. For example, work files could be used to store temporary results for hash joins and hash aggregates. o Work Tables Created Per Sec: Reflects the number of work tables created per second. For example, work tables could be used to store temporary results for query spool, LOB variables, XML variables, and cursors. o Page Splits Per Sec: Reflects the number of page splits per second Page 5 of 15

MSSQL Load o Batch Requests Sec: Reflects how busy the SQL server is. This counter measures the number of batch requests that SQL Server receives per second, and generally follows in step to how busy your server's CPUs are. Generally speaking, over 1000 batch requests per second indicates a very busy SQL Server, and could mean that if you are not already experiencing a CPU bottleneck, that you may very well soon. Of course, this is a relative number, and the bigger your hardware, the more batch requests per second SQL Server can handle. From a network bottleneck approach, a typical 100 Mbs network card is only able to handle about 3000 batch requests per second. If you have a server that is this busy, you may need to have two or more network cards, or go to a 1 Gbs network card. o Compilations Sec: This measures how many compilations are performed by SQL Server per second. Generally speaking, if this figure is over 100 compilations per second, then you may be experiencing unnecessary compilation overhead. A high number such as this might indicate that you server is just very busy, or it could mean that unnecessary compilations are being performed. For example, compilations can be forced by SQL Server if object schema changes, if previously parallelised execution plans have to run serially, if statistics are recomputed, or if a number of other things occur. In some cases, you have the power to reduce the number of unnecessary compilations.

MSSQL Cache Counters This is the pool of memory pages containing the execution plans for all Transact-SQL statements currently executing in the instance. An important indicator of the performance of the procedure cache is the Procedure Cache Hit Ratio performance counter. It indicates the percentage of execution plan pages found in memory as opposed to disk. o Total: Information for all types of cache instances. o Ad hoc SQL Plans: Query plans produced from an ad hoc Transact- SQL query, including autoparameterized queries. SQL Server caches the plans for ad hoc SQL statements for later reuse if the identical Transact-SQL statement is later executed. o Cursors: Ratio between cache hits and lookups. It is the ratio of the number of times an open cursor was found divided by the number of times a cursor was sought. o Execution Contexts: From a query plan, an execution context is derived. Execution contexts hold the values needed for a specific execution of a query plan. Execution contexts are also cached and reused. Each user concurrently executing a batch will have an execution context that holds data (such as parameter values) specific to their execution. Although execution contexts are reused, they are not reentrant (i.e., they are singlethreaded). That is, at any point of time, an execution context can be executing only one batch submitted by a session, and while the execution is happening, the context is not given to any other session or user. o Misc. Normalized Trees: Normalized trees for views, rules, computed columns, and check constraints.

o Prepared SQL Plans: Query plans that correspond to Transact-SQL statements prepared using sp_prepare, sp_cursorprepare, or auto-parameterization. Userparameterized queries (even if not explicitly prepared) are also monitored as Prepared SQL Plans. o Procedure Plans: Query plans generated by creating a stored procedure. o Replication Procedure Plans: Query plans of a replication system stored procedure. o Trigger Plans: Query plans generated by creating a trigger. MSSQL Wait Statistics SQL Server Counters o Lock Waits: Indicate that at least one process is locked by the lock on another process. A request waits for a resource (a database table or a row of a table) that is locked exclusively by another user. Statistics for processes waiting on a lock. Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to of o Log Buffer Waits: Statistics for processes waiting for log buffer to be available. Average wait time ms: Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to Page 8 of 15

of o Log Write Waits: Statistics for processes waiting for log buffer to be written. Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to of o Memory Grant Queue Waits: Statistics for processes waiting for memory grant to become available. Average wait time ms: Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to of processes currently waiting on the following type. Waits started per second: Number of waits started per second of the selected type of o Network IO Waits: Statistics relevant to wait on network I/O. Average Wait Time (ms) is the average wait time in milliseconds Page 9 of 15

for each lock request that has had to of o Page IO Latch Waits: Statistics relevant to page I/O latches. Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to Cumulative wait time ms per second: Aggregated wait time per second, for the selected type of o Page Latch Waits: Statistics relevant to page latches, not including I/O latches. Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to of o Non-Page Latch Waits: Statistics relevant to non-page latches. Average Wait Time (ms) is the average wait time in milliseconds Page 10 of 15

for each lock request that has had to per second, for the selected type of Waits in progress: Number of processes currently waiting on the following type. o Thread Safe Memory Waits: Statistics for processes waiting on thread-safe memory allocators. Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to of o Transaction Ownership Waits: Statistics relevant to processes synchronising access to transaction. Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to of o Wait For The Worker Waits: Statistics relevant to processes waiting for worker to become available. Page 11 of 15

Average Wait Time (ms) is the average wait time in milliseconds for each lock request that has had to of SQL Services Counters o Service Operating State SQL Server Agent MSSQLSERVER: Reflects the state of the SQL server agent service. The SQL Server Agent is a Microsoft Windows service that executes scheduled administrative tasks, which are called jobs. SQL Server Agent uses SQL Server to store job information. Jobs contain one or more job steps. Each step contains its own task, for example, backing up a database. SQL Server Agent can run a job on a schedule, in response to a specific event, or on demand. o Service Operating State SQL Server Browser: Reflects the state of the SQL server browser service. The SQL Server Browser listens for incoming requests for Microsoft SQL Server resources and provides information about SQL Server instances installed on the computer. o Service Operating State SQL Server Integration Services: Reflects the state of the Integration Services. Microsoft Integration Page 12 of 15

Services is a platform for building enterprise-level data integration and data transformations solutions. You use Integration Services to solve complex business problems by copying or downloading files, sending e-mail messages in response to events, updating data warehouses, cleaning and mining data, and managing SQL Server objects and data. o Service Operating State SQL Server MSSQLSERVER: Reflects the state of the SQL instance running on the server. o Service Operating State SQL Server VSS Writer: Reflects the state of the SQL Server VSS Writer service which provides added functionality for backup and restore of SQL Server through the Volume Shadow Copy Service framework. When running, Database Engine locks and has exclusive access to the data files. When the SQL Writer Service is not running, backup programs running in Windows do not have access to the data files, and backups must be performed using SQL Server backup. Use the SQL Writer Service to permit Windows backup programs to copy SQL Server data files while SQL Server is running. o Service Operating State SQL Server Analysis Services MSSQLSERVER: Reflects the state of the Analysis service. Microsoft SQL Server Analysis Services (SSAS) delivers online analytical processing (OLAP) and data mining functionality for business intelligence applications. Analysis Services supports OLAP by letting you design, create, and manage multidimensional structures that contain data aggregated from other data sources, such as relational databases. For data mining applications, Analysis Services lets you design, create, and visualize data mining models that are constructed from other data sources by using a wide variety of industry-standard data mining algorithms. o Service Operating State SQL Server Full Text Search MSSQLSERVER: Reflects the state of the Full Text Search service. Page 13 of 15

SQL Server 2008 provides the functionality for applications and users to issue full-text queries against character-based data in SQL Server tables. Before fulltext queries can be run on a given table, the database administrator must create a full-text index on the table. The full-text index includes one or more characterbased columns in the table. o Service Operating State SQL Server Reporting Services MSSQLSERVER: Reflects the state of the reporting services service. SQL Server Reporting Services is a comprehensive, serverbased solution that enables the creation, management, and delivery of both traditional, paper-oriented reports and interactive, Web-based reports. An integrated part of the Microsoft Business Intelligence framework, Reporting Services combines the data management capabilities of SQL Server and Microsoft Windows Server with familiar and powerful Microsoft Office System applications to deliver real-time information to support daily operations and drive decisions. o Service Operating State MSSQL Server OLAP Service: Reflects the state of the OLAP service. OLAP Services is a fully featured OLAP capability that is a component of Microsoft SQL Server. OLAP Services includes a middle-tier server that allows users to perform sophisticated analyses on large volumes of data with exceptional performance. A second feature of OLAP Services is a client cache and calculation engine called Microsoft PivotTable Service, which helps improve performance and reduce network traffic. PivotTable Service allows users to conduct analyses while disconnected from the corporate network. OLAP is a key component in the data warehousing Page 14 of 15

process, and OLAP Services provides essential functionality for a wide array of applications ranging from corporate reporting to advanced decision support. Technical Specifications: Contact Information: Learn More: Microsoft SQL performance counters. Sourcing Sales Department Daniel Lorenzo Mike Tel: +27 11 250-4653 Tel: +27 11 250-4622 Tel: +27 11 250-4621 Mail: daniel@sourcing.co.za Mail: lorenzo@sourcing.co.za Mail: mike@sourcing.co.za For more information, please visit our website on www.sourcing.co.za or contact us on requests@sourcing.co.za or +27 11 250 4600 Page 15 of 15