jenkins解决jenkins内存溢出问题

在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: 500Exception: 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 spaceat 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 spaceat 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 spaceat 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://www.mzph.cn/news/523474.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

刚刚!6月榜单:JS跌惨,Python又霸榜,C++再无翻身可能!

Python勇者无敌&#xff01;最近一份PYPL 6月报告了来了&#xff0c;通过半年的发展&#xff0c;Python基本已奠定2019年-2020的地位&#xff0c;持续称王就对了&#xff01;PLPY 6月榜单&#xff0c;JS跌惨只见Python笑&#xff0c;哪闻C哭PYPL 发布 6 月编程语言指数榜啦。毫…

java vector 输出_5.7(java学习笔记)Vector、Enumeration

一.VectorVector类实现一个可扩展的数组对象。与数组一样&#xff0c;它包含可以使用整数索引访问。它的基本操作方法add(int index, E element)&#xff0c;get(int index)&#xff0c;indexOf(Object o)等操作方法与数组中的方法类似这里就不叙述了。我们主要看一个方法&…

企业实战案例01_Jenkins_连接远程执行shell脚本

文章目录一、Jenkins 远程连接执行shell脚本1.1. 新建节点1.2. 配置节点信息二、连接远程验证测试2.1. 创建任务2.2. 添加注释2.3. 设置最大构建数量2.4. 限制项目的运行节点2.5. 选择构建环境2.6. 填写获取Tomact目录列表脚本2.7. 立即构建项目2.8. 查看控制台日志监控一、Jen…

纯粹,极致!他用两个词阐释了UCloud | 人物志

戳蓝字“CSDN云计算”关注我们哦&#xff01;“我觉得有一个词是肯定的&#xff1a;纯粹&#xff0c;另一个词可能是极致。但这个词我有些犹豫&#xff0c;因为我们做的还不够好。”UCloud技术副总裁杨镭在UCloud用户大会期间接受老孙独家采访时这样形容UCloud。UCloud技术副总…

java 封装api_关于java 封装某个功能为api形式供其他用户调用的问题

