0
votes

I want to get fluctuation in TPS using JMeter like given below

  • 1 TPS to 10 TPS -- 60 minutes
  • 2 TPS to 4 TPS -- next 60 minutes
  • 10 TPS to 15 TPS -- for next 60 Minutes
  • 1 TPS to 3 TPS -- for next 60 minutes

How to achieve such various TPS with respect to time. I am using jmeter 4.0 My Requests are like Login Application Create Order Active Order Disconnect order Cancel Order

  • Users: 300
  • Ramp Up: 300 seconds
  • Duration 4 Hours (14400 seconds)

Application can handle upto 45 TPS (Already Tested this) Here we want to Check Semaphore and Server Res. memory are increasing/decreasing as per TPS increase/Decrease. (This is my target of this test)

2

2 Answers

1
votes

For Your case you can use below link to understand the tree to create and use of throughput controller- Purpose of Throughput Controller?

And I would suggest you to use multiple Once only controller and apply throughput controller with each of them and define the throughput values you want to achieve one by one, For Example

  • Thread Group
  • Runtime Controller (60 minutes)
  • once only controller

    • HTTP Sampler
    • Throughput controller (1 TPS to 10 TPS)
  • Run-time Controller (next 60 minutes)

  • Once Only Controller
    • HTTP Sampler
    • Throughput Controller (2 TPS to 4 TPS)

You can see the progress in listeners( In graphical form).

Hope It works :)

0
votes

You should work with Ultimate Thread Group

In your case 3 lines with Hold Load For 3600 seconds

Each line will have different Initial delay, first is 0, second is 3600 (hour) and third is 7200 (2 hours)