I have to connect my JMeter script to AWS RDS database. When I am running my test with the below JDBC Connection configuration it is showing this error message:

java.sql.SQLException: 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 Connection configuration:

JDBC Connect Config screenshot

JDBC Request:

JDBC Request screenshot

Response Error Message:

Error Message screenshot

I already added mysql-connector-java-8.0.25.jar file in Jmeter's /lib folder, but it didn't help.

1

There are 1 best solutions below

0
On

From JMeter perspective your connection configuration looks OK, the problem is on RDS end. The only thing you can do from JMeter is try increasing JMeter logging verbosity for the MySQL Connector/J in order to get more troubleshooting information in jmeter.log file, the line to be added to JMeter's log4j2.xml file is:

<Logger name="com.mysql.jdbc" level="debug" />

Troubleshooting steps for RDS/AWS/MySQL: