
Error occurred during initialization of VM Could not reserve enough space for 1048576KB object heap
errorlevel=1
首先根据报错信息去启动文件内搜索,查看是否是jmeter.bat内部配置,查找set HEAP参数
我的是jmeter5.4版本默认是1g,shell命令是如果没有定义HEAP再设置HSEP的值
if not defined HEAP (
     rem See the unix startup file for the rationale of the following parameters,
     rem including some tuning recommendations
     set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m
 )
其他JMETER是直接set HEAP值那么根据需要增大该值







