Learn more about SQL Server tools

mssqltips logo
 

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Scripts          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories

 

Intelligent SQL Server and VMware Performance Monitoring Software - Database Performance Analyzer


By:   |   Last Updated: 2016-06-07   |   Comments   |   Related Tips: More > Monitoring

Problem

We have a large SQL Server environment supported by physical servers, VMware and cloud infrastructure.  We believe this architecture will be the reality for our organization for a number of years to come.  Unfortunately, we are facing a number of challenges.  We have frequent situations where the end user experience degrades.  My team of SQL Server professionals knows that no code changes have been made, so we start hunting for answers pouring over logs, querying the DMVs, etc.  Then out of nowhere the end user response time is back to normal with no changes from my team.  We have no explanation and we ask the operations, network, storage, etc. teams, no one tells us what changed to degrade the performance or bring the end user experience back to normal.  We need to have a single view of our environment, be able to measure the end user response time, understand when changes are made, get alerted on issues, understand the dependencies between the code, servers and storage.  We need to be more responsive to business and have predictable SQL Server performance, but we just do not have it together.  Can you give us some insight?

Solution

A predictable end user experience is not a mistake; it is a product of a coordinated team aligned with the same goals in mind.  As SQL Server professionals, a large part of the performance equation rests on our shoulders.  It is our responsibility is ensure high performance along with numerous operational items.  There could be a number of reasons why performance has degraded and returned to acceptable levels, but something would have to changed.  It could be:

  • VMware guest moves to a new host
  • VMware new guests moves the host supporting SQL Server
  • VMware offline guests get powered on the host supporting SQL Server
  • VMware resources change
  • Storage or SAN changes
  • Network changes
  • SQL Server statistics out of date
  • Large data process fragments a key index
  • Ad-hoc SQL Server process is running
  • Query parameter issues

In all of these situations it is critical to gain insight into your SQL Server environment to understand the root cause of the issue, begin remediation and validate that the end user performance is at acceptable levels.  As SQL Server Professionals, we can generally determine if there is an issue internal to the database if we are at work and available.  But if the issue occurs when we are in a meeting or no one brings the issue to our attention in time, it is tough to determine the root cause of the issue.  So what do we do?

In your environment, it sounds like another wildcard is VMware.  With physical servers we knew the hardware resources.  If the hardware changes, we knew about it because there was some sort of outage.  The same is true with the SQL Server load.  We know our SQL Servers, the general processing schedule and the unique application needs, so the general load placed on the servers and storage was fairly consistent with both direct attached storage and SANs.  But what happens when a VMware guest supporting our SQL Server moves to a new host?  How do we know if the existing guests and new guest will not impact one another? What do we do?

These types of challenges are common at many organizations.  To address these needs, I would like to introduce Database Performance Analyzer from SolarWinds to give you insight into both your SQL Server and VMware performance monitoring.  Database Performance Analyzer focuses on measuring wait times impacting the end user experience.  Wait time data is collected in a low impact, agentless manner to address real time and historical issues with meaningful correlation and drill down.  SQL Server and VMware performance data is consolidated to have a single view of the actionable items across the enterprise for physical, virtualized and infrastructure in the cloud to ensure high performance.  Let's check out what Database Performance Analyzer has to offer for SQL Server and VMware performance monitoring.

 

SQL Server Performance Monitoring

Database Performance Analyzer provides a seamless view of your database environment across physical, virtual and cloud infrastructure.  The main Database Performance Analyzer dashboard has two sections.  First, is a prioritized overview of the environment and the second is a listing of servers based on the database platform.  The top portion of the interface provides a priority list of servers experiencing issues related to Wait Time, Queries, CPU, Memory, Disk and Sessions.  When you click on any of the critical or warning icons in these sections, you can see the servers experiencing these issues and begin to research the issues.  The bottom portion of the interface lists all of the servers.  The servers are grouped based on database platform with the ability to see any issues related to Waits, Queries, CPU, Memory, Storage or Sessions.  When you click on any of the issues, you go directly to the server with the issue to begin the analysis.  Another key point is the Action drop down in the middle of the second interface. With this interface you can immediately navigate to the Current Activity, Virtual Machine Layers, Resources, Logs, Options and more.

 

 

