gatling压力测试工具启动gatling.bat命令行窗口报Error occurred during initialization of VM Could not reserve enough
Posted yyps
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gatling压力测试工具启动gatling.bat命令行窗口报Error occurred during initialization of VM Could not reserve enough相关的知识,希望对你有一定的参考价值。
原因是:Java虚拟机(JVM)分配的内存大于系统可用内存数,所以没有足够的空间分配给JVM来创建Object
解决方法:编辑gatling.bat文件,查看系统剩余内存大小,修改分配的内存大小set JAVA_OPTS=-Xms32m -Xmx256m
setlocal set JAVA_OPTS=-Xms32m -Xmx256m set USER_ARGS=%* rem set GATLING_HOME automatically if possible set "OLD_DIR=%cd%" cd .. set "DEFAULT_GATLING_HOME=%cd%" cd %OLD_DIR%
以上是关于gatling压力测试工具启动gatling.bat命令行窗口报Error occurred during initialization of VM Could not reserve enough的主要内容,如果未能解决你的问题,请参考以下文章