由于业务需要,需要进行数据库性能测试,记录过程进行学习

测试前期准备:

1.测试点准备及需求点

a.性能测试目的

b.jmeter测试数据库基本脚本  get

c.数据库性能监控工具选择

d.服务器性能监控选择

 

2.业务场景

3.数据库及服务器监控

4.测试数据准备

 

jmeter链接数据库:

在链接数据库之前,一定要记得查看jmeter  lib/etc目录下是否存在相应mysql或者其他数据库配置jar包,

如果没有这个配置,可能就会报错,

jmeter Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

步骤

1.jdbc connection configration 配置

jmeter元件找到.jdbc connection configration 

 

 

各参数名含义:

2.添加线程组

3.添加jdbc request

各参数含义:

 

配置好后,报错:Cannot create PoolableConnectionFactory (Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)

原因:jdbc配置写错了,把配置的用户的端口号写错

解决办法:正确配置端口号

 

jmeter配置的元件参数详情解释,这篇博客很不错,可以详细阅读

https://www.cnblogs.com/0201zcr/p/5280090.html

 

相关文章:

  • 2021-04-23
  • 2021-04-08
  • 2021-12-15
  • 2021-04-20
  • 2022-01-07
  • 2022-01-17
猜你喜欢
  • 2021-11-29
  • 2022-01-07
  • 2021-10-21
  • 2022-01-07
  • 2021-06-20
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案