SlideShare ist ein Scribd-Unternehmen logo
1 von 24
2
About Me
Senior Program Manager (SQL Tiger Team)
8 Years
@talktosavjani
http://www.sqlserverfaq.net
https://blogs.msdn.microsoft.com/sql_server_team/
https://blogs.msdn.microsoft.com/sqlreleaseservices/
@mssqltiger
Understand What SQL Performance
Baselining means and why is it
required ?
Understand the tools available for
establishing a baseline in SQL
Server and monitoring
Learn how to use the
performance baseline tools
to understand and
troubleshoot performance
issues
See an performance baselining and
monitoring solution using SQL
Server and SSRS
• How slow is slow?
• How fast is fast?
Performance is relative
• Identifying Hardware Reqs based on current workload and resource utilization
Capacity Planning
• Identifying the current workload, resource utilization
Consolidation
• Estimate VM Size/configuration
• Estimate Cost
VirtualizationMigration to Cloud (Azure)
•Processor(*)% Processor Time
•Process(sqlservr)% Processor Time
•Processor(*)% Privileged Time
•Process(sqlservr)% Privileged Time
PROCESSOR
•Available Mbytes
•Memory Pages/sec
•Process(sqlservr)Private Bytes
•Process(sqlservr)Working Set
•SQLServer: Memory Manager Total Server Memory
•SQLServer: Memory Manager Target Server Memory
Memory
•PhysicalDisk(*)Avg. Disk sec/Read
•PhysicalDisk(*)Avg. Disk sec/Write
•PhysicalDisk Avg. Disk Queue Length
•Disk Bytes/sec
•Avg Disk Bytes/Transfer
•Process(sqlservr)IO Data Operations/sec
PHYSICAL DISK
•Network InterfaceBytes Received/sec
•Network InterfaceBytes Sent/sec
•Network Interface(*)Output Queue Length
Network IO
• SQL Server: SQL Statistics Batch Requests/sec
• SQL Server: SQL Statistics SQL Compilations/sec
• SQL Server: SQL Statistics SQL Recompilations/sec
• sys.dm_exec_requests
• Sys.dm_exec_sessions
• sys.dm_exec_connections
SQL Workload
• SQL Server: Wait Statistics
• Sys.dm_os_waiting_tasks
• Sys.dm_os_wait_stats
SQL Waits
• Sys.dm_db_index_physical_stats
• Sys.dm_db_index_operational_stats
• Sys.dm_db_index_usage_stats
Database Index fragmentation
• Max Workers
• Workers Created
• Idle Workers
• Deadlocks
Query Processing Health
• Latch Waits > 15 sec
• Locks > 30 sec
• IO Latch Timeouts
• Long IO Status
Lock & Latch Waits
• Deadlocked Scheduler
• Non-Yielding Scheduler
• Access Violations
• OOM
• Corrupt Pages Status
Fatal Issues
• API Name
• Error Code
Security Errors
SQL Server Tiger Team
• Data Collected in ring buffer target & *.xel files in Log
Folder ( 4 Rollover Files of 5MB)
• Increase System Health Xel File retention
ALTER EVENT SESSION [system_health] ON SERVER STATE = STOP
go
ALTER EVENT SESSION [system_health] ON SERVER
DROP TARGET package0.event_file
ALTER EVENT SESSION [system_health] ON SERVER
ADD TARGET package0.event_file
(SET filename=N'system_health.xel'
,max_file_size=(25),
max_rollover_files=(5))
GO
ALTER EVENT SESSION [system_health] ON SERVER STATE = START
go
12
Architecture
Monitoring
Server
SQL1 SQL2 SQL3 SQLN
SQL Servers in the Environment
db2
db1
dba_local
db2
db1
dba_local
db2
db1
dba_local
db2
db1
dba_local
Central Monitoring Server
SSRS Portal
SQL Server Version, Configuration,
OS information,
Database Properties, Size,
DataFile File Size,
Storage, Backup Information
SQL Server Resource Utilization,
Performance Data, Wait statistics
SQL Performance
Baseline Report
Parameters:
StartDate: 08/01/2015
EndDate: 08/16/2015
SQL Hourly Performance
Trend
Parameters:
SQL Server: <server-name> Date: 08/17/2015
SQL Memory Hourly
Trend
User Session Status
Database Storage Report
Database Index
Fragmentation Report
System Health Reports
PASS VC: SQL Server Performance Monitoring and Baselining

Weitere ähnliche Inhalte

Was ist angesagt?

Windows Azure Camps - Oktober 2012
Windows Azure Camps - Oktober 2012Windows Azure Camps - Oktober 2012
Windows Azure Camps - Oktober 2012
Einar Ingebrigtsen
 

Was ist angesagt? (20)

SQL Azure Overview
SQL Azure OverviewSQL Azure Overview
SQL Azure Overview
 
Geek Sync | SQL Security Principals and Permissions 101
Geek Sync | SQL Security Principals and Permissions 101Geek Sync | SQL Security Principals and Permissions 101
Geek Sync | SQL Security Principals and Permissions 101
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
 
