Search code examples
jmeterperformance-testing

Can we increase Thread count in JMeter during load test ? not scheduled increment..!


Can we increase Thread count in JMeter during load test ? i am using Jmeter3.2 version , how can i configure this or increase thread count during load test


Solution

  • You cannot manipulate the number of threads (virtual users) however you can control the number of requests per minute (aka throughput) in the real time, it should be a feasible alternative.

    1. Add Constant Throughput Timer to your Thread Group
    2. Define desired initial throughput as a JMeter Property using __P() function like ${__P(throughput,)}:

      JMeter Constant Throughput Timer

    3. That's it, now you can control how often your requests are executed by modifying throughput property for example using __setProperty() function. Moreover, you can even do this outside of JMeter via for example Beanshell Server