The jmeter tool implements stress testing and performance testing of the mysql database

The jmeter tool implements stress testing on the mysql database:

1. Create a new thread group and set the number of concurrent threads.

2. Create a new JDBC Connection Configuration in the "Configuration Components".

Configuration related properties:
variable name needs to define a name
connection pool configuration is to configure connection pool properties, including the maximum number of connections,
connection validation by pool
connection pool and connection validation by pool I temporarily use the default
mainly for configuration: database connection configuration This is the connection The string of the database, consistent with the general connection database string
database url:jdbc:mysql://10.190.215.231:3306/adsdb?useUnicode=true&characterEncoding=utf8
JDBC driver class:com.mysql.jdbc.Driver
username:account
password: Password

3. Create a new JDBC Request
Configure :
variable name needs to define a name
and write the corresponding sql in sql query. Currently only a simple query is

done Tabular View Results, Graphical Results, Aggregated Reports

5. Execute to view the results

Before executing, you need to put the jar package connected to the database under the lib package in the jmeter installation directory, save the above configuration -- "close --" restart -- "open and run,

otherwise the connection cannot be found. Database

driven See picture for details

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326390710&siteId=291194637