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

OutOfMemoryError on Maven site on SECOND build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: All

      When building a Maven 2 project with goal site the first time the project is
      build correctly. However the second time the build returns an OutOfMemoryError
      when archiving the results of the first subproject. Removing previous builds and
      rebuilding works fine. But as soon as one or more previous builds are maintained
      the error occurs.

      Heap space is set to 1,5 GB. The build machine has 6 GB of virtual memory.

      Error message:
      [HUDSON] Archiving site
      [HUDSON] Archiving
      D:\HudsonHome\jobs\proj-site\workspace\proj\proj-testing\pom.xml to
      D:\HudsonHome\jobs\proj-site\modules\com.proj.proj$proj-testing\builds\2009-06-29_09-28-58\archive\com.proj.proj\proj-testing\0.1-SNAPSHOT\pom.xml
      [HUDSON] Not actually archiving due to digest match
      [HUDSON] Archiving
      D:\HudsonHome\jobs\proj-site\workspace\proj\proj-testing\pom.xml to
      D:\HudsonHome\jobs\proj-site\modules\com.proj.proj$proj-testing\builds\2009-06-29_09-28-58\archive\com.proj.proj\proj-testing\0.1-SNAPSHOT\pom.xml
      [HUDSON] Not actually archiving due to digest match
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      Java heap space
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.reflect.UndeclaredThrowableException
      at hudson.maven.$Proxy2.end(Unknown Source)
      at hudson.maven.MavenBuildProxy2$Filter.end(MavenBuildProxy2.java:67)
      at
      hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:621)
      at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:304)
      at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:262)
      at
      org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at hudson.maven.agent.Main.launch(Main.java:165)
      at hudson.maven.MavenBuilder.call(MavenBuilder.java:159)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:584)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:530)
      at hudson.remoting.UserRequest.perform(UserRequest.java:103)
      at hudson.remoting.UserRequest.perform(UserRequest.java:47)
      at hudson.remoting.Request$2.run(Request.java:236)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.io.IOException: Remote call failed
      at hudson.remoting.Channel.call(Channel.java:518)
      at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:148)
      ... 28 more
      Caused by: java.lang.OutOfMemoryError: Java heap space
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5 minutes 45 seconds
      [INFO] Finished at: Mon Jun 29 09:34:54 CEST 2009
      [INFO] Final Memory: 60M/126M
      [INFO] ------------------------------------------------------------------------
      channel stopped
      Skipping Cobertura coverage report as build was not UNSTABLE or better ...
      Finished: FAILURE

      Hudson version: 1.310
      Container: Tomcat

            kutzi kutzi
            lblankers lblankers
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: