2014-11-04 46 views
0

我使用Sonarqube 4.5.1(新安装)和jdk7u55。 安装在Windows server 2012(4 GB内存)sonarqube OutOfMemoryError(PermGen空间)

我在装有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 
+0

插件被加载到它们自己的类加载器中,因此它们需要额外的perm gen空间,特别是当它们嵌入第三方库时。你确认你的服务器上安装了多个插件吗? – 2014-11-05 07:30:35

回答

1

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

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