sonarqube OutOfMemoryError(PermGen空间)

时间:2014-11-04 14:34:32

标签: sonarqube

我使用Sonarqube 4.5.1(新安装)和jdk7u55。 安装在Windows Server 2012(4 GB内存)

我在安装了sonarqube-webserver的服务器上的sonar.log中收到此消息。

Error occured while clicking in the pages of the webserver of sonarqube
I tried to raise the value wrapper.java.maxmemory= from 32 to 512 to 2048 but OutOfMemoryError keep occuring.

完整的错误讯息:

Exception in thread "http-bio-10.2.31.127-80-exec-3" Exception in thread "http-bio-10.2.31.127-80-exec-1" 2014.11.04 14:19:02 ERROR web[rails]  
Java::JavaLang::OutOfMemoryError (PermGen space):
Exception in thread "http-bio-10.2.31.127-80-exec-2" 2014.11.04 14:19:06 ERROR web[o.s.s.ui.JRubyFacade]  Fail to render: localhost/sonar/drilldown/issues/10000?severity=MAJOR
PermGen space
    In app/views/layouts/_breadcrumb.html.erb

1 个答案:

答案 0 :(得分:1)

正如您在"Tuning the Web server" part of the install documentation中所读到的,为Web服务器指定JVM参数的正确位置是<install_directory>/conf/sonar.properties文件,更具体地说是sonar.web.javaOpts属性。

从SonarQube 4.5开始,包装器配置文件仅用于强制Java命令的路径。

相关问题