Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error preloading the connection pool while running sql statement in Jmeter

Tags:

mysql

jmeter

Error preloading the connection pool while running sql statement in Jmeter.

I am using below env:

  • jdk1.8.0_151
  • apache-tomcat-7
  • commons-dbcp.jar (version: 2.1.1)
  • commons-pool2-2.4.2
  • apache-jmeter-3.1
  • mysql-connector-java-5.1.45-bin

pfa jdbc connection,jdbc_request,request,response_data,sampler_result screenshots

jdbc connection

jdbc_request

sampler request tab

sampler response tab

sampler result

like image 207
Avineesh Sikarwar Avatar asked Sep 16 '25 02:09

Avineesh Sikarwar


1 Answers

I had a similar question when even 10 max connection settings in oracle caused errors. I suggest you use 0 value in JDBC's Maximum number of connections as recommended in JMeter JDBC manual:

Maximum number of connections allowed in the pool. In most cases, set this to zero (0).This means that each thread will get its own pool with a single connection in it, i.e. the connections are not shared between threads.

like image 98
user7294900 Avatar answered Sep 17 '25 17:09

user7294900