what sql server performance - redgate · why monitor sql server? • understand the bad thing that...

14

Upload: others

Post on 29-Mar-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone
Page 2: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

What SQL Server Performance

Metrics Should You Monitor?

Kathi Kellenberger

Redgate Software

Page 3: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Who am I?

Kathi Kellenberger

Auntkathisql.com

[email protected]

@auntkathi

Page 4: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Why Monitor SQL Server?

• Understand the bad thing that is happening now…or just happened

• Know about those bad things before the phone rings!

• Predict problems

• Ensure good performance

• Resource planning

Page 5: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

What to Monitor?

Server

Instance

Database

Query

Page 6: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Server

• Status – offline?

• Errors

• Physical resources

• CPU utilization

• I/O utilization

• Memory utilization

Page 7: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Instance• Status – offline?

• Errors & alerts

• Physical resources

• Memory

• Blocking

• Workload

• Waits

Page 8: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Database

• Status – online?

• Backups

• Maintenance (index, stats, etc.)

• Growth

• Workload

Page 9: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Query

• Most frequent

• Most I/O

• Lonest running

• Most important

• Index tuning

Page 10: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Past Behavior

• What happened yesterday/last week/last month

• Baselines

• Trends

• “Those who do not learn from

history are doomed to repeat it.”

Page 11: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Predict Future Behavior

• Using trends

• Tracking growth over time

• Communicate with the business

• Understand the business

Page 12: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Tools• Perfmon

• Trace (deprecated)

• Extended Events

• DMVs and system views

• Query Store

• 3rd Party

Page 13: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Demo

Page 14: What SQL Server Performance - Redgate · Why Monitor SQL Server? • Understand the bad thing that is happening now…or just happened • Know about those bad things before the phone

Kathi Kellenberger

Simple Talk Editor

[email protected]

Thank you