After clicking on any of the server names from the main Database Performance Analyzer dashboard, you have the ability to slice the performance data based on Top SQL Statements, Wait Times, Programs, Databases, Machines, Database Users, Files, Drives or Query Plans.  Once you have sliced the data to identify the performance issue you are trying to resolve, you can see the wait times associated with the code, the offending code as well as recommendations to correct the code based on the high wait type.  This intuitive graphical interface enables you to quickly identify issues and get recommendations to correct the issue minimizing the impact to the organization.

 

 

We have just covered the very tip of the iceberg in terms of the SQL Server capabilities for Database Performance Analyzer.  For a comprehensive review of the SQL Server performance tuning capabilities with Database Performance Analyzer, check out this tip - Quickly Pinpoint SQL Server Performance Issues with SolarWinds Database Performance Analyzer.

 

SQL Server and VMware Performance Monitoring

In terms of pure SQL Server performance monitoring, Database Performance Analyzer is very feature rich.  But in many environments, the missing piece of the puzzle is the correlation between SQL Server and VMware performance.  Database Performance Analyzer has delivered a solution for SQL Server Professionals to bridge this gap and get insight into the VMware stack as it relates to SQL Server.  By clicking on the "Virtualization" link at the top of the page, you land on the same style of interface as shown above for the SQL Server monitoring, with prioritized enterprise metrics at the top and detailed metrics listed per server in the bottom section.  You have the same capabilities to drill into issues (Wait Time, CPU, Memory, Disk, Network and the Actions menu) from the top priority list or from the detailed listing.  Another noteworthy piece of data on this interface is the Host column.  This is sortable to identify which guests reside on a single host, which is a key piece of information many SQL Server Professionals have not had access to in the past.

 

 

Once you click on a server, you can navigate to the VM Layers interface with two sections.  The first section includes the Top SQL Statements, Wait Times, Disk Waits, Memory and CPU Waits, Programs and Databases. In this section you can drill into the SQL Server performance details.  The second section is a stacked layered approach with top down data including the Database Instance, Virtual Machine\Windows, Physical Host and Storage with numerous counters for each chart.  As you are troubleshooting and change dates, statements, etc., the data in both sections updates in real time to understand the performance metrics across both the SQL Server and VMware stack.

 

 

In the second section, stacked layered data, there are a few items that probably caught your eye:

  • Data Selection - Summary data is shown by default, but there are radio buttons to drill into details for CPU, Memory, Disk and Network to get more detailed data.
  • More Information - By hovering your mouse over any of the counters on the right of the charts initiates a pop-up box with more information about each of the counters to help understand the metric in the chart and whether the value is acceptable or not.
  • Arrows with Vertical Lines - Did the arrows with vertical lines catch your eye?  There are actually two types of lines that can appear on these charts.  They are annotations of a change to VMware. The first vertical line is a gray indicating a change has been made to the host.  The second is a blue line that indicates a change to the guest. 
    • When you hover your mouse over one of the arrows at the top of the line, a box pops up showing the events that occurred on that specific day.  These events include vMotion changes such as moving a guest to a new host, powering up or shutting down guests, etc.  Here is a screen shot as a point of reference.

 

 

As a SQL Server Professional, Database Performance Analyzer delivers insight into the entire stack which is information that you generally did not have access to before.  This gives you new insight into the virtualized environment without having to ask the infrastructure team or be a VMware expert.

 

Real Time Performance Metrics

In the Current interface for Database Performance Analyzer, you have access to the last 60 minutes of data with a focus on the SQL Server queries causing the most waits in the top section and four key metrics from a VMware perspective.  The VMware metrics include:

  • VM CPU Usage
  • Host CPU Usage
  • VM Active Memory Usage
  • Host Memory Usage

