Perform stress testing on the database with JMeter

Source: Internet
Author: User

Reprint: http://www.cnblogs.com/chengtch/p/6198900.html

In my opinion, the pressure test object can be divided into UI, interface and database three parts bar, the interface and interface of the pressure measurement is familiar,

Locating performance bottlenecks, performing a pressure test on database SQL is also required. What about the tools? or JMeter?

1. Put the required link Oracle's rack package into the JMeter

Under the database server installation path, locate Ojdbc5.jar, such as D:\app\Administrator\product\11.2.0\dbhome_1\jdbc\lib

Copy to Jmeter/lib

2, configuration JMeter

2.1 New Thread Group

Right-click the test Plan, select Add--thread--thread Group

2.2 Adding JDBC Connection Configuration

2.3 Configuring the JDBC Connection Configuration

2.4 Adding the JDBC Request from the Sampler sampler

2.5 Add listener View result tree, set assertion

2.6 Run tests to view query results

2.7 Set the collection point, number of threads, loop controller cycle times to perform the pressure test, needless to say

3. Common database Drive class and database address configuration

Perform stress testing on the database with JMeter

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.