Sonarqube中不兼容的堆大小错误 [英] Incompatible heap sizes error in Sonarqube

查看:169
本文介绍了Sonarqube中不兼容的堆大小错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Maxc上安装SonarQube(实际上是声纳源,教程位于

I'm trying to install SonarQube on a Maxc (actually sonar source, tutorial is at http://chapter31.com/2013/05/02/installing-sonar-source-on-mac-osx/). The result of the "sonar start" command is the following output in sonar.log:

--> Wrapper Started as Daemon
Launching a JVM...
JVM exited while loading the application.
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
JVM Restarts disabled.  Shutting down.
<-- Wrapper Stopped

我试图在sonar.properties中正确设置Java属性:

I've tried to set the Java properties correctly in sonar.properties:

sonar.web.javaOpts=-Xms512m -Xmx768m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true

系统是运行OSX 10.11.1的Macbook Pro.在命令行中输入"java -version"会输出Java版本"1.6.0_65".

The system is a Macbook Pro running OSX 10.11.1. Typing "java -version" into the command line outputs java version "1.6.0_65".

推荐答案

即使在我的mac系统中也遇到了同样的错误,我也已经安装了Java,而我刚刚安装了"Java SE Development Kit 8u60"(jdk-8u60- macosx-x64.dmg)(适用于"Mac OS X x64"),然后问题已得到解决. http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

I had java installed even then i was also getting the same error in my mac system and i just installed "Java SE Development Kit 8u60"(jdk-8u60-macosx-x64.dmg) for "Mac OS X x64" and then the issue got fixed. http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

因此,我认为仅从上面的链接为正确的系统安装"Java SE Development Kit 8u60"就可以为面临此问题的其他人解决此问题.

so i think just installing "Java SE Development Kit 8u60" for right system from above link may fix this issue for others who ever faces this problem.

这篇关于Sonarqube中不兼容的堆大小错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