Re: PermGen space
This error does not appear to be coming from Jenkins (no jenkings classes in the stack trace) - So I would examine the job that is being executed and check if the maven options you set are actually taking effect. I do not see maven classes in the stack trace either, so this may be some tool Maven runs as a separate process, so you need to check the args there. -M On Tuesday, October 25, 2016 at 9:23:34 AM UTC-7, GBANE FETIGUE wrote: > > Hi folks, > I am running Jenkins on Centos 6.5 base image and even though I have > enough memory I am always having that weird error message below. FYI I have > set on configuration system "Global maven OPTS this : -Xmx2048m > -XX:-UseGCOverheadLimit -XX:MaxPermSize=512m > but nothing. any other ideas that might help ? > > FATAL: PermGen spacejava.lang.OutOfMemoryError > <http://stacktrace.jenkins-ci.org/search?query=java.lang.OutOfMemoryError>: > PermGen space > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:800) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) > at java.net.URLClassLoader.access$100(URLClassLoader.java:71) > at java.net.URLClassLoader$1.run(URLClassLoader.java:361) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:800) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) > at java.net.URLClassLoader.access$100(URLClassLoader.java:71) > at java.net.URLClassLoader$1.run(URLClassLoader.java:361) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) > at java.lang.Class.getDeclaredMethods(Class.java:1860) > at > com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:674) > at > com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366) > at > org.eclipse.sisu.wire.DependencyAnalyzer.analyzeImplementation(DependencyAnalyzer.java:224) > at > org.eclipse.sisu.wire.DependencyAnalyzer.visit(DependencyAnalyzer.java:122) > at > org.eclipse.sisu.wire.DependencyAnalyzer.visit(DependencyAnalyzer.java:1) > at > com.google.inject.internal.UntargettedBindingImpl.acceptTargetVisitor(UntargettedBindingImpl.java:41) > at org.eclipse.sisu.wire.ElementAnalyzer.visit(ElementAnalyzer.java:177) > Finished: FAILURE > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/10b446fa-39a5-43c5-a7f2-c8b6ff3bf610%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
PermGen space
Hi folks, I am running Jenkins on Centos 6.5 base image and even though I have enough memory I am always having that weird error message below. FYI I have set on configuration system "Global maven OPTS this : -Xmx2048m -XX:-UseGCOverheadLimit -XX:MaxPermSize=512m but nothing. any other ideas that might help ? FATAL: PermGen spacejava.lang.OutOfMemoryError <http://stacktrace.jenkins-ci.org/search?query=java.lang.OutOfMemoryError>: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) at java.lang.Class.getDeclaredMethods(Class.java:1860) at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:674) at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366) at org.eclipse.sisu.wire.DependencyAnalyzer.analyzeImplementation(DependencyAnalyzer.java:224) at org.eclipse.sisu.wire.DependencyAnalyzer.visit(DependencyAnalyzer.java:122) at org.eclipse.sisu.wire.DependencyAnalyzer.visit(DependencyAnalyzer.java:1) at com.google.inject.internal.UntargettedBindingImpl.acceptTargetVisitor(UntargettedBindingImpl.java:41) at org.eclipse.sisu.wire.ElementAnalyzer.visit(ElementAnalyzer.java:177) Finished: FAILURE -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8ca49c6c-c0d7-4b3b-bb9c-1129de5b5b90%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: OOME PermGen space
e:\Java\jdk1.7.0_55/bin/java, -Xmx1024m, -cp, E:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-agent-1.6.jar;e:\apache-maven-3.0.4\boot\plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, e:\apache-maven-3.0.4, E:\Jenkins\war\WEB-INF\lib\remoting-2.47.jar, E:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-1.6.jar, E:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.6.jar, 59900 There is no tuning of the permenant generation in the above command. additionally if you are forking javac (which is normally the way to go, and I don;t think you are from the above stack trace) you may need to tune to fork parameters. http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgs /james On Wednesday, 29 July 2015 07:40:43 UTC+1, Zsolt Kúti wrote: Hello, We have a maven build that keeps failing on Jenkins (1.580.2), but runs fine outside of it. Other versions of the same project have no problem, all runs with the same general Maven setting. This build shows various errors on repeated runs, the common part in them is PermGen. We tried to tune Maven settings by increasing MaxPermSize, adding -T 2 to no avail. Stacktrace below was produced after a Jenkins restart. Any idea what's going wrong here and how to overcome this? Thanks! Zsolt *06:39:22* The system is out of resources.*06:39:22* Consult the following stack trace for details.*06:39:22* java.lang.OutOfMemoryError: PermGen space*06:39:22* at java.lang.ClassLoader.defineClass1(Native Method)*06:39:22* at java.lang.ClassLoader.defineClass(ClassLoader.java:800)*06:39:22*at java.lang.ClassLoader.defineClass(ClassLoader.java:643)*06:39:22*at com.sun.tools.xjc.api.util.APTClassLoader.findClass(APTClassLoader.java:120)*06:39:22* at com.sun.tools.xjc.api.util.APTClassLoader.loadClass(APTClassLoader.java:85)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.initParameterNames(ClassReader.java:1785)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:1744)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:1948)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2020)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2208)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2139)*06:39:22* at com.sun.tools.javac.code.Symbol.complete(Symbol.java:421)*06:39:22* at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:821)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:2320)*06:39:22* at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:1062)*06:39:22* at com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:1227)*06:39:22* at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:2392)*06:39:22* at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:2283)*06:39:22* at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1677)*06:39:22* at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)*06:39:22* at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)*06:39:22*at com.sun.tools.javac.comp.Attr.attribType(Attr.java:473)*06:39:22*at com.sun.tools.javac.comp.Attr.attribType(Attr.java:466)*06:39:22*at com.sun.tools.javac.comp.MemberEnter.attribImportType(MemberEnter.java:721)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:558)*06:39:22* at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:513)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:401)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:413)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:525)*06:39:22* at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:401)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:876)*06:41:13* [ERROR] Unexpected error in channel channel*06:41:13* java.lang.OutOfMemoryError: PermGen space*06:41:16* ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com javascript:*06:41:16* hudson.remoting.RequestAbortedException http://stacktrace.jenkins-ci.org/search?query=hudson.remoting.RequestAbortedException: java.net.SocketException: Connection reset*06:41:16* at hudson.remoting.Request.abort(Request.java:295) http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request.abortentity=method*06:41:16* at hudson.remoting.Channel.terminate(Channel.java:814) http://stacktrace.jenkins-ci.org/search/?query
Fwd: OOME PermGen space
Hello, We have a maven build that keeps failing on Jenkins (1.580.2), but runs fine outside of it. Other versions of the same project have no problem, all runs with the same general Maven setting. This build shows various errors on repeated runs, the common part in them is PermGen. We tried to tune Maven settings by increasing MaxPermSize, adding -T 2 to no avail. Stacktrace below was produced after a Jenkins restart. Any idea what's going wrong here and how to overcome this? Thanks! Zsolt *06:39:22* The system is out of resources.*06:39:22* Consult the following stack trace for details.*06:39:22* java.lang.OutOfMemoryError: PermGen space*06:39:22* at java.lang.ClassLoader.defineClass1(Native Method)*06:39:22* at java.lang.ClassLoader.defineClass(ClassLoader.java:800)*06:39:22* at java.lang.ClassLoader.defineClass(ClassLoader.java:643)*06:39:22* at com.sun.tools.xjc.api.util.APTClassLoader.findClass(APTClassLoader.java:120)*06:39:22* at com.sun.tools.xjc.api.util.APTClassLoader.loadClass(APTClassLoader.java:85)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.initParameterNames(ClassReader.java:1785)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:1744)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:1948)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2020)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2208)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2139)*06:39:22* at com.sun.tools.javac.code.Symbol.complete(Symbol.java:421)*06:39:22* at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:821)*06:39:22* at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:2320)*06:39:22* at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:1062)*06:39:22* at com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:1227)*06:39:22* at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:2392)*06:39:22* at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:2283)*06:39:22* at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1677)*06:39:22* at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)*06:39:22* at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)*06:39:22* at com.sun.tools.javac.comp.Attr.attribType(Attr.java:473)*06:39:22* at com.sun.tools.javac.comp.Attr.attribType(Attr.java:466)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.attribImportType(MemberEnter.java:721)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:558)*06:39:22* at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:513)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:401)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:413)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:525)*06:39:22* at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:401)*06:39:22* at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:876)*06:41:13* [ERROR] Unexpected error in channel channel*06:41:13* java.lang.OutOfMemoryError: PermGen space*06:41:16* ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com*06:41:16* hudson.remoting.RequestAbortedException http://stacktrace.jenkins-ci.org/search?query=hudson.remoting.RequestAbortedException: java.net.SocketException: Connection reset*06:41:16*at hudson.remoting.Request.abort(Request.java:295) http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request.abortentity=method*06:41:16* at hudson.remoting.Channel.terminate(Channel.java:814) http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel.terminateentity=method*06:41:16* at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.SynchronousCommandTransport$ReaderThread.runentity=method*06:41:16* at ..remote call to Channel to Maven [e:\Java\jdk1.7.0_55/bin/java, -Xmx1024m, -cp, E:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-agent-1.6.jar;e:\apache-maven-3.0.4\boot\plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, e:\apache-maven-3.0.4, E:\Jenkins\war\WEB-INF\lib\remoting-2.47.jar, E:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-1.6.jar, E:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.6.jar, 59900](Native Method)*06:41:16* at hudson.remoting.Channel.attachCallSiteStackTrace
Re: M2 Release Plugin - MAVE_OPTS not picked up and getting java.lang.OutOfMemoryError: PermGen space
Environment variables are not used as Jenkins does not run the maven helper shell but stats maven diretly with some trickery via java, you will need to specify the MAVEN_OPTS in the advanced section (IIRC) of the maven configuration for the job - or specify the arguments directly on the release goals and options in the release section. /James On 23/06/2015 06:42, Indra Gunawan (ingunawa) wrote: I am getting the same error. I have set the MAVEN_OPTS to the build environment section of the job via EnvInject but it is not passed to the maven release. The m2/3 type job does clean deploy with -Xms512m –Xmx2048m” MAVEN_OPTS. I am setting the MAVEN_OPTS again in Build Environment - Inject environment variables to the build process” : MAVEN_OPTS='-Xms512m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m’ However the maven release is still failing with OOM PermGen. I see this in the console: At revision 154784 [EnvInject] - Executing scripts and injecting environment variables after the SCM step. [EnvInject] - Injecting as environment variables the properties content MAVEN_OPTS='-Xms512m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m’ … [checkout] $ /users/px-build/commonTools/java/jdk1.7.0_67/LNX-64/bin/java -Xms512m -Xmx2048m -cp /scratch/jenkins_slave_sjc-bld62-lnx/maven3-agent.jar:/users/px-build/commonTools/maven/sjc-hudson62-lnx/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /users/px-build/commonTools/maven/sjc-hudson62-lnx/apache-maven-3.0.4 /scratch/jenkins_slave_sjc-bld62-lnx/slave.jar /scratch/jenkins_slave_sjc-bld62-lnx/maven3-interceptor.jar /scratch/jenkins_slave_sjc-bld62-lnx/maven3-interceptor-commons.jar 38360 … Executing Maven: -B -f /scratch/jenkins_slave_sjc-bld62-lnx/workspace/comp-ps_cluster_parent-PI_3_0_NIHAU/checkout/pom.xml -Dmaven.repo.local=/scratch/jenkins_slave_sjc-bld62-lnx/workspace/comp-ps_cluster_parent-PI_3_0_NIHAU/.repository -DdevelopmentVersion=3.0.29-SNAPSHOT -DreleaseVersion=3.0.28 -e -B -Prelease-profile -DgenerateReleasePoms=true release:prepare release:perform -Dresume=false -s /users/px-build/commonTools/maven/sjc-hudson62-lnx/apache-maven-3.0.4/conf/settings-rel.xml -Dmaven.test.skip=true … -Indra From: jenkinsci-users@googlegroups.com mailto:jenkinsci-users@googlegroups.com on behalf of James Nord jamestn...@gmail.com mailto:jamestn...@gmail.com Reply-To: jenkinsci-users@googlegroups.com mailto:jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com mailto:jenkinsci-users@googlegroups.com Date: Friday, April 17, 2015 at 11:28 AM To: jenkinsci-users@googlegroups.com mailto:jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com mailto:jenkinsci-users@googlegroups.com Subject: Re: M2 Release Plugin - MAVE_OPTS not picked up and getting java.lang.OutOfMemoryError: PermGen space The memory arguments don't get injected randomly - so I would track down where the values 384m and 192m are set and work backwards. If possible can you post your job config.xml and the full output of the build? /James On Friday, 10 April 2015 16:56:59 UTC+1, Keith O'Brien wrote: Hi all, I have a Maven build configured on our Jenkins CI (1.608) server and the following MAVEN_OPTS configured inBuildsection of the job and have m2release plugin v0.14.0 installed. | -XX:MaxPermSize=512m-Xmx2048m | When running a regular build (clean install) everything works as expected, however if I try running a Maven Release Build I'm getting the dreaded java.lang.OutOfMemoryError: PermGen space error. So I have tried setting up my Maven project as best possible, setting JVM args on the appropriate plugins etc, but the root of the problem seem to be that the Maven process being executed by the m2release plugin isn't picking up either the Global MAVEN_OPTS variable I have added or the values above from the job configuration, instead from the box itself I can see that the following command is being run: | /usr/lib/jvm/jdk1.7.0_65/bin/java -Dmaven.repo.local=/var/jenkins/.m2/repository -Xmx384m-XX:MaxPermSize=192m-classpath /usr/local/maven/boot/plexus-classworlds-2.5.1.jar-Dclassworlds.conf=/usr/local/maven/bin/m2.conf -Dmaven.home=/usr/local/maven org.codehaus.plexus.classworlds.launcher.Launcher-B -D maven.repo.local=/var/jenkins/.m2/repository -s /tmp/release-settings2394907685413605920.xml -D java7.path=/usr/lib/jvm/jdk1.7.0_65/bin/java -D maven.release=true-P artifactory clean verify | .. from this the MaxPermSize is being set to 192m and not the 512m I have configured everywhere else. To prove that this is the cause of my problem I have changed the values in this command and run it directly on the Jenkins server with a successful result. Can anyone tell me how I can change the JVM args on this forked maven build? Thanks, Keith
Re: M2 Release Plugin - MAVE_OPTS not picked up and getting java.lang.OutOfMemoryError: PermGen space
I am getting the same error. I have set the MAVEN_OPTS to the build environment section of the job via EnvInject but it is not passed to the maven release. The m2/3 type job does clean deploy with -Xms512m –Xmx2048m” MAVEN_OPTS. I am setting the MAVEN_OPTS again in Build Environment - Inject environment variables to the build process” : MAVEN_OPTS='-Xms512m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m’ However the maven release is still failing with OOM PermGen. I see this in the console: At revision 154784 [EnvInject] - Executing scripts and injecting environment variables after the SCM step. [EnvInject] - Injecting as environment variables the properties content MAVEN_OPTS='-Xms512m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m’ … [checkout] $ /users/px-build/commonTools/java/jdk1.7.0_67/LNX-64/bin/java -Xms512m -Xmx2048m -cp /scratch/jenkins_slave_sjc-bld62-lnx/maven3-agent.jar:/users/px-build/commonTools/maven/sjc-hudson62-lnx/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /users/px-build/commonTools/maven/sjc-hudson62-lnx/apache-maven-3.0.4 /scratch/jenkins_slave_sjc-bld62-lnx/slave.jar /scratch/jenkins_slave_sjc-bld62-lnx/maven3-interceptor.jar /scratch/jenkins_slave_sjc-bld62-lnx/maven3-interceptor-commons.jar 38360 … Executing Maven: -B -f /scratch/jenkins_slave_sjc-bld62-lnx/workspace/comp-ps_cluster_parent-PI_3_0_NIHAU/checkout/pom.xml -Dmaven.repo.local=/scratch/jenkins_slave_sjc-bld62-lnx/workspace/comp-ps_cluster_parent-PI_3_0_NIHAU/.repository -DdevelopmentVersion=3.0.29-SNAPSHOT -DreleaseVersion=3.0.28 -e -B -Prelease-profile -DgenerateReleasePoms=true release:prepare release:perform -Dresume=false -s /users/px-build/commonTools/maven/sjc-hudson62-lnx/apache-maven-3.0.4/conf/settings-rel.xml -Dmaven.test.skip=true … -Indra From: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com on behalf of James Nord jamestn...@gmail.commailto:jamestn...@gmail.com Reply-To: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com Date: Friday, April 17, 2015 at 11:28 AM To: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com Subject: Re: M2 Release Plugin - MAVE_OPTS not picked up and getting java.lang.OutOfMemoryError: PermGen space The memory arguments don't get injected randomly - so I would track down where the values 384m and 192m are set and work backwards. If possible can you post your job config.xml and the full output of the build? /James On Friday, 10 April 2015 16:56:59 UTC+1, Keith O'Brien wrote: Hi all, I have a Maven build configured on our Jenkins CI (1.608) server and the following MAVEN_OPTS configured in Build section of the job and have m2release plugin v0.14.0 installed. -XX:MaxPermSize=512m-Xmx2048m When running a regular build (clean install) everything works as expected, however if I try running a Maven Release Build I'm getting the dreaded java.lang.OutOfMemoryError: PermGen space error. So I have tried setting up my Maven project as best possible, setting JVM args on the appropriate plugins etc, but the root of the problem seem to be that the Maven process being executed by the m2release plugin isn't picking up either the Global MAVEN_OPTS variable I have added or the values above from the job configuration, instead from the box itself I can see that the following command is being run: /usr/lib/jvm/jdk1.7.0_65/bin/java -Dmaven.repo.local=/var/jenkins/.m2/repository -Xmx384m-XX:MaxPermSize=192m-classpath /usr/local/maven/boot/plexus-classworlds-2.5.1.jar-Dclassworlds.conf=/usr/local/maven/bin/m2.conf -Dmaven.home=/usr/local/maven org.codehaus.plexus.classworlds.launcher.Launcher-B -D maven.repo.local=/var/jenkins/.m2/repository -s /tmp/release-settings2394907685413605920.xml -D java7.path=/usr/lib/jvm/jdk1.7.0_65/bin/java -D maven.release=true-P artifactory clean verify .. from this the MaxPermSize is being set to 192m and not the 512m I have configured everywhere else. To prove that this is the cause of my problem I have changed the values in this command and run it directly on the Jenkins server with a successful result. Can anyone tell me how I can change the JVM args on this forked maven build? Thanks, Keith. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1a3000be-3224-46a7-b24c-ce8e95b9b6b5%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/1a3000be-3224-46a7-b24c-ce8e95b9b6b5%40googlegroups.com?utm_medium
Re: M2 Release Plugin - MAVE_OPTS not picked up and getting java.lang.OutOfMemoryError: PermGen space
The memory arguments don't get injected randomly - so I would track down where the values 384m and 192m are set and work backwards. If possible can you post your job config.xml and the full output of the build? /James On Friday, 10 April 2015 16:56:59 UTC+1, Keith O'Brien wrote: Hi all, I have a Maven build configured on our Jenkins CI (1.608) server and the following MAVEN_OPTS configured in Build section of the job and have m2release plugin v0.14.0 installed. -XX:MaxPermSize=512m -Xmx2048m When running a regular build (clean install) everything works as expected, however if I try running a Maven Release Build I'm getting the dreaded java.lang.OutOfMemoryError: PermGen space error. So I have tried setting up my Maven project as best possible, setting JVM args on the appropriate plugins etc, but the root of the problem seem to be that the Maven process being executed by the m2release plugin isn't picking up either the Global MAVEN_OPTS variable I have added or the values above from the job configuration, instead from the box itself I can see that the following command is being run: /usr/lib/jvm/jdk1.7.0_65/bin/java -Dmaven.repo.local=/var/jenkins/.m2/repository -Xmx384m -XX:MaxPermSize=192m -classpath /usr/local/maven/boot/plexus- classworlds-2.5.1.jar -Dclassworlds.conf=/usr/local/maven/bin/m2.conf - Dmaven.home=/usr/local/maven org.codehaus.plexus.classworlds.launcher. Launcher -B -D maven.repo.local=/var/jenkins/.m2/repository -s /tmp/ release-settings2394907685413605920.xml -D java7.path=/usr/lib/jvm/jdk1. 7.0_65/bin/java -D maven.release=true -P artifactory clean verify .. from this the MaxPermSize is being set to 192m and not the 512m I have configured everywhere else. To prove that this is the cause of my problem I have changed the values in this command and run it directly on the Jenkins server with a successful result. Can anyone tell me how I can change the JVM args on this forked maven build? Thanks, Keith. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1a3000be-3224-46a7-b24c-ce8e95b9b6b5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
PermGen space build failure
Hi Everyone, I'm trying to get a maven project of mine to build in jenkins. I've been using one root pom and making modules for every project I've done at school (up to almost 30 modules). To build this on my local machine, I needed to set MAVEN_OPTS=-XX:MaxPermSize=1024m. I've been trying allocating much to my jenkins VM but nothing seems to resolve my issue. These are the last settings I tried. Global maven project configuration; Global MAVEN_OPTS -XX:MaxPermSize=3072m -Xmx2048m -Xms2048m Filesystem settings in /etc/defaults/jenkins JAVA_ARGS=$JAVA_ARGS -Xms2048m -Xmx2048m -XX:MaxPermSize=3072m After I restart jenkins and attempt a build, I watch htop on the VM and the system memory usage never seems to exceed 2gb, and I see the options I set in /etc/defaults/jenkins in htop. My build fails at the same spot every time. Could I be missing some other configuration? Any ideas? [ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-ga1:build-css (default) on project contacts: null: MojoExecutionException: InvocationTargetException: PermGen space - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-ga1:build-css (default) on project contacts: null at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:82) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.liferay.maven.plugins.AbstractLiferayMojo.executeTool(AbstractLiferayMojo.java:218) at com.liferay.maven.plugins.SassToCssBuilderMojo.doExecute(SassToCssBuilderMojo.java:90) at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:75) ... 21 more Caused by: java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:792) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.jruby.gen.org$jruby$RubyModule$Populator.populate(org$jruby$RubyModule$Populator.java:25) at org.jruby.RubyModule.defineAnnotatedMethodsIndividually(RubyModule.java:673) at org.jruby.RubyModule.defineAnnotatedMethods(RubyModule.java:561) at org.jruby.RubyModule.createModuleClass(RubyModule.java:140) at org.jruby.Ruby.initRoot(Ruby.java:1140) at org.jruby.Ruby.init(Ruby.java:1071
java.lang.OutOfMemoryError: PermGen space error in latest Jenkins(v1.585) war in Tomcat
Hi all, I have been investigating a memory leak of Jenkins server(Jenkins war deployed in Tomcat server). I have done some profiling and it seems org/apache/catalina/loader/WebappClassLoader@0x0006fb9aac68 class loaders are kept in live status even after the webapp is undeployed, and GC does not clear them up. Then the tomcat goes OOM after sometime. I can also see error [1] at undeployment time. Is this a know issue? Any workaround to prevent this? Thanks in advance. [1] Oct 28, 2014 11:26:15 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/jenkins] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@14fae02c]) and a value of type [org.acegisecurity.context.SecurityContextImpl] (value [org.acegisecurity.context.SecurityContextImpl@: Null authentication]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
On new server, suddenly getting out of memory PermGen space and heap exceptions with Jenkins while running unit tests
We use Jenkins as our CI solution for a large Java web application. We have many junit tests.On the old server where we have Jenkins running, we have no problems. Everything runs smoothly. We recently set up Jenkins on the new server running Windows 8 that we are eventually going to use. On the new server, we are running into issues when Jenkins runs the unit tests. I should also mention that both servers access the same code base on our Subversion server. The problem is the tests run very slowly and we eventually get out of memory exceptions with respect to PermGen space (on the tests that are associated with Hibernate). I think I solved that issue by adding -XX:MaxPermSize=1024m -XX:+CMSPermGenSweepingEnabled to the Java Options on the project where the issues lie. But the tests still run incredibly slowly. And now we end up running out of heap space. Both of our Jenkins deployments are running inside Tomcat. Also, we didn't need to add any Java Options on the old server with respect to PermGen or heap space. So to recap, for the same code base, Jenkins runs smoothly on one server, but on another server is running out of PermGen and then regular heap space, and also running very slowly. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
checkout PermGen space error
This is my jenkins build log below: [8mha:lh+LCP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvw==[0manonymous 啟動 建置中 工作區 /Users/peter/.jenkins/jobs/Test/workspace Checking out a fresh workspace because there's no workspace at /Users/peter/.jenkins/jobs/Test/workspace Cleaning local Directory . Checking out *https://202.181.246.196/svn/test/trunk* at revision '2014-03-20T11:32:46.435 +0800' FATAL: PermGen space FATAL: PermGen space I don't know how to configure jvm PermGem max size on mac os. Can anyone help me to know how to do? Thanks. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: checkout PermGen space error
I just disable some plugin to fix it -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
PermGen space heap dumps triggered by FindBugs analysis
I opened Issue 21414 on Jenkins JIRA a few days ago, describing a problem I am having with Jenkins hitting a PermGen space error, causing it to lock up and become functionless. I have since found that I can trigger it on demand, on an otherwise idle, just-restarted, Jenkins JVM, by attempting to view the output from a FindBugs analysis. I have two such analyses, one of about 800 KB in size -- which does not trigger the dump -- and a larger one of about 6.8 MB -- which does. The MaxPerm limits have been set very high, but the error can still be triggered on demand. Could someone please take a look at these two heap dumps, particularly the larger/later one? (See first comment in 21414.) If this is a bug, the right people need to be on it. If this is my own error, it would help to know that. Thank you for your help. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space
For information, I added -XX:MaxPermSize=512m -Xms512m -Xmx1024m in the arguments section of the jenkins.xml (windows service definition) file in the jenkins home directory. This file allows to pass arguments to jenkins' JVM. No error occurred since :) Thanks for your help, Thomas Le lundi 16 septembre 2013 09:27:53 UTC+2, Richard Bywater a écrit : No that won't give you what you want. Assuming you are running using Winstone, you'll need to update the Winstone config file (the name of the file and the exact location escapes me at the moment but it will be in the one of the directories off the top level) Richard. On Mon, Sep 16, 2013 at 7:24 PM, Thomas thomas@gmail.comjavascript: wrote: Hello, My jenkins server is installed a s a windows service, and I set these options through the global environment variable of jenkins (configure system), but I don't know if it the right w Le vendredi 13 septembre 2013 21:33:14 UTC+2, Jerry a écrit : Hi, Thomas. If it's a matter of Jenkins itself crashing and giving you the OOM error, you probably just need to set options on the server. If you're starting it through a batch file, it probably needs to look something like this: java -DJENKINS_HOME=C:\path\to\**jenkins\home\directory -Djava.awt.headless=true -XX:MaxPermSize=200m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -jar C:\path\to\jenkins.war 200m should be more than enough for MaxPermSize. Play with that value if this doesn't work immediately. -- Jerry On Thursday, September 12, 2013 3:48:26 AM UTC-4, Thomas wrote: Hi All, I am repeatedly facing PermGen space errors with my jenkins server. My server is installed as a windows service, scheduling build jobs to 4 slave nodes (windows and mac). I have found this link: https://wiki.jenkins-ci.org/**display/JENKINS/I'm+getting+** OutOfMemoryErrorhttps://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError But I'm not clear on how to solve this issue: - How to set options for the JVM when running windows batch or shell scripts ? - Must I set these options on server only, slave nodes only or both ? Thanks for helping, Thomas -- Sound Cloud - http://soundcloud.com/dilig0 -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space
Thanks for the advise I will try the Monitoring plug-in. Thomas Le vendredi 13 septembre 2013 22:19:12 UTC+2, David Harkness a écrit : On Fri, Sep 13, 2013 at 12:33 PM, Jerry gpjerry...@gmail.comjavascript: wrote: 200m should be more than enough for MaxPermSize. Play with that value if this doesn't work immediately. I recommend installing the Monitoring plugin which uses JavaMelody to provide a detailed dashboard that will, among many other things, show you how much PermGen space you're using. Peace, David -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space
Hello, My jenkins server is installed a s a windows service, and I set these options through the global environment variable of jenkins (configure system), but I don't know if it the right w Le vendredi 13 septembre 2013 21:33:14 UTC+2, Jerry a écrit : Hi, Thomas. If it's a matter of Jenkins itself crashing and giving you the OOM error, you probably just need to set options on the server. If you're starting it through a batch file, it probably needs to look something like this: java -DJENKINS_HOME=C:\path\to\jenkins\home\directory -Djava.awt.headless=true -XX:MaxPermSize=200m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -jar C:\path\to\jenkins.war 200m should be more than enough for MaxPermSize. Play with that value if this doesn't work immediately. -- Jerry On Thursday, September 12, 2013 3:48:26 AM UTC-4, Thomas wrote: Hi All, I am repeatedly facing PermGen space errors with my jenkins server. My server is installed as a windows service, scheduling build jobs to 4 slave nodes (windows and mac). I have found this link: https://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError But I'm not clear on how to solve this issue: - How to set options for the JVM when running windows batch or shell scripts ? - Must I set these options on server only, slave nodes only or both ? Thanks for helping, Thomas -- Sound Cloud - http://soundcloud.com/dilig0 -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space
oops, my message has been sent before I have finished... Le lundi 16 septembre 2013 09:24:57 UTC+2, Thomas a écrit : Hello, My jenkins server is installed a s a windows service, and I set these options through the global environment variable of jenkins (configure system), but I don't if this is the right to do this. It seems to have improved the situation (less crashes and better response times) but I now have some issues on the slave nodes, and my concern is do I have to set memory settings on the slave nodes as well ? and how ? Thanks for your help Le vendredi 13 septembre 2013 21:33:14 UTC+2, Jerry a écrit : Hi, Thomas. If it's a matter of Jenkins itself crashing and giving you the OOM error, you probably just need to set options on the server. If you're starting it through a batch file, it probably needs to look something like this: java -DJENKINS_HOME=C:\path\to\jenkins\home\directory -Djava.awt.headless=true -XX:MaxPermSize=200m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -jar C:\path\to\jenkins.war 200m should be more than enough for MaxPermSize. Play with that value if this doesn't work immediately. -- Jerry On Thursday, September 12, 2013 3:48:26 AM UTC-4, Thomas wrote: Hi All, I am repeatedly facing PermGen space errors with my jenkins server. My server is installed as a windows service, scheduling build jobs to 4 slave nodes (windows and mac). I have found this link: https://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError But I'm not clear on how to solve this issue: - How to set options for the JVM when running windows batch or shell scripts ? - Must I set these options on server only, slave nodes only or both ? Thanks for helping, Thomas -- Sound Cloud - http://soundcloud.com/dilig0 -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space
No that won't give you what you want. Assuming you are running using Winstone, you'll need to update the Winstone config file (the name of the file and the exact location escapes me at the moment but it will be in the one of the directories off the top level) Richard. On Mon, Sep 16, 2013 at 7:24 PM, Thomas thomas.dilig...@gmail.com wrote: Hello, My jenkins server is installed a s a windows service, and I set these options through the global environment variable of jenkins (configure system), but I don't know if it the right w Le vendredi 13 septembre 2013 21:33:14 UTC+2, Jerry a écrit : Hi, Thomas. If it's a matter of Jenkins itself crashing and giving you the OOM error, you probably just need to set options on the server. If you're starting it through a batch file, it probably needs to look something like this: java -DJENKINS_HOME=C:\path\to\**jenkins\home\directory -Djava.awt.headless=true -XX:MaxPermSize=200m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -jar C:\path\to\jenkins.war 200m should be more than enough for MaxPermSize. Play with that value if this doesn't work immediately. -- Jerry On Thursday, September 12, 2013 3:48:26 AM UTC-4, Thomas wrote: Hi All, I am repeatedly facing PermGen space errors with my jenkins server. My server is installed as a windows service, scheduling build jobs to 4 slave nodes (windows and mac). I have found this link: https://wiki.jenkins-ci.org/**display/JENKINS/I'm+getting+** OutOfMemoryErrorhttps://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError But I'm not clear on how to solve this issue: - How to set options for the JVM when running windows batch or shell scripts ? - Must I set these options on server only, slave nodes only or both ? Thanks for helping, Thomas -- Sound Cloud - http://soundcloud.com/dilig0 -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space
Hi Thomas, Its obvious that your heap memory size is not sufficient. You please increase the Heap Size of your Jenkins server. http://manojbardhan2009.blogspot.in/2011/08/error-error-javalangoutofmemoryerror.html Hope it will help you. On Thursday, September 12, 2013 1:18:26 PM UTC+5:30, Thomas wrote: Hi All, I am repeatedly facing PermGen space errors with my jenkins server. My server is installed as a windows service, scheduling build jobs to 4 slave nodes (windows and mac). I have found this link: https://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError But I'm not clear on how to solve this issue: - How to set options for the JVM when running windows batch or shell scripts ? - Must I set these options on server only, slave nodes only or both ? Thanks for helping, Thomas -- Sound Cloud - http://soundcloud.com/dilig0 -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space
Hi, Thomas. If it's a matter of Jenkins itself crashing and giving you the OOM error, you probably just need to set options on the server. If you're starting it through a batch file, it probably needs to look something like this: java -DJENKINS_HOME=C:\path\to\jenkins\home\directory -Djava.awt.headless=true -XX:MaxPermSize=200m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -jar C:\path\to\jenkins.war 200m should be more than enough for MaxPermSize. Play with that value if this doesn't work immediately. -- Jerry On Thursday, September 12, 2013 3:48:26 AM UTC-4, Thomas wrote: Hi All, I am repeatedly facing PermGen space errors with my jenkins server. My server is installed as a windows service, scheduling build jobs to 4 slave nodes (windows and mac). I have found this link: https://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError But I'm not clear on how to solve this issue: - How to set options for the JVM when running windows batch or shell scripts ? - Must I set these options on server only, slave nodes only or both ? Thanks for helping, Thomas -- Sound Cloud - http://soundcloud.com/dilig0 -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space
On Fri, Sep 13, 2013 at 12:33 PM, Jerry gpjerrymalo...@gmail.com wrote: 200m should be more than enough for MaxPermSize. Play with that value if this doesn't work immediately. I recommend installing the Monitoring plugin which uses JavaMelody to provide a detailed dashboard that will, among many other things, show you how much PermGen space you're using. Peace, David -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
java.lang.OutOfMemoryError: PermGen space
Hi All, I am repeatedly facing PermGen space errors with my jenkins server. My server is installed as a windows service, scheduling build jobs to 4 slave nodes (windows and mac). I have found this link: https://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError But I'm not clear on how to solve this issue: - How to set options for the JVM when running windows batch or shell scripts ? - Must I set these options on server only, slave nodes only or both ? Thanks for helping, Thomas -- Sound Cloud - http://soundcloud.com/dilig0 -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500
Hi, After i upgraded Jenkins to 1.500 on ubuntu 12.04 host. I am getting java.lang.OutOfMemoryError: PermGen space After i click any link on Jenkins page, the CPU gets pegged 100% This also happens when i let the page stay there and not click on anything. Anyone found a resolution for this? Thanks, -Kamal. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
RE: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500
If you're running out of PermGen space, your problem is with your JVM. Your CPU may be getting pegged because your JVM is desperately garbage collecting to get every last byte of storage left, but I could be wrong. Basically, you're going to have to tell the JVM running your Jenkins instance to give you more PermGen space. Find out (if you don't already know) which application server you're running Jenkins with (if you're launching it like java -jar Jenkins.war, you're using the onboard WinStone app server), and which JVM you're running that server in. You'll have to determine how much PermGen space you're allocating (likely the default that your JVM gives) and how to tell the JVM running your App server to give it more. Again, if you're launching Jenkins as a plain Java app and using WinStone, you can add the PermGen space arguments right to the Java command line. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Kamal Ahmed Sent: Friday, February 08, 2013 7:47 AM To: jenkinsci-users@googlegroups.com Subject: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 Hi, After i upgraded Jenkins to 1.500 on ubuntu 12.04 host. I am getting java.lang.OutOfMemoryError: PermGen space After i click any link on Jenkins page, the CPU gets pegged 100% This also happens when i let the page stay there and not click on anything. Anyone found a resolution for this? Thanks, -Kamal. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500
resolved for now, by downgrading jenkins to 1.494 But all the slaves are now off line, how do i bring the slaves back on ? Thanks, -Kamal. From: Kamal Ahmed kamalah...@yahoo.com To: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 8:53 AM Subject: Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 This was working with the same amount of PermGen Space yesterday BEFORE the upgrade. jenkins JVM options: /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -Xmx2048m -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9000 --ajp13Port=-1 /usr/bin/java -Xmx2048m -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9000 --ajp13Port=-1 Thiis is what i see when i do ps -ef | grep java Java version: java version 1.6.0_35 Java(TM) SE Runtime Environment (build 1.6.0_35-b10) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode) after i let the Jenkins stay initially at the main , i get the following error in by browser ( this is in addition to the CPU being pegged 100% ) Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Please contact the website owners to inform them of this problem. Some build's ago in 2009, i saw someone complain about the exact coding error, and it was a plugin issue that Kohsuke fixed in the release plugin. Thanks, -Kamal. From: Mandeville, Rob rmandevi...@litle.com To: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 8:02 AM Subject: RE: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 If you’re running out of PermGen space, your problem is with your JVM. Your CPU may be getting pegged because your JVM is desperately garbage collecting to get every last byte of storage left, but I could be wrong. Basically, you’re going to have to tell the JVM running your Jenkins instance to give you more PermGen space. Find out (if you don’t already know) which application server you’re running Jenkins with (if you’re launching it like “java –jar Jenkins.war”, you’re using the onboard WinStone app server), and which JVM you’re running that server in. You’ll have to determine how much PermGen space you’re allocating (likely the default that your JVM gives) and how to tell the JVM running your App server to give it more. Again, if you’re launching Jenkins as a plain Java app and using WinStone, you can add the PermGen space arguments right to the Java command line. --Rob From:jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Kamal Ahmed Sent: Friday, February 08, 2013 7:47 AM To: jenkinsci-users@googlegroups.com Subject: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 Hi, After i upgraded Jenkins to 1.500 on ubuntu 12.04 host. I am getting java.lang.OutOfMemoryError: PermGen space After i click any link on Jenkins page, the CPU gets pegged 100% This also happens when i let the page stay there and not click on anything. Anyone found a resolution for this? Thanks, -Kamal. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out
RE: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500
It make sense to run out of PermGen space after upgrading. Presumably, the upgrade has more classes to load, which fills up your PermGen space. If you're using HotSpot 1.6, I believe (but could be wrong) that the option is -XX:MaxPermSize={size}. For 1.6, the default size is 64m, so you may want to try -XX:MaxPermSize=128m. I've seen the same Content Encoding Error you mention below, but I don't know what it means or if it's related to the PermGen space thing. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Kamal Ahmed Sent: Friday, February 08, 2013 8:53 AM To: jenkinsci-users@googlegroups.com Subject: Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 This was working with the same amount of PermGen Space yesterday BEFORE the upgrade. jenkins JVM options: /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -Xmx2048m -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9000 --ajp13Port=-1 /usr/bin/java -Xmx2048m -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9000 --ajp13Port=-1 Thiis is what i see when i do ps -ef | grep java Java version: java version 1.6.0_35 Java(TM) SE Runtime Environment (build 1.6.0_35-b10) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode) after i let the Jenkins stay initially at the main , i get the following error in by browser ( this is in addition to the CPU being pegged 100% ) Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Please contact the website owners to inform them of this problem. Some build's ago in 2009, i saw someone complain about the exact coding error, and it was a plugin issue that Kohsuke fixed in the release plugin. Thanks, -Kamal. From: Mandeville, Rob rmandevi...@litle.commailto:rmandevi...@litle.com To: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 8:02 AM Subject: RE: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 If you're running out of PermGen space, your problem is with your JVM. Your CPU may be getting pegged because your JVM is desperately garbage collecting to get every last byte of storage left, but I could be wrong. Basically, you're going to have to tell the JVM running your Jenkins instance to give you more PermGen space. Find out (if you don't already know) which application server you're running Jenkins with (if you're launching it like java -jar Jenkins.war, you're using the onboard WinStone app server), and which JVM you're running that server in. You'll have to determine how much PermGen space you're allocating (likely the default that your JVM gives) and how to tell the JVM running your App server to give it more. Again, if you're launching Jenkins as a plain Java app and using WinStone, you can add the PermGen space arguments right to the Java command line. --Rob From: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Kamal Ahmed Sent: Friday, February 08, 2013 7:47 AM To: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com Subject: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 Hi, After i upgraded Jenkins to 1.500 on ubuntu 12.04 host. I am getting java.lang.OutOfMemoryError: PermGen space After i click any link on Jenkins page, the CPU gets pegged 100% This also happens when i let the page stay there and not click on anything. Anyone found a resolution for this? Thanks, -Kamal. -- The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500
i increased the PermGen, like you suggested and for the last few minutes its working ok, i even have a build going. Crossing Fingers. It would be nice to have RELEASE NOTES with every new build, or at least have a place where we can share our experiences about a particular release. Thanks, -Kamal. From: Kamal Ahmed kamalah...@yahoo.com To: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 10:37 AM Subject: Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 resolved for now, by downgrading jenkins to 1.494 But all the slaves are now off line, how do i bring the slaves back on ? Thanks, -Kamal. From: Kamal Ahmed kamalah...@yahoo.com To: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 8:53 AM Subject: Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 This was working with the same amount of PermGen Space yesterday BEFORE the upgrade. jenkins JVM options: /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -Xmx2048m -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9000 --ajp13Port=-1 /usr/bin/java -Xmx2048m -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9000 --ajp13Port=-1 Thiis is what i see when i do ps -ef | grep java Java version: java version 1.6.0_35 Java(TM) SE Runtime Environment (build 1.6.0_35-b10) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode) after i let the Jenkins stay initially at the main , i get the following error in by browser ( this is in addition to the CPU being pegged 100% ) Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Please contact the website owners to inform them of this problem. Some build's ago in 2009, i saw someone complain about the exact coding error, and it was a plugin issue that Kohsuke fixed in the release plugin. Thanks, -Kamal. From: Mandeville, Rob rmandevi...@litle.com To: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 8:02 AM Subject: RE: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 If you’re running out of PermGen space, your problem is with your JVM. Your CPU may be getting pegged because your JVM is desperately garbage collecting to get every last byte of storage left, but I could be wrong. Basically, you’re going to have to tell the JVM running your Jenkins instance to give you more PermGen space. Find out (if you don’t already know) which application server you’re running Jenkins with (if you’re launching it like “java –jar Jenkins.war”, you’re using the onboard WinStone app server), and which JVM you’re running that server in. You’ll have to determine how much PermGen space you’re allocating (likely the default that your JVM gives) and how to tell the JVM running your App server to give it more. Again, if you’re launching Jenkins as a plain Java app and using WinStone, you can add the PermGen space arguments right to the Java command line. --Rob From:jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Kamal Ahmed Sent: Friday, February 08, 2013 7:47 AM To: jenkinsci-users@googlegroups.com Subject: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 Hi, After i upgraded Jenkins to 1.500 on ubuntu 12.04 host. I am getting java.lang.OutOfMemoryError: PermGen space After i click any link on Jenkins page, the CPU gets pegged 100% This also happens when i let the page stay there and not click on anything. Anyone found a resolution for this? Thanks, -Kamal. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer. -- You received this message
Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500
Kamal Ahmed kamalah...@yahoo.com kirjoitti 8.2.2013 kello 20.40: i increased the PermGen, like you suggested and for the last few minutes its working ok, i even have a build going. Crossing Fingers. It would be nice to have RELEASE NOTES with every new build, http://jenkins-ci.org/changelog, but it might not always be obvious the Jenkins memory requirements have changed. I guess the developers themselves might not always keep good track of that. Java is notorious for being a bit liberal with your RAM. or at least have a place where we can share our experiences about a particular release. Click on the Community ratings on the changelog page. Another place for sharing experiences is this mailing list. - Sami Thanks, -Kamal. From: Kamal Ahmed kamalah...@yahoo.com To: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 10:37 AM Subject: Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 resolved for now, by downgrading jenkins to 1.494 But all the slaves are now off line, how do i bring the slaves back on ? Thanks, -Kamal. From: Kamal Ahmed kamalah...@yahoo.com To: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 8:53 AM Subject: Re: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 This was working with the same amount of PermGen Space yesterday BEFORE the upgrade. jenkins JVM options: /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -Xmx2048m -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9000 --ajp13Port=-1 /usr/bin/java -Xmx2048m -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9000 --ajp13Port=-1 Thiis is what i see when i do ps -ef | grep java Java version: java version 1.6.0_35 Java(TM) SE Runtime Environment (build 1.6.0_35-b10) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode) after i let the Jenkins stay initially at the main , i get the following error in by browser ( this is in addition to the CPU being pegged 100% ) Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Please contact the website owners to inform them of this problem. Some build's ago in 2009, i saw someone complain about the exact coding error, and it was a plugin issue that Kohsuke fixed in the release plugin. Thanks, -Kamal. From: Mandeville, Rob rmandevi...@litle.com To: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com Sent: Friday, February 8, 2013 8:02 AM Subject: RE: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 If you’re running out of PermGen space, your problem is with your JVM. Your CPU may be getting pegged because your JVM is desperately garbage collecting to get every last byte of storage left, but I could be wrong. Basically, you’re going to have to tell the JVM running your Jenkins instance to give you more PermGen space. Find out (if you don’t already know) which application server you’re running Jenkins with (if you’re launching it like “java –jar Jenkins.war”, you’re using the onboard WinStone app server), and which JVM you’re running that server in. You’ll have to determine how much PermGen space you’re allocating (likely the default that your JVM gives) and how to tell the JVM running your App server to give it more. Again, if you’re launching Jenkins as a plain Java app and using WinStone, you can add the PermGen space arguments right to the Java command line. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Kamal Ahmed Sent: Friday, February 08, 2013 7:47 AM To: jenkinsci-users@googlegroups.com Subject: java.lang.OutOfMemoryError: PermGen space after upgrade to 1.500 Hi, After i upgraded Jenkins to 1.500 on ubuntu 12.04 host. I am getting java.lang.OutOfMemoryError: PermGen space After i click any link on Jenkins page, the CPU gets pegged 100% This also happens when i let the page stay there and not click on anything. Anyone found a resolution for this? Thanks, -Kamal. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s
Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins
I am using Linux, and I already configured my builder user .bashrc script with JAVA_OPTS=$JAVA_OPTS -Xmx1024 -XX:MaxPermSize=512m Do I need to put this JAVA_OPTS in my Jenkins launch script rather than users .bashrc script -Original Message- From: Didier Durand durand.did...@gmail.com To: Jenkins Users jenkinsci-users@googlegroups.com Sent: Thu, Mar 1, 2012 2:38 pm Subject: Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins This is for maven: so it will apply to your job after it starts uilding (in a separate JVM launched by Jenkins for each Job) In your case, it is the master JVM used by Jenkins core functions hat has the issue: it's definitely the Jenkins launch script that has o be updated. Can you tell us about your environnment: os, etc. so that we can elp ? regards didier On Mar 1, 8:55 am, jhoomshar...@netscape.net wrote: I have this entry in my lunch script: export MAVEN_OPTS=-Djava.awt.headless=true -XX:-UseGCOverheadLimit -Xms1280m Xmx1280m -XX:NewSize=128m -XX:MaxPermSize=512m -Original Message- From: Didier Durand durand.did...@gmail.com To: Jenkins Users jenkinsci-users@googlegroups.com Sent: Thu, Mar 1, 2012 12:45 pm Subject: Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in enkins Hi, Did you try to increase the PermGen space in the launch shell script f jenkins. If you are like me on Ubuntu it's in /etc/default in file jenkins : ine JAVA_ARGS. regards didier On Mar 1, 8:09 am, jhoomshar...@netscape.net wrote: Hi All, I am facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins 1.451, this out of memory issue comes when Jenkins try to connect to Slave or uild starts on Slave, following is the error message: // Exception in thread RequestHandlerThread[#0] java.lang.OutOfMemoryError: ermGen space Exception in thread RequestHandlerThread[#5] java.lang.OutOfMemoryError: ermGen space Feb 29, 2012 7:46:39 AM hudson.remoting.Channel$ReaderThread run SEVERE: Unexpected error in channel vw-aus-atm-bl01 java.lang.OutOfMemoryError: PermGen space at sun.misc.Unsafe.defineClass(Native Method) at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45) at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95) at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313) at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1327) at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.init(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127) Exception in thread Channel reader thread: vl-aus-atm-bl01 ava.lang.OutOfMemoryError: PermGen space Exception in thread Ping thread for channel hudson.remoting.Channel@87ca1a9:vw-aus-atm-bl01 ava.lang.OutOfMemoryError: PermGen space Exception in thread Ping thread for channel hudson.remoting.Channel@453130df:vl-aus-atm-bl01 ava.lang.OutOfMemoryError: PermGen space Feb 29, 2012 7:48:18 AM winstone.Logger logInternal WARNING
Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins
Hi All, I am facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins V1.451, this out of memory issue comes when Jenkins try to connect to Slave or a build starts on Slave, following is the error message: // Exception in thread RequestHandlerThread[#0] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#5] java.lang.OutOfMemoryError: PermGen space Feb 29, 2012 7:46:39 AM hudson.remoting.Channel$ReaderThread run SEVERE: Unexpected error in channel vw-aus-atm-bl01 java.lang.OutOfMemoryError: PermGen space at sun.misc.Unsafe.defineClass(Native Method) at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45) at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95) at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313) at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1327) at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.init(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127) Exception in thread Channel reader thread: vl-aus-atm-bl01 java.lang.OutOfMemoryError: PermGen space Exception in thread Ping thread for channel hudson.remoting.Channel@87ca1a9:vw-aus-atm-bl01 java.lang.OutOfMemoryError: PermGen space Exception in thread Ping thread for channel hudson.remoting.Channel@453130df:vl-aus-atm-bl01 java.lang.OutOfMemoryError: PermGen space Feb 29, 2012 7:48:18 AM winstone.Logger logInternal WARNING: Untrapped Error in Servlet java.lang.OutOfMemoryError: PermGen space Exception in thread Channel reader thread: vw-aus-atm-bl01 java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#3] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#1] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#4] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#6] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#2] java.lang.OutOfMemoryError: PermGen space Exception in thread Jenkins cron thread java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#7] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#8] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#14] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#13] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#9] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#11] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#10] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#12] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#15] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#17] java.lang.OutOfMemoryError: PermGen space Exception in thread RequestHandlerThread[#16