The SQL Server query data is split between three tabs:

  • Highest Total Execution Time
    • As you click on any of the values in the top bar graph you drill into the time slice with the VM Layers interface as shown in the previous section.  This enables you to get more contextual information about the query and resource utilization down to minute time slices to really dissect the performance issues.
  • Long Running (Average)
    • This is a listing of code with the ability to drill into the details and see the code causing the performance issues.
  • Most Executed
    • This is also a code listing with the number of executions and detailed code.

 

 

The Current interface in Database Performance Analyzer helps focus on the most recent database activity with the ability to drill into the details from both a SQL Server\VMware resource perspective as well as the actual code causing the issues.  The integration with the VM Layers interface enables you to see the full picture and quickly take action to resolve issues impacting the end user experience.

VMware Configuration

With physical servers you are able to see the CPU, memory and disk resources in the Windows and SQL Server tool sets.  With VMware you still have access to that information, but not have insight into the VMware infrastructure.  SolarWinds recognizes this information is valuable for SQL Server Professionals to troubleshoot performance issues and provides a read-only view of the VMware infrastructure in Database Performance Analyzer including:

  • Virtual Machine
  • Host
  • Cluster
  • Host VMs
  • Cluster VMs
  • VM Storage
  • Host Storage

 

 

Database Performance Analyzer delivers insight into the VMware infrastructure to help SQL Server Professionals understand the configuration and resources available to best help the organization maximize the infrastructure investment for the best user experience.

 

SQL Server and VMware Resource Utilization

As a SQL Server Professional under pressure to address performance issues on a daily basis, sometimes you get lost in the weeds.  Often times, taking a step back to review trending overtime can be very beneficial to understand overall resource consumption.  Database Performance Analyzer features the Resources tab which provides data trending on a per counter basis.  There are more than 60 counters with charts split by CPU, Memory, Disk, Disk Device, Network, Sessions, Waits and Licensing Compliance.  Data can be viewed over the last hour, 24 hours, 1 week, 1 month, 6 months or 1 year.  This can help to identify usage patterns, processing changes and more. 

 

 

For more information about each of the counters, click on the "Information" link on the bottom right of the interface to get more insight into the counter as shown below.

 

 

Long term performance trends are beneficial to understanding how a platform is meeting user needs, determining available capacity to support new users, addressing unexpected changes in resource utilization and more.  The charts in this portion of Database Performance Analyzer are a simple yet effective means to understand how your SQL Server and VMware platform is performing.

 

 How do I improve my performance monitoring?

  1. Go check out all of the performance monitoring resources available for SQL Server and VMware from Database Performance Analyzer.
  2. Download Database Performance Analyzer to see how it can help you.
  3. Think about all of the performance monitoring challenges you face: immediate resolution, real time and historical data, intelligent correlation, alerting, reporting, etc. and how Database Performance Analyzer can solve these problems.
  4. Communicate with your team and management about how you think Database Performance Analyzer will help.
    • Simplicity - Intuitive interface to drill into servers, databases, code, and more to track down the performance culprit
    • Correlation - Global view of SQL Server and VMware performance issues with the ability to easily drill into the issues
    • Resolution - Prioritized color coded issues list to quickly drill into the details for root cause analysis
    • Data - Access to real time and historical data for both SQL Server and VMware for the complete picture to ensure high performance
    • Comprehensive - Central browser based interface for insight and resolution across all major database platforms (SQL Server, Oracle, DB2, SAP ASE, AWS, etc.)
  5. Put Database Performance Analyzer through its paces in your environment, share the results with your team then determine your next steps.

 

 Next Steps

MSSQLTips.com Product Editorial sponsored by SolarWinds, makers of Database Performance Analyzer for SQL Server.



Last Updated: 2016-06-07


get scripts

next tip button



About the author
MSSQLTips author Jeremy Kadlec Since 2002, Jeremy Kadlec has delivered value to the global SQL Server community as an MSSQLTips.com co-founder and Edgewood Solutions SQL Server Consultant.

View all my tips
Related Resources




Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 


Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.



    



Learn more about SQL Server tools