美文网首页
启动异常报错

启动异常报错

作者: HZ_King | 来源:发表于2021-03-17 13:00 被阅读0次

报错信息:JMeter Error occurred during initialization of VM Could not reserve enough spa
报错信息:Error occurred during initialization of VM Could not reserve enough space for object heap errorlevel=1

报错信息:初始化VM时发生JMeter错误,无法保留足够的spa

报错信息:初始化VM时出错,无法为对象堆errorlevel=1保留足够的空间

image.png

进入Jmeter安装目录,bin目录中找到并打开jmeter.bat,查找set HEAP值,将set HEAP=-Xms128m -Xmx512m修改为set HEAP=-Xms512m -Xmx512m

Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

无效的最大堆大小:-Xmx4096m

指定的大小超过了最大可表示大小。

错误:无法创建Java虚拟机。

错误:发生致命异常。程序将退出。

解决办法:.bat文件中更改-Xmx4096m值

相关文章

网友评论

      本文标题:启动异常报错

      本文链接:https://www.haomeiwen.com/subject/yuwscltx.html