【发布时间】:2021-11-04 04:59:48
【问题描述】:
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet successfully received from the server was 976,464 milliseconds ago. The last packet sent successfully to the server was 974,674 milliseconds ago.
当我运行以下将 15 MB 文件发送到 AWS RDS 的测试计划时,JMeter 中出现此错误。
LoadTestPlan
JDBC Connection Configuration:
Max Wait ms: 0 (indefinite wait)
Max connections: 0 (no limit)
ThreadGroup
No. of threads: 200
Ramp up seconds: 100
Loop Count: Indefinite
Scheduled to run for 3 hours
JDBC Request
LOAD DATA LOCAL INFILE statement
RDS 配置
Engine 5.7.33
Max connections: 200
Innodb lock wait timeout: 6000
Max allowed packet: 64 MB
对于这个通信链接失败有很多解决方案,但对我来说,一些请求是成功的,而对于一些我得到了这个错误。因此我开始认为这是网络问题,但我使用的是 74 Mbps 速度的高速以太网。即使是网络问题,也必须有一些参数在调整后应该允许即使来自较差网络的连接也能成功。
JMter 版本:5.4
【问题讨论】:
标签: mysql jdbc jmeter amazon-rds