Load Configuration

BlazeMeter is designed to speed the iterative process of testing. You can control frequently changed parameters from within the BlazeMeter UI or API by overriding existing values. In this way, you eliminate the need to edit hard-coded values in your scripts and re-upload them between tests.

To learn how to update the load configuration, watch this video. Detailed steps follow.

Override Settings

In the Load Configuration section, you can control the number of users, the test duration, and ramp-up options by overriding existing settings.

Follow these steps:

  1. On the Performance tab, open a test or create a test.
  2. On the Configuration tab, scroll down to the Load Configuration section.
  3. Specify appropriate values in the Total Users, Duration, and Ramp Up Time fields.
  4. (Optional) Specify additional options:

    - To limit the number of requests per second (RPS), click a preconfigured value in the Limit RPS list.

    - To limit the number of ramp up steps, click a preconfigured value in the Ramp Up Steps list.

    load configuration with visualization

In a multi-test scenario, you can also set overrides for individual tests that run as part of the multi-test. However, if overrides are disabled in a multi-test, the values will be taken from the original script of each single test.

Disable Overrides

If you do not want to use any overrides, instead relying on the configuration in your original script, you can disable any and all overrides.

Follow these steps:

  1. In the Performance tab, open a test or create a new test.
  2. In the Configuration tab, scroll down to the Load Configuration section.
  3. Click the toggle icon for each override you want to disable. Toggled right (and blue) is enabled. Toggled left (and gray) is disabled.
    When an override is disabled, the slider bar and number field is gray and will not be applied.
    total users disabled

To disable all overrides, ensure all toggles are set to the left (gray).

Overrides can only be disabled under the following conditions:

  • You have a paid BlazeMeter account.
  • Your script is a JMeter script.
  • If your script is not a JMeter script, overrides will be disabled only if you upload a Taurus YAML configuration file with your script and set the YAML file as the main test file, which will automatically disable UI overrides.

Select Total Users

Select the number of users you want deployed at the peak of your test. BlazeMeter will divide this user population across the number of test engines deployed.

If your script uses multiple thread groups, the following will apply:

  • If each thread group in the script is configured for 1 user (the default setting) in the Number of Threads (users) field, BlazeMeter will divide the total number of users evenly across the thread groups, rounding up and down as needed.
    Example:
    If you specify 10 users for 2 thread groups, each thread group will run 5 users. If you specify 6 users for 3 thread groups, each will run 2. If you specify 11 users for 3 thread groups, BlazeMeter will round up (from 3.66) and each will run 4. If you specify 7 users for 3 thread groups, BlazeMeter will round down (from 2.33) and each will run 2.
  • If you specify different user numbers for each of your multiple thread groups, BlazeMeter will maintain the ratio of threads between the thread groups in the JMX script to achieve the total users you specify here.
    Example:
    If your JMX script has 3 thread groups and the Number of Threads (users) field in each of them is set to 5, 3, and 2 respectively, then a test with 1000 users specified in the Load Configuration section will run 500, 300, and 200 threads through those thread groups.

Tip: For advanced real-time scenarios such as increasing users, adding load, or ramping down users at a certain point during or in between execution, use either the Concurrency Thread Group or the Ultimate Thread Group in JMeter and adjust parameters dynamically. For details, see JMeter Load Testing: Advanced Step-By-Step Guide.

Configure Duration or Iterations

You can configure your test to run either for a specified duration or for a specified number of iterations.

Follow these steps:

  1. On the Performance tab, click Create Test and Performance Test.
  2. Scroll down to the Load Configuration section.
  3. In the Duration / Iterations section, turn on one of the following options:
    • Duration: Set the duration for the entire test, in minutes. The test will run infinite iterations until the duration is met.
    • Iterations: Set the number of iterations instead. The test will run long enough to complete all iterations.

Limitations

When you specify iterations, be aware of the following limitations:

  • You cannot run a test with a duration longer than your plan limit.
  • If you configure a high-iteration test using the overrides, BlazeMeter will apply a default duration of approximately 1 hour and 10 minutes. This safeguard is to prevent infinite tests, which can place an undue burden on system resources. If you must run a high-iterations test that will exceed an hour in duration, you can disable overrides and set values directly in your script, in which case the test can run through all iterations to completion.
  • If you disable overrides and have infinite iterations (loops) set in your script, specify a duration in your script.
    Example:
    If you configure a JMeter test to run infinite loops with no duration, BlazeMeter will apply a 10-second duration. This safeguard helps to prevent an undue burden on the system caused by infinite tests.
  • You cannot configure duration and iterations at the same time when you specify overrides, but if you disable all overrides, you can configure duration and iterations in the script (for example, in a JMeter script). If you configure both, the test will run until whichever limit (iterations or duration) is met first.

