Close

April 30, 2014

Solving Could not create enough Components to service your request (Timed out) in Apache JMeter

After JDBC Connection Properties

Recently when I was working in JMeter to performance test the JDBC database, I got Could not create enough Components to service your request (Timed out) error. I was skeptical about how to solve this issue. I knew this is something related to the JDBC Connection Properties. There I tuned few of the parameters which yielded positive results.

How I troubleshooted the timed out error?

Follow the below steps to solve the timed out error:

  1. Go to your JDBC Connection Configuration
  2. Enter 0 (zero) in Max Number of Connections
  3. Enter 60000 in Pool Timeout

See the below screenshots. Also, instead of 0 in Max Number of Connections, you can enter ${__threadNum}

Before JDBC Connection Properties

Before JDBC Connection Properties

After JDBC Connection Properties

After JDBC Connection Properties

Here is the additional tip.

How to get the number of threads in run time and pass the value to the other elements? 

Use ${__threadNum} in the sampler which will throw the current value of threads. This function will be very useful in case if you want to calculate the timer based on the number of threads.

Subscribe to our free weekly newsletter now.

About NaveenKumar Namachivayam

Hi there! is a passionate and experienced Performance Test Analyst based in Chicago, USA with skill sets in Manual Testing, Test Automation, Performance Testing, and Test Estimation. He loves to learn and experiment new trends and models in Software Testing. Please stop by at his personal blogs: Excel Blog, DealsBrook, NaveenKumarN.in, and Affiliate Insights blog and Software Testing Memes.

2 Comments on “Solving Could not create enough Components to service your request (Timed out) in Apache JMeter

Hernan
June 11, 2015 at 12:20 am

Im sorry but this is not a solution; tried and failed miserably. Please, if you dont know squat about something, dont post it. This config would dramatically increase error percentage. This error indicates that the database is not capable of handling enough connections.

Reply
Vanessa
June 11, 2015 at 6:55 pm

Thanks a lot ! 🙂

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *