java.lang.OutOfMemoryError: PermGen space

Jenkins JIRA | A K | 3 years ago
  1. 0

    Was running 1.506 jenkins, and then rolled forward to 1.527. (also updated plugins, which I won't list here unless we think there is a specific one that might be causing the problem). Didn't change any jobs, just kept running as-is. Suddenly, after the server has been up for more than a couple days I start getting these messages: FATAL: PermGen space java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1128) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:696) at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299) at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1355) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at org.apache.http.impl.conn.PoolingClientConnectionManager.leaseConnection(PoolingClientConnectionManager.java:222) at org.apache.http.impl.conn.PoolingClientConnectionManager$1.getConnection(PoolingClientConnectionManager.java:199) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:456) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:746) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:886) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660) at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) ------------------ Something has changed recently that is slowly using up more and more memory, because this wasn't an issue before. I've even tried increasing the amount of permgen space available and that has had no measurable effect.

    Jenkins JIRA | 3 years ago | A K
    java.lang.OutOfMemoryError: PermGen space
  2. 0

    Was running 1.506 jenkins, and then rolled forward to 1.527. (also updated plugins, which I won't list here unless we think there is a specific one that might be causing the problem). Didn't change any jobs, just kept running as-is. Suddenly, after the server has been up for more than a couple days I start getting these messages: FATAL: PermGen space java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1128) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:696) at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299) at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1355) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at org.apache.http.impl.conn.PoolingClientConnectionManager.leaseConnection(PoolingClientConnectionManager.java:222) at org.apache.http.impl.conn.PoolingClientConnectionManager$1.getConnection(PoolingClientConnectionManager.java:199) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:456) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:746) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:886) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660) at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) ------------------ Something has changed recently that is slowly using up more and more memory, because this wasn't an issue before. I've even tried increasing the amount of permgen space available and that has had no measurable effect.

    Jenkins JIRA | 3 years ago | A K
    java.lang.OutOfMemoryError: PermGen space
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Confirmed memory leak

    GitHub | 2 years ago | ldcouto
    java.lang.OutOfMemoryError: PermGen space
  5. 0

    java.lang.OutOfMemory exception when putting more than 3/4 schemas

    GitHub | 3 years ago | gjaju
    java.lang.OutOfMemoryError: PermGen space

  1. davidvanlaatum 1 times, last 5 months ago
1 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 java.lang.ClassLoader.defineClass1()
  2. Java RT
    ClassLoader.defineClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:634)
    2 frames
  3. Ant
    AntClassLoader.defineClassFromData
    1. org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1128)
    1 frame
  4. Hudson
    ClassicPluginStrategy$AntClassLoader2.defineClassFromData
    1. hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:696)
    1 frame
  5. Ant
    AntClassLoader.loadClass
    1. org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299)
    2. org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1355)
    3. org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
    4. org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
    4 frames
  6. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    1 frame
  7. Apache HttpClient
    AbstractHttpClient.execute
    1. org.apache.http.impl.conn.PoolingClientConnectionManager.leaseConnection(PoolingClientConnectionManager.java:222)
    2. org.apache.http.impl.conn.PoolingClientConnectionManager$1.getConnection(PoolingClientConnectionManager.java:199)
    3. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:456)
    4. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    5. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
    5 frames
  8. org.apache.maven
    AbstractHttpClientWagon.fillInputData
    1. org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:746)
    2. org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:886)
    2 frames
  9. Maven
    StreamWagon.get
    1. org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
    2. org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
    3. org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
    3 frames
  10. Aether Connector Wagon
    WagonRepositoryConnector$GetTask.run
    1. org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660)
    1 frame
  11. Aether Utilities
    RunnableErrorForwarder$1.run
    1. org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
    1 frame
  12. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:679)
    3 frames