java.lang.OutOfMemoryError: PermGen space

Atlassian JIRA | Maurice Romaniuk | 3 years ago
  1. 0

    We are seeing intermittent failures of our maven builds for a particular project caused by memory issues. The following error log falls out on the last component that is compiled in the project: build 18-Nov-2013 09:10:10 [INFO] ------------------------------------------------------------- build 18-Nov-2013 09:10:10 [ERROR] COMPILATION ERROR : build 18-Nov-2013 09:10:10 [INFO] ------------------------------------------------------------- build 18-Nov-2013 09:10:10 [ERROR] Failure executing javac, but could not parse the error: build 18-Nov-2013 09:10:10 build 18-Nov-2013 09:10:10 build 18-Nov-2013 09:10:10 The system is out of resources. build 18-Nov-2013 09:10:10 Consult the following stack trace for details. build 18-Nov-2013 09:10:10 java.lang.OutOfMemoryError: PermGen space build 18-Nov-2013 09:10:10 at com.sun.tools.javac.comp.Check.<init>(Check.java:836) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.comp.Check.instance(Check.java:86) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.code.Types.<init>(Types.java:101) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.code.Types.instance(Types.java:88) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.jvm.ClassReader.<init>(ClassReader.java:264) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:226) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:331) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:88) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.Main.compile(Main.java:424) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.Main.compile(Main.java:353) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.Main.compile(Main.java:342) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.Main.compile(Main.java:333) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.Main.compile(Main.java:94) build 18-Nov-2013 09:10:10 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) build 18-Nov-2013 09:10:10 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) build 18-Nov-2013 09:10:10 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) build 18-Nov-2013 09:10:10 at java.lang.reflect.Method.invoke(Method.java:606) build 18-Nov-2013 09:10:10 at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:554) build 18-Nov-2013 09:10:10 at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:161) build 18-Nov-2013 09:10:10 at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:605) build 18-Nov-2013 09:10:10 at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:161) build 18-Nov-2013 09:10:10 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) build 18-Nov-2013 09:10:10 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) build 18-Nov-2013 09:10:10 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) build 18-Nov-2013 09:10:10 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) We are running Bamboo 4.4.4 build 3506 with the following Maven and Java versions: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) Maven home: /usr/share/maven3 Java version: 1.7.0_40, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-oracle/jre Default locale: en_CA, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-53-generic", arch: "amd64", family: "unix" The contents of our wrapper.conf file are attached. I've tried rebuilding a number of times but the system seems to be stuck on lack of resources. Here is a "free -m" output from the Ubuntu server running our Bamboo: total used free shared buffers cached Mem: 32173 27268 4904 0 530 20528 -/+ buffers/cache: 6209 25964 Swap: 17409 19 17390

    Atlassian JIRA | 3 years ago | Maurice Romaniuk
    java.lang.OutOfMemoryError: PermGen space
  2. 0

    We are seeing intermittent failures of our maven builds for a particular project caused by memory issues. The following error log falls out on the last component that is compiled in the project: build 18-Nov-2013 09:10:10 [INFO] ------------------------------------------------------------- build 18-Nov-2013 09:10:10 [ERROR] COMPILATION ERROR : build 18-Nov-2013 09:10:10 [INFO] ------------------------------------------------------------- build 18-Nov-2013 09:10:10 [ERROR] Failure executing javac, but could not parse the error: build 18-Nov-2013 09:10:10 build 18-Nov-2013 09:10:10 build 18-Nov-2013 09:10:10 The system is out of resources. build 18-Nov-2013 09:10:10 Consult the following stack trace for details. build 18-Nov-2013 09:10:10 java.lang.OutOfMemoryError: PermGen space build 18-Nov-2013 09:10:10 at com.sun.tools.javac.comp.Check.<init>(Check.java:836) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.comp.Check.instance(Check.java:86) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.code.Types.<init>(Types.java:101) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.code.Types.instance(Types.java:88) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.jvm.ClassReader.<init>(ClassReader.java:264) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:226) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:331) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:88) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.Main.compile(Main.java:424) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.Main.compile(Main.java:353) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.Main.compile(Main.java:342) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.main.Main.compile(Main.java:333) build 18-Nov-2013 09:10:10 at com.sun.tools.javac.Main.compile(Main.java:94) build 18-Nov-2013 09:10:10 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) build 18-Nov-2013 09:10:10 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) build 18-Nov-2013 09:10:10 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) build 18-Nov-2013 09:10:10 at java.lang.reflect.Method.invoke(Method.java:606) build 18-Nov-2013 09:10:10 at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:554) build 18-Nov-2013 09:10:10 at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:161) build 18-Nov-2013 09:10:10 at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:605) build 18-Nov-2013 09:10:10 at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:161) build 18-Nov-2013 09:10:10 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) build 18-Nov-2013 09:10:10 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) build 18-Nov-2013 09:10:10 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) build 18-Nov-2013 09:10:10 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) build 18-Nov-2013 09:10:10 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) We are running Bamboo 4.4.4 build 3506 with the following Maven and Java versions: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) Maven home: /usr/share/maven3 Java version: 1.7.0_40, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-oracle/jre Default locale: en_CA, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-53-generic", arch: "amd64", family: "unix" The contents of our wrapper.conf file are attached. I've tried rebuilding a number of times but the system seems to be stuck on lack of resources. Here is a "free -m" output from the Ubuntu server running our Bamboo: total used free shared buffers cached Mem: 32173 27268 4904 0 530 20528 -/+ buffers/cache: 6209 25964 Swap: 17409 19 17390

    Atlassian JIRA | 3 years ago | Maurice Romaniuk
    java.lang.OutOfMemoryError: PermGen space
  3. 0

    GitHub comment 26#70710961

    GitHub | 2 years ago | rc-34
    java.lang.OutOfMemoryError: PermGen space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Maven: OutOfMemoryError - heap space

    Stack Overflow | 2 years ago | V_B
    java.lang.OutOfMemoryError: Java heap 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 com.sun.tools.javac.comp.Check.<init>()
    2. Java Tools
      Main.compile
      1. com.sun.tools.javac.comp.Check.<init>(Check.java:836)
      2. com.sun.tools.javac.comp.Check.instance(Check.java:86)
      3. com.sun.tools.javac.code.Types.<init>(Types.java:101)
      4. com.sun.tools.javac.code.Types.instance(Types.java:88)
      5. com.sun.tools.javac.jvm.ClassReader.<init>(ClassReader.java:264)
      6. com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:226)
      7. com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:331)
      8. com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:88)
      9. com.sun.tools.javac.main.Main.compile(Main.java:424)
      10. com.sun.tools.javac.main.Main.compile(Main.java:353)
      11. com.sun.tools.javac.main.Main.compile(Main.java:342)
      12. com.sun.tools.javac.main.Main.compile(Main.java:333)
      13. com.sun.tools.javac.Main.compile(Main.java:94)
      13 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. Plexus Javac Component
      JavacCompiler.compile
      1. org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:554)
      2. org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:161)
      2 frames
    5. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:605)
      2. org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:161)
      3. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      3 frames
    6. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      6. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      9 frames
    7. M3 Interceptor
      MavenCli.execute
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      1 frame