在jenkins master-slave配置中,总是出现内存溢出问题,更换了机器设备仍然跑不起来:
问题如下:

Status Code: 500  
  
Exception: org.apache.commons.jelly.JellyTagException: jar:file:/Users/alibaba/.jenkins/war/WEB-INF/lib/jenkins-core-1.512.jar!/hudson/model/Run/console.jelly:65:27: <j:whitespace> Java heap space  
Stacktrace:   
javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/Users/alibaba/.jenkins/war/WEB-INF/lib/jenkins-core-1.512.jar!/hudson/model/Run/console.jelly:65:27: <j:whitespace> Java heap space  
    at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:103)  
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)  
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)  
    at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)  
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)  
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)  
    at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)  
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)  
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)  
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)  
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583)  
    at org.kohsuke.stapler.Stapler.service(Stapler.java:214)  
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)  
    at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)  
    at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)  
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)  
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)  
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)  
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)  
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)  
    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)  
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)  
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)  
    at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)  
    at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)  
    at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)  
    at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)  
    at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)  
    at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)  
    at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)  
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)  
    at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)  
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)  
    at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)  
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)  
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)  
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)  
    at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)  
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)  
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)  
    at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)  
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)  
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)  
    at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)  
    at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)  
    at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)  
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)  
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)  
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)  
    at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)  
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)  
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)  
    at java.lang.Thread.run(Thread.java:680)  
Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/Users/alibaba/.jenkins/war/WEB-INF/lib/jenkins-core-1.512.jar!/hudson/model/Run/console.jelly:65:27: <j:whitespace> Java heap space  
    at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:745)  
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:289)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)  
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)  
    at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)  
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)  
    at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)  
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)  
    at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)  
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)  
    at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)  
    at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)  
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)  
    at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)  
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)  
    at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)  
    at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)  
    at org.kohsuke.stapler.jelly.CompressTag.doTag(CompressTag.java:44)  
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)  
    at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)  
    at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)  
    at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)  
    at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95)  
    ... 60 more  
Caused by: java.lang.OutOfMemoryError: Java heap space  
    at java.lang.String.replace(String.java:2057)  
    at sun.reflect.AccessorGenerator.internalize(AccessorGenerator.java:402)  
    at sun.reflect.AccessorGenerator.getClassName(AccessorGenerator.java:396)  
    at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:286)  
    at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)  
    at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313)  
    at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1322)  
    at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:50)  
    at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:435)  
    at java.security.AccessController.doPrivileged(Native Method)  
    at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:411)  
    at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:308)  
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545)  
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1599)  
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1494)  
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1599)  
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1494)  
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1748)  
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)  
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)  
    at hudson.console.AnnotatedLargeText.createAnnotator(AnnotatedLargeText.java:131)  
    at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:157)  
    at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:146)  
    at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:262)  
    at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:94)  
    at sun.reflect.GeneratedMethodAccessor586.invoke(Unknown Source)  
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
    at java.lang.reflect.Method.invoke(Method.java:597)  
    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)  
Status Code: 500

Exception: org.apache.commons.jelly.JellyTagException: jar:file:/Users/alibaba/.jenkins/war/WEB-INF/lib/jenkins-core-1.512.jar!/hudson/model/Run/console.jelly:65:27: <j:whitespace> Java heap space
Stacktrace:
javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/Users/alibaba/.jenkins/war/WEB-INF/lib/jenkins-core-1.512.jar!/hudson/model/Run/console.jelly:65:27: <j:whitespace> Java heap space
at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:103)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583)
at org.kohsuke.stapler.Stapler.service(Stapler.java:214)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/Users/alibaba/.jenkins/war/WEB-INF/lib/jenkins-core-1.512.jar!/hudson/model/Run/console.jelly:65:27: <j:whitespace> Java heap space
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:745)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:289)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.kohsuke.stapler.jelly.CompressTag.doTag(CompressTag.java:44)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95)
... 60 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.lang.String.replace(String.java:2057)
at sun.reflect.AccessorGenerator.internalize(AccessorGenerator.java:402)
at sun.reflect.AccessorGenerator.getClassName(AccessorGenerator.java:396)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:286)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313)
at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1322)
at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:50)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:435)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:411)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:308)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:545)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1599)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1494)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1599)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1494)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1748)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
at hudson.console.AnnotatedLargeText.createAnnotator(AnnotatedLargeText.java:131)
at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:157)
at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:146)
at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:262)
at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:94)
at sun.reflect.GeneratedMethodAccessor586.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
问题解决方案:服务器端启动war包添加参数,/usr/bin/java -Xms1024m -Xmx1024m -XX:PermSize=512M -XX:PermSize=1024M -jar jenkins.war --httpPort=18080 --ajp13Port=18009
因为单独在slave机器上跑没有问题,所以slave机器可以不加,如果单独在slave机器上单独运行脚本也有内存溢出问题,那么slave执行脚本也要加
详细文档,参考: http://bbs.scmroad.com/thread-19316-1-1.html

