Skip to content
A basic jmeter project.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
in Update column ordering. May 5, 2018

Jmeter Load Testing

This is a basic jmeter project.

Run jmeter

Populate, then run jmeter in headless mode:

jmeter -nt main.jmx -q -fl out/report.csv

Optionally, generate a report dashboard after the load test completes:

jmeter -nt main.jmx -q -fl out/report.csv -eo reports/$(date +%s)

For more resource intensive testing, consider tweaking the JVM arguments used by jmeter. For example, prepend the following string to the commands above (after determining an appropriate memory allocation):

JVM_ARGS="-Xms4096m -Xmx4096m -server"


JVM_ARGS="-Xms4096m -Xmx4096m -server" jmeter -nt main.jmx -q -fl out/report.csv -eo reports/$(date +%s)

Likewise, if you are developing your project using a server with limited resources, consider lowering those values, e.g:

JVM_ARGS="-Xms512m -Xmx512m -server"

Run jmeter (in edit mode)

Populate, then run jmeter in GUI mode:

jmeter -t main.jmx -q


If you want to create a dashboard from an existing report:

jmeter -g ./out/report.csv -o reports/$(date +%s)

Note: the default granularity is 60s which effects some graphs; this can be changed by editing (or including it in your imported properties file):



When running larger tests, update the limits file (/etc/security/limits.conf) to include the following and then restart the server:

* soft nofile 16384
* hard nofile 16384

Jmeter logging

Consider reducing the jmeter logs by editing bin/log4j2.xml.

Decrease default log verbosity

Change the default log level to warn by changing this:

<Root level="info">

to this:

<Root level="warn">

Increase specific loggers verbosity

Then set specific loggers to info, for example:

<Logger name="org.apache.jmeter.JMeter" level="info" />
<Logger name="org.apache.jmeter.threads.ThreadGroup" level="info" />
<Logger name="org.apache.jmeter.reporters.Summariser" level="info" />


You can’t perform that action at this time.