[英]Error occured during initialization of VM: Could not reserve enough space for object heap
I am getting below error on starting SonarQube: Error occured during initialixation of VM: Could not reserve enough space for memory heap 我在启动SonarQube时遇到以下错误:VM初始化期间发生错误:无法为内存堆保留足够的空间
Also modified wrapper.conf underSonarQube conf folder, but didn't work. 还修改了SonarQube conf文件夹下的wrapper.conf,但是没有用。 Also changed java version: Java 8 to Java 7, didn't work 还更改了Java版本:Java 8到Java 7,无效
You do not enough available memory to run SonarQube. 您的可用内存不足,无法运行SonarQube。 Try closing some applications. 尝试关闭一些应用程序。
If this is not enough check whether SonarQube's startup script specifies the amount of memory required, eg with options like -Xms=??? -Xmx=???
如果这还不够,请检查SonarQube的启动脚本是否指定所需的内存量,例如,使用-Xms=??? -Xmx=???
类的-Xms=??? -Xmx=???
-Xms=??? -Xmx=???
. 。 These indicate roughly the minimum and maximum amount of memory Java will acquire. 这些大致表明Java将获取的最小和最大内存量。 Note the actual values and check with the task manager if you have enough memory available. 记下实际值,并与任务管理器检查是否有足够的可用内存。
Issue was with version mismatch of plugins installed in sonarqube. 问题是声纳安装的插件版本不匹配。 I deleted jars for all plugins except java. 我删除了除Java以外的所有插件的jar。 This solved the issue. 这解决了问题。 I figured it out from sonar.log Thanks 我从sonar.log弄明白了
Its due to lack of memory. 其由于缺乏记忆。 if you are trying that with ANT try the following 如果您正在尝试使用ANT,请尝试以下操作
set ANT_OPTS=-XX:MaxPermSize=128m
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.