Install / Launch
- Sourcejmeter.apache.org/download
- Windows/Linuxcd <DIR>/bin/jmeter
- Dockerdocker pull egaillardon/jmeter
Functions & Variables
- Time${__time(dd/MM/yyyy)}
- UUID${__UUID()}
- Random${__Random(0,10)}
- Random String${__RandomString(10,abc)}
- Thread Num${__threadNum}
- Machine IP${__machineIP}
Keyboard Shortcuts
CTRL+0
Thread GroupCTRL+1
HTTP RequestCTRL+R
Start TestCTRL+E
Clear AllCTRL+F
Search
Variables & Properties
- Variable${Variable}
- Property${__P(var,default)}
- Nested${__V(Var${N})}
// Groovy
props.put("protocol", "${protocol}");
props.get("protocol");
JMeter CLI
- -nRun headless (non-GUI)
- -tTest plan file (.jmx)
- -lOutput log file (.jtl)
- -JDefine JMeter property
- -H / -PProxy host / port
- -rRun remote servers
# Basic execution
./jmeter -n -t testplan.jmx -l results.jtl
# Advanced with properties
./jmeter -n -H proxy.server -P 8000 -Jvu=400 -JDuration=3600 -t testplan.jmx -l results.jtl
Recommended Plugins
Download from jmeter-plugins.org → copy JAR to lib/ext
Custom Thread Groups
Perfmon Monitoring
Weighted Switch Controller
SSHMon Sample Collector
Dummy Sampler
Selenium/WebDriver
Random CSV Data Set
Websocket Samplers
ElasticSearch Backend
Azure Backend Listener
Parallel Controller
AMQP Client
Remote Shortcuts
CTRL+SHIFT+R
Start AllALT+X
Stop AllALT+Z
Shutdown
Tips & Config
HiDPI Settings
jmeter.hidpi.mode=true
jmeter.hidpi.scale.factor=2.0
Network Throttling
cps = (kbps * 1024) / 8
Component Shortcuts
CTRL+2
Regex ExtractorCTRL+3
Response AssertionCTRL+4
Constant TimerCTRL+5
JSR223 PostProcessorCTRL+8
Debug SamplerCTRL+9
View Results Tree