Why is Apache JMeter very slow when creating and running load tests?
If you just downloaded and opened Apache JMeter and the UI it feels very slow, here are some items you can follow to make Apache Jmeter GUI move faster.
Increase the Apache JMeter Heap Size
Apache JMeter is a Java application, this means you have to increase the Java Virtual Machine initial heap size and maximum heap size
The easiest way to increase the heap sizes is to edit the jmeter.bat file and add the following line:
JMeter.bat file to edit in order to change the heap size
Find the following line:
# This is the base heap size -- you may increase or decrease it to fit your # system's memory availability: : "${HEAP:="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"}"
or if that is missing, add the line below:
set HEAP=-Xms2g -Xmx2g -XX:MaxMetaspaceSize=12g
Save the changes made in the jmeter.bat file and restart JMeter. Now creating JMeter test scripts will feel much faster.
Run your JMeter load test in non-GUI mode
More details on how to run your JMeter test in non-GUI mode can be found here, however here is a quick example:
Most likely you don’t need the listeners during test execution, so you can easily disabled them by pressing Ctrl/Cmd + T and have the disabled during the test run.
Monitor machine resources CPU, Memory, Network
You can easily monitor the resources of the machine where JMeter load tests are running upon by using a plugin: JMeter PerfMon plugin. Check more details on how to install JMeter plugins in our other post.
By now, your JMeter test creation should feel much faster and your non-GUI performance tests should behave better.
Update Java to the Latest Version
Check which version of Java you have installed on your machine, for Mac users you can check by typing in the terminal the following command:
With JMeter Cloud Load Testing Tool from LoadFocus, you can upload your Apache JMeter test scripts (.jmx files), run and analyse JMeter results from multiple world locations, everything in an easy to use UI.