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
标签:bat,jmeter,Jmeter5.4,05,defined,内存大小,8G,HEAP,转载 来源: https://blog.csdn.net/weixin_48156889/article/details/120573679