shank087
shank087

Reputation: 492

Webservice testing using Jmeter

I am new to JMeter and I have been tasked to do a POC where I need to load test the webserivce. I learnt the basics like adding the test plan, adding threads, adding SOAP/RPC Requestsampler and I got the response as well. But, I am not sure how to achieve the below scenario using JMeter.

I need 600 users to hit the service per request/second (this should run for 10 minutes) and the 2nd scenario is about 2000 users to hit the service at 5 request/second (again this should run for 10 minutes)

Also, would it be possible for JMeter to handle this many number of threads/users?

Any inputs would be deeply appreciated.

Upvotes: 0

Views: 83

Answers (1)

Dmitri T
Dmitri T

Reputation: 168082

Given you properly configure JMeter it shouldn't be a problem to simulate 2k users, actually you may need more as if your web service response time will exceed 1 second - you won't be able to achieve 2k requests per second.

  1. Configuring JMeter:

    • Run test in non-GUI mode
    • Disable all Listeners (if any)
    • Increase JVM Heap size

    See 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure for detailed explanation and instructions

  2. Simulating 600 / 2000 requests per second.

    • Set "Loop Count" to Forever or -1 in Thread Group
    • Tick "Scheduler" box and set desired duration (600 seconds)
    • Add Constant Throughput Timer and specify the desired throughput in requests per minute
  3. It is recommended to use HTTP Request sampler for web services testing, you can set Content-Type and SOAPAction headers using HTTP Header Manager

Upvotes: 2

Related Questions