MySQL Performance test of JMeter

Source: Internet
Author: User

JMeter website Address: https://jmeter.apache.org/

As a developer, the necessary performance tests still need to be mastered, although the configuration of Druid can be more intuitive to achieve SQL execution time, those tables are accessed more and so on, but can not test SQL 1000 or 10,000 times what happens? This is where the performance test tool comes in handy, which simulates the user's access to the scene

JMeter is a good performance testing tool.

Testing MySQL performance can be as follows:

1. Add a jar file that connects to MySQL

No this file can go to the official website to download, after the successful download, put the file under the Jre/lib/ext file, otherwise it will not be tested

2. Set up thread groups, specify number of threads and number of thread cycles

3. Click Add to the thread group, the Configure Symbol option appears, then click on the configuration component's JDBC connectioin config appears as shown

One of the main things to fill out is the variable name, and the other is the four elements of a connected database that Java developers are familiar with.

4. Fill in the variable name in the corresponding 3 and fill in the corresponding SQL statement to test

5. In order to better see the test results, click the Add button for the thread group, there is a listener in many of the items displayed, click the Listener, you can choose how to visually view the test results

MySQL Performance test of JMeter

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.