java.lang.OutOfMemoryError: PermGen space

Jenkins JIRA | Abdul Baki | 1 year ago
  1. 0

    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)

    Jenkins JIRA | 1 year ago | Abdul Baki
    java.lang.OutOfMemoryError: PermGen space
  2. 0

    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)

    Jenkins JIRA | 1 year ago | Abdul Baki
    java.lang.OutOfMemoryError: PermGen space
  3. 0

    Re: [epp-dev] Leopard + Helios SWT problems

    eclipse.org | 8 months ago
    java.lang.OutOfMemoryError: PermGen space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    内存溢出问题

    GitHub | 2 years ago | taolive
    java.lang.OutOfMemoryError: PermGen space
  6. 0

    GitHub comment 15#61785112

    GitHub | 2 years ago | ljzzju
    java.lang.OutOfMemoryError: PermGen space

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      PermGen space

      at sun.misc.Unsafe.defineClass()
    2. Java RT
      ObjectOutputStream.writeObject
      1. sun.misc.Unsafe.defineClass(Native Method)
      2. sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
      3. sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
      4. sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396)
      5. java.security.AccessController.doPrivileged(Native Method)
      6. sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395)
      7. sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:113)
      8. sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:331)
      9. java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1376)
      10. java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:72)
      11. java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:493)
      12. java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468)
      13. java.security.AccessController.doPrivileged(Native Method)
      14. java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468)
      15. java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365)
      16. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1133)
      17. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
      17 frames
    3. Hudson :: Remoting Layer
      Channel.callAsync
      1. hudson.remoting.UserRequest._serialize(UserRequest.java:158)
      2. hudson.remoting.UserRequest.serialize(UserRequest.java:167)
      3. hudson.remoting.UserRequest.<init>(UserRequest.java:63)
      4. hudson.remoting.Channel.callAsync(Channel.java:779)
      4 frames
    4. Hudson
      AbstractNodeMonitorDescriptor$Record.run
      1. hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor.monitor(AbstractAsyncNodeMonitorDescriptor.java:76)
      2. hudson.node_monitors.ResponseTimeMonitor$1.monitor(ResponseTimeMonitor.java:58)
      3. hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:306)
      3 frames