在Tomcat上安装Sonar和Jenkins [英] Installing Sonar and Jenkins on Tomcat

查看:104
本文介绍了在Tomcat上安装Sonar和Jenkins的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个tomcat服务器,我希望在其上安装Jenkins和Sonar.我正在进行debian发行,因此我通过apt-get获得了tomcat6和Jenkins.当我将jenkins.war复制到tomcat6/webapps目录时,一切运行正常.但是,当我将sonar.war复制到tomcat6/webapps时,声纳工作正常,但是jenkins抛出错误500:

I have a tomcat server and I wish to install Jenkins and Sonar on it. I am on a debian distibution, therefore I got tomcat6 and Jenkins via apt-get. When I copy the jenkins.war to my tomcat6/webapps directory, everything runs fine. However when I copy the sonar.war to tomcat6/webapps, sonar works fine, but jenkins throws an error 500:

javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/lib/tomcat6/webapps/jenkins/WEB-INF/lib/jenkins-core-1.435.jar!/hudson/model/View/index.jelly:39:43: <st:include> PermGen space
    org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112)
    org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:124)
    org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:550)
    org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:612)
    org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
    org.kohsuke.stapler.Stapler.service(Stapler.java:159)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
    hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
    hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
    hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
    hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)

我还安装了管理器(tomcat6-admin),当我添加sonar.war时,管理器也失败了.

I've also install the manager (tomcat6-admin) and the manager is failing too when i add the sonar.war.

我通过从codehaus下载声纳,设置数据库配置并进行战争来安装声纳.

I've installed sonar by downloading it from codehaus, setting the database configuration and building the war.

有人知道为什么会这样并且有解决方案吗?

Does anyone know why this is happening and might have a solution?

推荐答案

在您的例外情况下,它显示为:

In your exception, it appears :

PermGen space
org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112) 

permgen出现问题:

There's a problem with the permgen :

当JVM永久生成堆中的空间不足时,会发生此错误

This error occurs when the JVM runs out of space in the permanent generation heap

要解决该错误,您需要将-XX:MaxPermSize=<Y>m(其中<Y>是所需的内存)放入CATALINA_OPTS环境变量中.

To fix the error, you need to put the -XX:MaxPermSize=<Y>m (where <Y> is the memory you want) in the CATALINA_OPTS environment variable.

您如何实现这一目标?遵循本文(例如):

How do you achieve this ? Follow this article (for example) :

如何在应用服务器中增加内存?

这篇关于在Tomcat上安装Sonar和Jenkins的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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