Tarabica 2019 (Belgrade, Serbia) - SQL Server performance troubleshooting
Tarabica 2019 (Belgrade, Serbia) - SQL Server performance troubleshootingTarabica 2019 (Belgrade, Serbia) - SQL Server performance troubleshooting
Tarabica 2019 (Belgrade, Serbia) - SQL Server performance troubleshooting
 
SQL Azure
SQL AzureSQL Azure
SQL Azure
 
Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)
Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)
Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)
 
Advanced SQL Server Performance Tuning | IDERA
Advanced SQL Server Performance Tuning | IDERAAdvanced SQL Server Performance Tuning | IDERA
Advanced SQL Server Performance Tuning | IDERA
 
SQL Server 2019 Data Virtualization
SQL Server 2019 Data VirtualizationSQL Server 2019 Data Virtualization
SQL Server 2019 Data Virtualization
 
Azure database services for PostgreSQL and MySQL
Azure database services for PostgreSQL and MySQLAzure database services for PostgreSQL and MySQL
Azure database services for PostgreSQL and MySQL
 
Oracle on Azure at Windows Azure Conference 2014
Oracle on Azure at Windows Azure Conference 2014Oracle on Azure at Windows Azure Conference 2014
Oracle on Azure at Windows Azure Conference 2014
 
Tech ED 2014 Running Oracle Databases and Application Servers on Azurev1
Tech ED 2014   Running Oracle Databases and Application Servers on Azurev1Tech ED 2014   Running Oracle Databases and Application Servers on Azurev1
Tech ED 2014 Running Oracle Databases and Application Servers on Azurev1
 
Azure SQL Database Introduction by Tim Radney
Azure SQL Database Introduction by Tim RadneyAzure SQL Database Introduction by Tim Radney
Azure SQL Database Introduction by Tim Radney
 
Be Proactive: A Good DBA Goes Looking for Signs of Trouble | IDERA
Be Proactive: A Good DBA Goes Looking for Signs of Trouble | IDERABe Proactive: A Good DBA Goes Looking for Signs of Trouble | IDERA
Be Proactive: A Good DBA Goes Looking for Signs of Trouble | IDERA
 
SQL Database on Azure
SQL Database on AzureSQL Database on Azure
SQL Database on Azure
 
SQL server 2016 New Features
SQL server 2016 New FeaturesSQL server 2016 New Features
SQL server 2016 New Features
 
Windows Azure Camps - Oktober 2012
Windows Azure Camps - Oktober 2012Windows Azure Camps - Oktober 2012
Windows Azure Camps - Oktober 2012
 
Tech Ed North America 2014 - Java on Azure
Tech Ed North America 2014 - Java on AzureTech Ed North America 2014 - Java on Azure
Tech Ed North America 2014 - Java on Azure
 
Azure PaaS databases
Azure PaaS databasesAzure PaaS databases
Azure PaaS databases
 
SQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and EnhancementsSQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and Enhancements
 
Scalable relational database with SQL Azure
Scalable relational database with SQL AzureScalable relational database with SQL Azure
Scalable relational database with SQL Azure
 

Ähnlich wie PASS VC: SQL Server Performance Monitoring and Baselining

SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
sqlserver.co.il
 
What are you waiting for
What are you waiting forWhat are you waiting for
What are you waiting for
Jason Strate
 

Ähnlich wie PASS VC: SQL Server Performance Monitoring and Baselining (20)

Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
 
Ajuste (tuning) del rendimiento de SQL Server 2008
Ajuste (tuning) del rendimiento de SQL Server 2008Ajuste (tuning) del rendimiento de SQL Server 2008
Ajuste (tuning) del rendimiento de SQL Server 2008
 
SQL Server Performance Analysis
SQL Server Performance AnalysisSQL Server Performance Analysis
SQL Server Performance Analysis
 
Remote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New FeaturesRemote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New Features
 
Practical examples of using extended events
Practical examples of using extended eventsPractical examples of using extended events
Practical examples of using extended events
 
MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014
 
Developing on SQL Azure
Developing on SQL AzureDeveloping on SQL Azure
Developing on SQL Azure
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR Report
 
The Importance of Wait Statistics in SQL Server
The Importance of Wait Statistics in SQL ServerThe Importance of Wait Statistics in SQL Server
The Importance of Wait Statistics in SQL Server
 
Geek Sync I Learn to Troubleshoot Query Performance in Analysis Services
Geek Sync I Learn to Troubleshoot Query Performance in Analysis ServicesGeek Sync I Learn to Troubleshoot Query Performance in Analysis Services
Geek Sync I Learn to Troubleshoot Query Performance in Analysis Services
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi Vončina
 
Database Performance Tuning| Rahul Gulab Singh
Database Performance Tuning| Rahul Gulab SinghDatabase Performance Tuning| Rahul Gulab Singh
Database Performance Tuning| Rahul Gulab Singh
 
