简体   繁体   English

VM初始化期间发生错误:无法为对象堆保留足够的空间

[英]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.

相关问题 初始化VM时出错,无法为对象堆保留足够的空间 - Spring Tool Suite? - Error occured during initialization of VM, Could not reserve enough space for object heap - Spring Tool Suite? VM初始化期间发生错误; 无法为对象堆保留足够的空间; 无法创建Java虚拟机 - Error occurred during initialization of VM; Could not reserve enough space for object heap; Could not create the Java virtual machine VM 初始化过程中发生错误 无法为对象堆保留足够的空间 无法创建 Java 虚拟机 - Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine 解决方法:“ VM初始化期间发生错误; 无法为对象堆保留足够的空间” - How to resolve this : “Error occurred during initialization of VM; Could not reserve enough space for object heap” VM初始化期间发生错误,无法为对象堆保留足够的空间 - Error occurred during initialization of VM Could not reserve enough space for object heap “虚拟机初始化时出错; 无法为对象堆保留足够的空间”使用 -Xmx3G - “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G VM 初始化时出错 无法为 object 堆 Android Studio 保留足够的空间 - Error occurred during initialization of VM Could not reserve enough space for object heap Android Studio 初始化 VM 时出错,无法为 object 堆预留足够的空间 - Error occurred during initialization of VM, Could not reserve enough space for object heap “ VM初始化期间发生错误,无法为1048576KB对象堆保留足够的空间” - “Error occurred during initialization of VM Could not reserve enough space for 1048576KB object heap” VM初始化期间发生Java错误无法为对象堆保留足够的空间 - Java Error occurred during initialization of VM Could not reserve enough space for object heap
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM