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.batfile and add the following line:
set HEAP=-Xms2g -Xmx2g -XX:MaxMetaspaceSize=1g
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:
jmeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -P 8000
Disable JMeter listeners during test execution
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:
Written by Bogdan Vazzolla.
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.