How to apply the flags
Section titled “How to apply the flags”On the command line (example):
JVM_ARGS="-Xms512m -Xmx2048m" jmeter -n -t plan.jmx -l results.jtlOr paste HEAP into the CLI Command Builder with the rest of the run flags.
Or set HEAP in your JMeter startup script / environment for the version you ship.
Practical tips
Section titled “Practical tips”- Prefer CLI mode for load; GUI burns heap on rendering.
- Disable View Results Tree / Table during load tests.
- In distributed mode, size each engine for its share of threads.
- Controllers usually need less heap than injectors.