SQL Server performance Optimization RML Utilities

Source: Internet
Author: User
Tags import database

Database for SQL Server to do performance testing, in the Internet to find a lot of is introduced RML utilities, at that time on the Internet to see some other people's test results, feel this tool is magical, so dark determination must take the tool master, the next time to introduce my RML Utilities the way to study.

The first step: Learning SQL Server Automatic tool profile, this tool is very powerful, it can record a certain period of time, the server executes the SQL statement details, of course, this time period can be based on your needs to choose. The general setup time is 2 hours, or more. Of course, the more samples taken, the more accurate the results, but the speed of analysis will be affected by some of this can be self-grasp.

The second step: Save the data obtained by the profile to local and name the. trc file.

The third step: Install Rmlsetup_x86.msi, sometimes need to install ReportViewer.exe, if the conditions allow the installation of SQL Server installed on the machine. This is easier to manipulate and get and analyze. Because you need to work with the database when using RML analysis.

Fourth step: The TRC file in step 1 tracking in this machine 1.trc, input cmd, into the RML installation path, readtrace.exe–i "C:\1.trace.trc" –o "c:\temp\breakout" can appear magical analysis results and pictures;

Fifth step: CPU time is ordered by execution and the CPU execution maximum time statement for this time period can be obtained

This performance-affecting statement basically found out, the next is the optimization section.

Add:

1.trace files can also be used in Database Engine advisor optimization

2.RML analysis is a local generation of a database, the default is Perfanalysis, and the trace file data is standardized after the import database, to provide data for the report presentation

You can also connect to the Perfanalysis library and use stored procedures for analysis:

SQL Server performance Optimization RML Utilities

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.