Unable to increase heap size for JMeter on Mac OSX

我的梦境 提交于 2019-12-08 11:29:28

As per JMeter Performance and Tuning Tips

Default JMeter java configuration comes with 512 Mo and very little GC tuning. First ensure you set -Xmx option value to a reasonable value regarding your test requirements. Then change MaxNewSize option in jmeter file to respect the original ratio between MaxNewSize and -Xmx.

Java Virtual Machine parameters can be tuned in jmeter script file which lives under /bin folder of JMeter installation. So

  1. Open jmeter script with text editor of your choice
  2. Look for the line HEAP="-Xms512m -Xmx512m"
  3. Change minimum and maximum values according to your desires
  4. Save the file and make sure that you're executing jmeter, not jmeter.sh

If you're looking for once-only command-line JVM args overriding you can call JMeter main jar directly without any shell script wrappers as

java -Xms1G -Xmx3G -jar ApacheJMeter.jar

The command above assumes that you're invoking it from /bin folder of your JMeter installation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!