http://www.javabeat.net/tips/193-javalangoutofmemoryerror-permgen-space.html
From: Jhoomsharabi-2 [via Jenkins] [mailto:ml-node+s361315n4434215...@n4.nabble.com] Sent: Thursday, March 01, 2012 12:40 PM To: Dhanesh Koliyat (WT01 - Central Engineering) Subject: 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]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#18]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#19]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#21]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#22]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#20]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#23]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#24]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#25]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#26]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#28]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#29]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#27]" java.lang.OutOfMemoryError: PermGen space Exception in thread "SocketListener(engrhes50x64-rba.local.)" java.lang.OutOfMemoryError: PermGen space Exception in thread "JmDNS(engrhes50x64-rba.local.).Timer" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#30]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#31]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#32]" java.lang.OutOfMemoryError: PermGen space Exception in thread "RequestHandlerThread[#33]" java.lang.OutOfMemoryError: PermGen space //---------------------------------------------------------------------------------------------------------------- Because of out of memory issue every day I need to restart Jenkins server to make it up, this has became really a pain in neck, anyone has any idea on how I can go away with this issue any configuration I need to change under my Slave m/c Slave Lunch Method is “Launch Slave via execution of command on Master”. Any help in this regard is highly appreciated. Thanks, Jhoom ________________________________ If you reply to this email, your message will be added to the discussion below: http://jenkins.361315.n4.nabble.com/Facing-problem-of-java-lang-OutOfMemoryError-PermGen-space-in-Jenkins-tp4434215p4434215.html To start a new topic under Jenkins users, email ml-node+s361315n361316...@n4.nabble.com To unsubscribe from Jenkins users, click here<http://jenkins.361315.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=361316&code=ZGhhbmVzaC5rb2xpeWF0QHdpcHJvLmNvbXwzNjEzMTZ8LTE4NDc5MDg2OTY=>. NAML<http://jenkins.361315.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -- View this message in context: http://jenkins.361315.n4.nabble.com/Facing-problem-of-java-lang-OutOfMemoryError-PermGen-space-in-Jenkins-tp4434215p4434223.html Sent from the Jenkins users mailing list archive at Nabble.com.