利用泛型定义一个返回对象public class ServiceResult {private String msg"";//消息说明private int resultCode0;//结果消息代码private T data;//返回的数据字段public String getMsg() {return msg;}public void setMsg(String msg) {this.msg msg;}public int …

企业实战案例02_Jenkins_连接远程GitLab拉取代码

编译、打包 文章目录一、任务新建和配置信息1. 新建任务2. 添加描述3. 设置构建的最大数量4. 添加Git构建参数5.复制远程项目链接地址6. 粘贴远程项目地址7. 添加凭据7. 要编译的分支8. 效果图9. 编译和打包项目二、构建项目和日志监听1. 查看工作区&#xff08;构建项目前&…

java责任链模式审批请假_Java使用责任链模式处理学生请假问题详解

本文实例讲述了Java使用责任链模式处理学生请假问题。分享给大家供大家参考&#xff0c;具体如下&#xff1a;一. 模式定义在责任链模式中&#xff0c;很多对象由每一个对象对其下家的引用而连接起来&#xff0c;形成一条链。客户端应用请求在这个链上进行传递&#xff0c;直到…

联想成立数据智能事业部,前京东蓝烨回归;华为或已向多国知识产权组织提交「鸿蒙」商标申请……...

关注并标星星CSDN云计算极客头条&#xff1a;速递、最新、绝对有料。这里有企业新动、这里有业界要闻&#xff0c;打起十二分精神&#xff0c;紧跟fashion你可以的&#xff01;每周三次&#xff0c;打卡即read更快、更全了解泛云圈精彩newsgo go go 混合动力电动飞机Ampaire 33…

java铃声类_java多线程抓取铃声多多官网的铃声数据

一直想练习下java多线程抓取数据。有天被我发现&#xff0c;铃声多多的官网(http://www.shoujiduoduo.com/main/)有大量的数据。通过观察他们前端获取铃声数据的ajaxhttp://www.shoujiduoduo.com/ringweb/ringweb.php?typegetlist&listid{类别ID}&page{分页页码}很容易…

Spark精华问答 | RDD的核心概念是什么?

Hadoop再火&#xff0c;火得过Spark吗&#xff1f;今天我们继续关于Spark的精华问答吧。1Q&#xff1a;RDD的核心概念是什么&#xff1f;A&#xff1a;Client&#xff1a;客户端进程&#xff0c;负责提交作业到Master。Master:Standalone模式中主控节点&#xff0c;负责接收Cli…

Git 删除命令

文章目录一、Git 分支操作二、Git删除操作一、Git 分支操作 命令说明git branch查看本地分支git branch查看远程分支git branch dev创建dev 分支git checkout -b dev创建dev分支&#xff0c;并切换到新建的dev分支上git checkout master切换到master分支上git merge dev把dev分…

用科技讲好中国历史故事,腾讯携手秦陵“玩儿转”数字化!

戳蓝字“CSDN云计算”关注我们哦&#xff01;众所周知&#xff0c;秦始皇陵及兵马俑坑一早就被联合国教科文组织批准列入《世界遗产名录》&#xff0c;并同时被誉为“世界第八大奇迹”&#xff0c;逐渐成长为中国古代辉煌文明的一张金字名片。与此同时&#xff0c;近年来秦陵博…

Tomcat10 开机启动 Linux环境

文章目录1. 切换用户2. 编辑3. 赋予权限4. 重启服务器5. 验证1. 切换用户 请切换到root用户执行&#xff0c;普通用户自启动无权限 su - root2. 编辑 vim /etc/rc.d/rc.local# 添加内容 source /etc/profile touch /var/lock/subsys/local /app/apache-tomcat-10.0.10/bin/s…

猫眼java开发暑期实习_校招|猫眼 Android日常实习一面面经

作者&#xff1a;Wwww_来源&#xff1a;牛客网问简历上项目&#xff0c;看我用了GreenDao开源库&#xff0c;问为什么使用这个数据库Java&#xff1a;1. 抽象类和接口&#xff0c;问的很细而且比较灵活。还记得的有&#xff1a;接口中能不能有protected修饰的方法&#xff1b;能…

开源“大地震”下,华为如何复制 Google 模式?

戳蓝字“CSDN云计算”关注我们哦&#xff01;作者 | 郭芮出品 | CSDN&#xff08;ID&#xff1a;CSDNnews&#xff09;回首刚刚过去的五月&#xff0c;注定会给很多技术人留下浓墨重彩的一笔。2018 年 4 月&#xff0c;曾经占据智能手机全球份额第九、美国第四大智能手机供应商…

java 实体类 代码重复_java – JPA两个单向@OneToMany关系到同一个实体导致重复输入...

我目前正在开展一个学校项目,我们必须创建自己的“Twitter”应用程序,并且我在域对象的持久性方面遇到了一些麻烦.我的帐户类(为便于阅读而简化)&#xff1a;Entitypublic class Account implements Serializable {IdGeneratedValue(strategy GenerationType.SEQUENCE)private…

Spring精华问答 | 什么是YAML?

Spring框架是一个开源的Java平台,它提供了非常容易,非常迅速地开发健壮的Java应用程序的全面的基础设施支持。今天就让我们一起来看看关于Spring的精华问答吧。1Q&#xff1a;如何在自定义端口上运行Spring Boot应用程序&#xff1f;A&#xff1a;为了在自定义端口上运行Spring…

Sublime Test3 添加一键格式化XML文件插件

文章目录1. 下载地址&#xff1a;2. 快捷键&#xff1a;3. 在线格式化xml json插件1. 下载地址&#xff1a; 下载链接提取码https://pan.baidu.com/s/1zovLp4BCJmreAYe83EionAq0vq 2. 快捷键&#xff1a; 快捷键说明CtrlL选择整行&#xff08;按住-继续选择下行&#xff09;C…

java获得jsp的name注解_记录Java注解在JavaWeb中的一个应用实例

概述在学习注解的时候&#xff0c;学了个懵懵懂懂。学了JavaWeb之后&#xff0c;在做Demo项目的过程中&#xff0c;借助注解和反射实现了对页面按钮的权限控制&#xff0c;对于注解才算咂摸出了点味儿来。需求以"角色列表"页面为例&#xff0c;该页面包含"新建&…