SALES: 1-800-867-1380
Microsoft Azure
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Monitor and Tune for Performance

 

Updated: July 18, 2016

The goal of monitoring databases is to assess how a server is performing. Effective monitoring involves taking periodic snapshots of current performance to isolate processes that are causing problems, and gathering data continuously over time to track performance trends.

Ongoing evaluation of the database performance helps you minimize response times and maximize throughput, yielding optimal performance. Efficient network traffic, disk I/O, and CPU usage are key to peak performance. You need to thoroughly analyze the application requirements, understand the logical and physical structure of the data, assess database usage, and negotiate tradeoffs between conflicting uses such as online transaction processing (OLTP) versus decision support.

Microsoft SQL Server and the Microsoft Windows operating system provide utilities to view the current condition of the database and track performance as conditions change. There are a variety of tools and techniques you can use to monitor Microsoft SQL Server. Monitoring SQL Server helps you:

  • Determine whether you can improve performance. For example, by monitoring the response times for frequently used queries, you can determine whether changes to the query or indexes on the tables are required.

  • Evaluate user activity. For example, by monitoring users trying to connect to an instance of SQL Server, you can determine whether security is set up adequately and test applications or development systems. For example, by monitoring SQL queries as they are executed, you can determine whether they are written correctly and producing the expected results.

  • Troubleshoot problems or debug application components, such as stored procedures.

Changing conditions result in changing performance. In your evaluations, you can see performance changes as the number of users increases, user access and connection methods change, database contents grow, client applications change, data in the applications changes, queries become more complex, and network traffic rises. Using tools to monitor performance helps you associate changes in performance with changing conditions and complex queries. Examples::

  • By monitoring the response times for frequently used queries, you can determine whether changes to the query or indexes on the tables where the queries execute are required.

  • By monitoring Transact-SQL queries as they are executed, you can determine whether the queries are written correctly and producing the expected results.

  • By monitoring users that try to connect to an instance of SQL Server, you can determine whether security is set up adequately and test applications or development systems.

Response time is the length of time required for the first row of the result set to be returned to the user in the form of visual confirmation that a query is being processed. Throughput is the total number of queries handled by the server during a specified period of time.

As the number of users increases, so does the competition for a server's resources, which in turn increases response time and decreases overall throughput.

TopicTask
Monitor SQL Server ComponentsRequired steps to monitor any SQL Server component.
Performance Monitoring and Tuning ToolsLists the monitoring and tuning tools available with SQL Server.
Establish a Performance BaselineHow to establish a performance baseline.
Isolate Performance ProblemsIsolate database performance problems.
Identify BottlenecksMonitor and track server performance to identify bottlenecks.
Server Performance and Activity MonitoringUse SQL Server and Windows performance and activity monitoring tools.
Display and Save Execution PlansDisplay and save execution plans to a file in XML format.
Live Query StatisticsDisplay real-time statistics about query execution steps.
Monitoring Performance By Using the Query StoreUse Query Store to automatically capture a history of queries, plans, and runtime statistics, and retain these for your review.
Using the Query Store with In-Memory OLTPConsiderations for Memory-Optimized tables.
Best Practice with the Query StoreAdvice on using the Query Store.

Automated Administration Across an Enterprise
Database Engine Tuning Advisor
Monitor Resource Usage (System Monitor)
SQL Server Profiler

Community Additions

Show:
© 2016 Microsoft