SQL Nexus is a tool that helps you identify the root cause of SQL Server performance issues. It loads and analyzes performance data collected by SQLDiag and PSSDiag. It can dramatically reduce the amount of time you spend manually analyzing data.
With the RML Utilities you can answer questions such as the following:
- Which application, database or login is consuming the most resources, and which queries are responsible for that.
- Whether there were any plan changes for a batch during the time when the trace was captured and how each of those plans performed.
- What queries are running slower in today's data as compared to a previous set of data.
If you think you have OpsMgr SQL Server performance issues maybe SQL Nexus together with SQLDiag and RML Utilities can help with performance tuning and analysis.
- Download SQLNexus , RML Utilities for SQL Server, Microsoft Report Viewer 2008 Redistributable and PerfStatsScript from websites.
- Install Microsoft Report Viewer 2008 Redistributable
- Install RML Utilities for SQL Server.
- Install\Run SQLNexus by running sqlnexus.exe in folder where you extracted the zipfile.
- Connect to SQL server
- After starting SQLNexus a new database sqlnexus is created.
- Create a folder SQLDiag and Unzip PerfStatsScript files to folder.
- Open StartSQLDiagTrace.cmd and change configuration as needed.
- Give SQL server service account full control on D:\SQLDIAG folder if you aren’t using the local system account.
- Start D:\SQLDiag\StartSQLDiagTrace.cmd. This script registers sqldiag as a service and starts the service with a template (both profiler and perfmon trace)
Output is being dumped in D:\SQLDiag\SQLDiagOutput folder
On a busy system quite some data can be collected!!!!. Watch your freespace carefully! Customer experience on opsmgr environment with 2500 agents 20GB of data is collected in 10 minutes.
Have it running for 10 mins and then stop the SQLDiag service.
- Stop SQLDiag with StopSQLDiagTrace.cmd script.
- Importing trace data by selecting File\Import in SQLNexus tool.
Select Options and select BLG Blaster on Enabled and Drop Current DB before Importing.
Remark: If you are getting the Message PerfStatsAnalysis.sql doesn’t exist message. Just copy the PerfStatsAnalyis.sql file to the requested folder.
- The Next Reports are available:
- Via SQLNexus
- Bottleneck Analysis
- Blocking and Resource Wait Statistics
- Performance Overview with subreports
- Resource Consumption
- Unique Batch TopN
- Interesting Events
- Via SQLNexus
I want to thank David Scheltens for showing me how to use SQL Nexus and creating the PerfStatsScripts.
SQLDiag (installed default with SQL2005 and SQL2008)
PSSDiag (to use with SQL2000)