转载:持续集成之解决jenkins内存溢出问题的更多相关文章

  1. jenkins解决jenkins内存溢出问题

    在jenkins master-slave配置中,总是出现内存溢出问题,更换了机器设备仍然跑不起来: 问题如下: Status Code: 500 Exception: org.apache.comm ...

  2. Jenkins持续集成学习-搭建jenkins问题汇总

    目录 Jenkins持续集成学习5-搭建jenkins问题汇总 目录 前言 问题列表 nuget还原包问题 编译问题 SVN更新问题 参考文档 Jenkins持续集成学习5-搭建jenkins问题汇总 ...

  3. 持续集成之②:整合jenkins与代码质量管理平台Sonar并实现构建失败邮件通知

    持续集成之②:整合jenkins与代码质量管理平台Sonar并实现构建失败邮件通知 一:Sonar是什么?Sonar 是一个用于代码质量管理的开放平台,通过插件机制,Sonar 可以集成不同的测试工具 ...

  4. 持续集成①安装部署jenkins从git获取代码

    持续集成①安装部署jenkins从git获取代码 一:持续集成的概念: 1.1:总体的概括 持续集成Continuous Integration 持续交付Continuous Delivery 持续部 ...

  5. jmeter --- 搭建持续集成接口测试平台(Jenkins+Ant+Jmeter)

    jmeter --- 搭建持续集成接口测试平台(Jenkins+Ant+Jmeter) 一.环境准备: 1.JDK:http://www.oracle.com/technetwork/java/jav ...

  6. Git Hooks、GitLab CI持续集成以及使用Jenkins实现自动化任务

    Git Hooks.GitLab CI持续集成以及使用Jenkins实现自动化任务 前言 在一个共享项目(或者说多人协同开发的项目)的开发过程中,为有效确保团队成员编码风格的统一,确保部署方式的统一, ...

  7. [转]怎样解决Myeclipse内存溢出?

    在用myeclipes10 开发 遇到了 内存溢出问题,百度了很久,这篇比较完善. 总结起来三个方面去检查 1)myeclipes的配置:myeclipes 10 的安装路径下 的myeclipse. ...

  8. 持续集成 windows下jenkins常见问题填坑

    [过程改进]持续集成 windows下jenkins常见问题填坑 没有什么高深的东西,1 2天的时间大多数人都能自己摸索出来,这里将自己遇到过的问题分享出来避免其他同学再一次挖坑. 目录 1. 主从节 ...

  9. 解决JVM内存溢出问题

    今天遇到了一个问题,当我在增加配置文件(*.xml)内容的时候,重新启动tomcat6时,控制台报错:java.lang.StackOverflowError: 即,栈溢出错误. 内存溢出,即程序运行 ...

随机推荐

  1. Root--超级用户

    http://www.shuame.com/root/  root (计算机术语言) ROOT存在于Linux系统.UNIX系统(如AIX.BSD等)和类UNIX系统(如稳定到服务器都在用的Debia ...

  2. 【转】PHOTOSHOP常用快捷键大全

    PHOTOSHOP常用快捷键大全 一.文件新建 CTRL+N打开 CTRL+O 打开为 ALT+CTRL+O关闭 CTRL+W保存 CTRL+S 另存为 CTRL+SHIFT+S另存为网页格式 CTR ...

  3. C# Process.Start()方法详解

    System.Diagnostics.Process.Start(); 能做什么呢?它主要有以下几个功能: 1.打开某个链接网址(弹窗). 2.定位打开某个文件目录. 3.打开系统特殊文件夹,如“控制 ...

  4. 深入理解javascript原型和闭包(18)——补充:上下文环境和作用域的关系

    本系列用了大量的篇幅讲解了上下文环境和作用域,有些人反映这两个是一回儿事.本文就用一个小例子来说明一下,作用域和上下文环境绝对不是一回事儿. 再说明之前,咱们先用简单的语言来概括一下这两个的区别. 0 ...

  5. ThinkPHP3.2.3整合smarty模板(一)

    一.php模板引擎有哪些? 1.1 PHPLIB:一套古老且主流的模板引擎,直接在html中使用PHP变量进行编程: 1.2 Template Blocks:一款轻巧且速度非常快的PHP模板引擎,支持 ...

  6. Tomcat+ssh+Mysql本地正常,远程服务器中文乱码。(转)

    ssh2+mysql中文乱码解决方法(统一使用UTF-8编码) 中文乱码,首先要区分是页面乱码.action乱码,还是数据库乱码.大致的原理是java使用unicode编码– >window使用 ...

  7. memcache与memcached的区别

    其实到底说成什么无所谓,只要你真正理解和知道使用就可以了!但是介于有和我一样学习时遇到的这个疑惑,在此分享下其中的缘由: Memcache是一个软件 Memcache是一个自由和开放源代码.高性能.分 ...

  8. 第3月第8天 RefCounted PlistBuddy

    1.RefCounted引用计数 class Frame : public RefCounted<Frame> { // ... } http://www.cnblogs.com/dsky ...

  9. java基础知识(二)字符串处理

    字符串是程序开发中使用最为频繁,因此为了工作的高效和作为一名想进阶的程序员,了解并掌握字符串的处理显得尤为重要.java为我们提供了String.StringBuffer.StringBuilde三个 ...

  10. 2.4使用属性在 ASP.NET Web API 2 路由创建一个 REST API

    Web API 2 支持一种新型的路由,称为属性路由.属性路由的一般概述,请参阅属性路由 Web API 2 中.在本教程中,您将使用属性路由创建一个 REST API 集合的书.API 将支持以下操 ...