If you find that your test ended before running its full duration, review the preceding list of limitations for the possible cause.

If executing a JMeter test, you can download the artifacts.zip file from the Logs Report. Inside is a modified_{your_script_name).jmx file. If you open that modified JMX file in your local JMeter, you can see any thread group overrides that BlazeMeter might have applied to your script.

Configure Ramp Up Time and Steps

You can select how fast you want the test to ramp up. This is the elapsed time in minutes from the test start until all users are running. You can also select the number of steps for the ramp-up of your test.

To configure ramp-up time, follow these steps:

  1. On the Performance tab, click Create Test and Performance Test.
  2. Scroll down to the Load Configuration section.
  3. Move the Ramp Up Time slider or enter the number of minutes in the box.

To configure ramp-up steps, follow these steps:

  1. Go to the Load Configuration section.
  2. In the Ramp Up Steps box, enter the value or expand the drop-down menu to select a value.
  • The default value is 0, which delivers a linear ramp-up from test start until the end of ramp up time:
    ramp up 0.png
  • A value of 5 delivers 20% of the peak users at the start and reaches 100% at the start of the 5th step:ramp up 5

Tip: For advanced real-time scenarios such as increasing users, adding load, or ramping down users at a certain point during or in between execution, use the Ultimate Thread Group in JMeter and adjust parameters dynamically. For details, see JMeter Load Testing: Advanced Step-By-Step Guide.

Limit Requests per Second (RPS)

With the RPS setting, you can specify the maximum number of requests per second (RPS).

To configure the RPS setting,, follow these steps:

  1. Go to the Load Configuration section.
  2. In the Limit RPS box, type or select a value.

When you use this setting, you will see a Change RPS button on your live test reports and can make changes during the test.

Change RPS Limits During a Test

To see how the number of requests per second affects system performance, you can change RPS limits during a test.

  1. Start a test.
  2. At the top right corner of the reports section, click Run Time Control.
  3. Click Change RPS.
    run time control
  4. To submit the new value to the test engines, in the box, set the RPS value and click Apply.

    rps remote control

Change the Number of Users During a Test

You can change the number of concurrent virtual users during load testing to enhance the quality of performance insights.

Restriction: This feature is available exclusively for Enterprise plans ("Unleashed"). Free, Basic, and Pro accounts do not have access to this feature. To upgrade to an Enterprise plan, contact your BlazeMeter account manager or send an email to sales@blazemeter.com.

This feature provides an enhanced view of an application's behavior under various conditions, aids in uncovering latent issues, and can contribute to robust application performance optimization. Testers and developers alike can use this technique to fine-tune their applications with the goal of efficient operations even during periods of high user demand. The feature is designed to provide the following benefits:

  • During normal operations, the number of users engaging with an application varies. By altering the number of concurrent virtual users in real time, you can replicate the dynamic user patterns observed in real-world scenarios, providing a more accurate representation of application performance.

  • Adjusting the virtual user count allows you to determine an application's scalability limits. Identifying the point at which performance starts to degrade or become unstable aids in making informed decisions about resource allocation and infrastructure requirements.

  • Monitoring performance metrics as the virtual user count changes helps you detect performance bottlenecks, memory leaks, or other issues that might not be apparent under consistent conditions.

  • By gradually increasing the number of virtual users, you can stress the application to its limits, uncovering how it behaves under extreme conditions. In this way, you can gauge the potential impact of sudden spikes in user traffic or unexpected surges.

  • By varying the number of users, you can validate load-balancing algorithms and configurations.

  • Dynamic concurrent user testing is critical for capacity planning.

To change the number of users during load testing, follow these steps:

  1. On the main menu, click the Performance tab.

  2. Click Create Test and Performance Test.

    test create taurus

  3. On the Test Configuration page, toggle on Change the number of users at run time.

    Change number of users at run time toggle switch

  4. Start a test.

  5. In Reports, click Run Time Control.

    This button is visible only after the test starts to run.

    Runtime Control in summary report

  6. Click Change Number of Users.

    A dialog box appears where you can change the value.

    Change number of users during runtime

  7. Set a new value and click Apply.

    The Request Stats report displays the time and details of the change in the number of users.

    Number of users changed during run time in request stats report