我已经为Java设置了堆大小:
Control Panel --> Java (Control panel) --> Java --> View
将用户属性更新为-Xmx4096m
(我的机器RAM为8 GB)。
在控制面板中更改堆大小后,我正在将Jmeter.bat中的堆大小更改为2048MB。
set HEAP=-Xms2048m -Xmx2048m
if not defined HEAP (
rem See the unix startup file for the rationale of the following parameters,
rem including some tuning recommendations
set HEAP=-Xms512m -Xms512m -XX:MaxMetaspaceSize=512m
)
现在我正在尝试打开Jmeter.bat文件,但遇到以下错误。
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
errorlevel=1
Press any key to continue . . .
非常感谢,如果有人知道如何解决这个问题,请分享一下?