Presentation cloud control enterprise manager 12c
Presentation   cloud control enterprise manager 12cPresentation   cloud control enterprise manager 12c
Presentation cloud control enterprise manager 12c
 
What are you waiting for
What are you waiting forWhat are you waiting for
What are you waiting for
 
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
 
Investigate SQL Server Memory Like Sherlock Holmes
Investigate SQL Server Memory Like Sherlock HolmesInvestigate SQL Server Memory Like Sherlock Holmes
Investigate SQL Server Memory Like Sherlock Holmes
 
SQL Server 2014 Monitoring and Profiling
SQL Server 2014 Monitoring and ProfilingSQL Server 2014 Monitoring and Profiling
SQL Server 2014 Monitoring and Profiling
 
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...
SQLSaturday 664 - Troubleshoot SQL Server performance problems like a Microso...
 
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site ReviewECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

PASS VC: SQL Server Performance Monitoring and Baselining

  • 1.
  • 2. 2 About Me Senior Program Manager (SQL Tiger Team) 8 Years @talktosavjani http://www.sqlserverfaq.net https://blogs.msdn.microsoft.com/sql_server_team/ https://blogs.msdn.microsoft.com/sqlreleaseservices/ @mssqltiger
  • 3. Understand What SQL Performance Baselining means and why is it required ? Understand the tools available for establishing a baseline in SQL Server and monitoring Learn how to use the performance baseline tools to understand and troubleshoot performance issues See an performance baselining and monitoring solution using SQL Server and SSRS
  • 4.
  • 5. • How slow is slow? • How fast is fast? Performance is relative • Identifying Hardware Reqs based on current workload and resource utilization Capacity Planning • Identifying the current workload, resource utilization Consolidation • Estimate VM Size/configuration • Estimate Cost VirtualizationMigration to Cloud (Azure)
  • 6.
  • 7.
  • 8.
  • 9. •Processor(*)% Processor Time •Process(sqlservr)% Processor Time •Processor(*)% Privileged Time •Process(sqlservr)% Privileged Time PROCESSOR •Available Mbytes •Memory Pages/sec •Process(sqlservr)Private Bytes •Process(sqlservr)Working Set •SQLServer: Memory Manager Total Server Memory •SQLServer: Memory Manager Target Server Memory Memory •PhysicalDisk(*)Avg. Disk sec/Read •PhysicalDisk(*)Avg. Disk sec/Write •PhysicalDisk Avg. Disk Queue Length •Disk Bytes/sec •Avg Disk Bytes/Transfer •Process(sqlservr)IO Data Operations/sec PHYSICAL DISK •Network InterfaceBytes Received/sec •Network InterfaceBytes Sent/sec •Network Interface(*)Output Queue Length Network IO
  • 10. • SQL Server: SQL Statistics Batch Requests/sec • SQL Server: SQL Statistics SQL Compilations/sec • SQL Server: SQL Statistics SQL Recompilations/sec • sys.dm_exec_requests • Sys.dm_exec_sessions • sys.dm_exec_connections SQL Workload • SQL Server: Wait Statistics • Sys.dm_os_waiting_tasks • Sys.dm_os_wait_stats SQL Waits • Sys.dm_db_index_physical_stats • Sys.dm_db_index_operational_stats • Sys.dm_db_index_usage_stats Database Index fragmentation
  • 11. • Max Workers • Workers Created • Idle Workers • Deadlocks Query Processing Health • Latch Waits > 15 sec • Locks > 30 sec • IO Latch Timeouts • Long IO Status Lock & Latch Waits • Deadlocked Scheduler • Non-Yielding Scheduler • Access Violations • OOM • Corrupt Pages Status Fatal Issues • API Name • Error Code Security Errors
  • 12. SQL Server Tiger Team • Data Collected in ring buffer target & *.xel files in Log Folder ( 4 Rollover Files of 5MB) • Increase System Health Xel File retention ALTER EVENT SESSION [system_health] ON SERVER STATE = STOP go ALTER EVENT SESSION [system_health] ON SERVER DROP TARGET package0.event_file ALTER EVENT SESSION [system_health] ON SERVER ADD TARGET package0.event_file (SET filename=N'system_health.xel' ,max_file_size=(25), max_rollover_files=(5)) GO ALTER EVENT SESSION [system_health] ON SERVER STATE = START go 12
  • 13.
  • 14.
  • 15. Architecture Monitoring Server SQL1 SQL2 SQL3 SQLN SQL Servers in the Environment db2 db1 dba_local db2 db1 dba_local db2 db1 dba_local db2 db1 dba_local Central Monitoring Server SSRS Portal SQL Server Version, Configuration, OS information, Database Properties, Size, DataFile File Size, Storage, Backup Information SQL Server Resource Utilization, Performance Data, Wait statistics
  • 16.
  • 18. SQL Hourly Performance Trend Parameters: SQL Server: <server-name> Date: 08/17/2015

Hinweis der Redaktion

  1. http://www.sqlserverfaq.net/2011/01/31/what-perfmon-counters-should-i-monitor-and-what-each-of-them-mean/