2013-03-07 192 views
0

我已經在tomcat中將jenkins部署爲AIX中的war文件。Jenkins內存不足錯誤

現在我沒有工作設置。

經過幾分鐘的工作後說,我得到了內存不足的錯誤,只有在tomcat重新啓動後我才能訪問Jenkins。

我該如何解決這個問題。

堆棧跟蹤如下所示:

Exception: jar:file:/opt/apache-tomcat-5.5.25/webapps/jenkins/WEB-INF/lib/jenkins-core-1.504.jar!/jenkins/model/Jenkins/sidepanel.jelly:26:86: <st:include> java.lang.OutOfMemoryError 
Stacktrace: 
javax.servlet.ServletException: jar:file:/opt/apache-tomcat-5.5.25/webapps/jenkins/WEB-INF/lib/jenkins-core-1.504.jar!/jenkins/model/Jenkins/sidepanel.jelly:26:86: <st:include> java.lang.OutOfMemoryError 
    at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60) 
    at jenkins.model.Jenkins.doScript(Jenkins.java:3356) 
    at jenkins.model.Jenkins.doScript(Jenkins.java:3332) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:618) 
    at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) 
    at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) 
    at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 
    at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111) 
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) 
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) 
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) 
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487) 
    at org.kohsuke.stapler.Stapler.service(Stapler.java:164) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) 
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) 
    at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) 
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
    at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
    at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) 
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) 
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) 
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) 
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) 
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) 
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) 
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) 
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) 
    at java.lang.Thread.run(Thread.java:810) 
+0

你有沒有試過詹金斯的另一個版本?我使用1.498,它完美的工作。添加一些配置.. – Vargan 2013-03-07 15:02:08

+0

這是所提出的要求。沒有我沒有試過1.498版本。我不能增加堆空間嗎?你需要什麼conf數據? – 2013-03-07 15:03:45

回答

2

有一個詳細的詹金斯維基話題I'm getting OutOfMemoryError有關分析原因,提高堆空間等

+0

是的,我看到了,但我不知道如何增加Jenkins的堆空間。我該怎麼做? – 2013-03-07 15:22:03

+0

_java -Xms256m -Xmx256m -jar jenkins.war_ – 2013-03-07 15:36:38

+0

我已經將它部署到tomcat中。沒有一個地方可以設置這些值。 – 2013-03-07 15:46:05

0

有simulary問題一個月前少,這是一個「真正的記憶問題」。升級內存和所有工作正常。你有過這種檢查嗎?