Jmeter5.4.1修改内存大小(转载)

1.找到apache-jmeter-5.4.1\bin\jmeter.bat
2.编辑jmeter.bat
3.找到如下内容if not defined HEAP (
4.复制下面这段代码,替换上去,我配置的是最小1G,最大8G
if not defined HEAP (
rem See the unix startup file for the rationale of the following parameters,
rem including some tuning recommendations
set HEAP=-Xms1024m -Xmx8192m

)
5.保存
6.重新打开jmeter.bat,修改后的内存就生效了
注:CMD窗口仅是提示用,无实际意义,因为实际运行时,jmeter.log
日志输出的是8G内存
————————————————

2021-09-05 18:22:05,460 INFO o.a.j.JMeter: Max memory =8589934592
2021-09-05 18:22:05,460 INFO o.a.j.JMeter: Available Processors =8

上一篇:Unbbayes下载后点击bat文件无反应


下一篇:Keil 5 解锁文件 STM32