Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30678

java.lang.OutOfMemoryError: PermGen space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • core

      Hello,

      My Jenkins server is hanging about twice a week for the last several weeks because of a 'PermGen Space' error requiring a service jenkins restart.

      I've tried the increase of the PermSize and Heap size and not had much luck with that. I read the relevant 'PermGen Space' bugs in your bug tracker for any possible solutions and found anything helpful. In addition I've looked through the logs and not seen anything that jumps out to me as the problem.

      At the moment we have ~150 active projects and can't afford restarting the service twice a week. I am relatively new to Jenkins so I might be missing something obvious.

      I've added a log trace form the most recent occurrence:

      Sep 26, 2015 11:55:53 AM hudson.node_monitors.AbstractNodeMonitorDescriptor$Record run
      WARNING: Unexpected node monitoring termination: Response Time
      java.lang.OutOfMemoryError: PermGen space
      at sun.misc.Unsafe.defineClass(Native Method)
      at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
      at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
      at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395)
      at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:113)
      at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:331)
      at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1376)
      at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:72)
      at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:493)
      at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468)
      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1133)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
      at hudson.remoting.UserRequest._serialize(UserRequest.java:158)
      at hudson.remoting.UserRequest.serialize(UserRequest.java:167)
      at hudson.remoting.UserRequest.<init>(UserRequest.java:63)
      at hudson.remoting.Channel.callAsync(Channel.java:779)
      at hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor.monitor(AbstractAsyncNodeMonitorDescriptor.java:76)
      at hudson.node_monitors.ResponseTimeMonitor$1.monitor(ResponseTimeMonitor.java:58)
      at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:306)

            abdubak Abdul Baki
            abdubak Abdul Baki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: