JMeter testing MySQL Performance

Source: Internet
Author: User

1. Download JDBC. Unzip the JDBC and copy the Mysql-connector-java-version-ga-bin.jar file to Jmeter/lib

2. Open the JMeter and set the JDBC request.

1) dtbase url:jdbc:mysql://localhost:3306/datebasename. of which localhost : 3306, this is the server address you tested, Datebasename, this is the database name you tested. This URL is a connection to JDBC

2) Driver Class:org.gjt.mm.mysql.Driver or Com.mysql.jdbc.Driver If you can't connect to the database, you can try the other

3) Username: Login name for this database

4) Password: This is the login password for the database

5) write the SQL statement in SQL Query string to test.

Graphic explanation

Open JMeter, click Test Plan,

Click on the "Browse ..." button to add your JDBC driver.

3. Add a thread group, right-click on "Thread Group" and add a "JDBC Connection Configuration" below

To configure the JDBC Connection configuration page.

4. Right click on "Thread Group" and add a "JDBC request" below.

5. Add an assertion. Right-click the thread group----> Add---> Assert----> Response assertion.

6. Let's add some listeners to the line to view

Add an assertion result:

Right-click the thread group----> Add---> Listener----> Result assertion.

Add a graphical result:

Right-click the thread group----> Add---> Listener----> Graphical results.

Add a view result tree:

Right-click the thread group----> Add---> Listener----> View the results tree.

Here is a list of all the things to add:

7. Set the number of users, start time and number of cycles in the thread Group page

Click the menu bar "Run"----"Start"

Here's the result:

Seemingly complex database performance testing, in fact, is very simple, just follow the steps to be able to

JMeter testing MySQL Performance

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.