Configuring Memory Usage

If you receive an out of memory error, try the following to reduce memory usage:

Increasing Memory Usage

Web Performance Load Tester

The default setting for the maximum amount of memory allocated to Web Performance Load Tester is 200MB (the default). The program will encounter errors if this limit is reached. To increase this value, use the following steps:

  1. Locate the file "webperformance.ini" in the directory where you installed the program.
  2. Create a backup copy of the file.
  3. Edit the file with a plain-text editor and locate the lines:

    -Xms200m
    -Xmx200m

  4. Change the "200" in each line to the desired amount (in MB) of memory to use, and save the file.

The values are the initial and maximum amount of memory that Web Performance Load Tester is allowed to use. You may increase it up to the maximum value of free memory you have available on your computer.

Load Engine

When running a load test, it may also be necessary to increase the memory allocated by each remote Load Engine used by the test controller. By default, the engines are configured to use 200 MB. As this limit is reached, the engine will become unable to simulate additional virtual users. To increase this value:

  1. Locate the file "Load Engine.lax" in the directory where you installed the program.
  2. Create a backup copy of the file.
  3. Edit the file with a plain-text editor and locate the lines:

    lax.nl.java.option.java.heap.size.initial=200M
    lax.nl.java.option.java.heap.size.max=200M

  4. Change the "200" in each line to the desired amount (in MB) of memory to use, and save the file.

The values are the initial and maximum amount of memory that Web Performance Load Tester is allowed to use. You may increase it up to the maximum value of free memory you have available on your computer.

For more advanced load engine memory tuning information read this article on our blog.