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

OutOfMemory while archiving artifacts since 1.363

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Windows Server 2008 R2, JDK 1.6.0_20
      Windows Server 2003, JDK 1.6.0_20

      After I upgraded my hudson installation to 1.364 archiving big files (> 500m) started to fail with the exception below. In 1.363 I have the same problem.

      After downgrading to 1.362 everything seems to be fine again.

      BUILD SUCCESSFUL
      Total time: 20 minutes 44 seconds
      Archiviere Artefakte
      ERROR: Artefakte konnten nicht archiviert werden: pde/build/M.*/,pde/build/buildRepo/*/,pde/build/installer.properties
      hudson.util.IOException2: Failed to copy D:\hudson\jobs\SolutionCenter_Build\workspace/pde/build/M.*/,pde/build/buildRepo/*/,pde/build/installer.properties to D:\hudson\jobs\SolutionCenter_Build\builds\2010-06-29_12-08-03\archive
      at hudson.FilePath$31.invoke(FilePath.java:1451)
      at hudson.FilePath$31.invoke(FilePath.java:1418)
      at hudson.FilePath.act(FilePath.java:753)
      at hudson.FilePath.act(FilePath.java:735)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1418)
      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
      at hudson.model.Build$RunnerImpl.post2(Build.java:158)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1276)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:127)
      Caused by: Failed to copy D:\hudson\jobs\SolutionCenter_Build\workspace\pde\build\M.DML\DML-win32.win32.x86.zip to D:\hudson\jobs\SolutionCenter_Build\builds\2010-06-29_12-08-03\archive\pde\build\M.DML\DML-win32.win32.x86.zip due to Map failed
      at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:853)
      at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1434)
      at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523)
      at hudson.FilePath$31.invoke(FilePath.java:1448)
      ... 15 more
      Caused by: java.io.IOException: Map failed
      at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:758)
      at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(FileChannelImpl.java:447)
      at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:520)
      at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:475)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310)
      at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:841)
      ... 18 more
      Caused by: java.lang.OutOfMemoryError: Map failed
      at sun.nio.ch.FileChannelImpl.map0(Native Method)
      at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:755)
      ... 25 more
      Zeichne Fingerabrücke auf

          [JENKINS-6878] OutOfMemory while archiving artifacts since 1.363

          heinzepreller added a comment -

          Hi, i got the same Errorwith Version 1.364 and 1.363.
          It seem like it occurs if Hudson uses a lot of available heap space and wants to archive a big artifact.

          heinzepreller added a comment - Hi, i got the same Errorwith Version 1.364 and 1.363. It seem like it occurs if Hudson uses a lot of available heap space and wants to archive a big artifact.

          schmieder added a comment -

          The problem should be: Upgraded bundled Ant to version 1.8.1. (issue 6562)

          I also wanted to use Ant 1.8.1 under Windows and had the same problem that copying big files did fail. If I remember right, ant uses a copy mechanism in the jvm that does not work properly.

          schmieder added a comment - The problem should be: Upgraded bundled Ant to version 1.8.1. (issue 6562) I also wanted to use Ant 1.8.1 under Windows and had the same problem that copying big files did fail. If I remember right, ant uses a copy mechanism in the jvm that does not work properly.

          amirkibbar added a comment -

          i think the issue is really about large files being archived, and not about ant - i'm using ant 1.7.1 and hudson 1.366, but still having this problem when archiving large artifacts (>500m).

          amirkibbar added a comment - i think the issue is really about large files being archived, and not about ant - i'm using ant 1.7.1 and hudson 1.366, but still having this problem when archiving large artifacts (>500m).

          heinzepreller added a comment -

          I now can say this error occurs also with ANT 1.7.1 and 1.8.0 in Hudson Version 1.366, and my artifact is only about 150MB big.

          heinzepreller added a comment - I now can say this error occurs also with ANT 1.7.1 and 1.8.0 in Hudson Version 1.366, and my artifact is only about 150MB big.

          schmieder added a comment -

          Thanks heinzepreller for your analysis. I thought it is the problem of ant 1.8.1 using java 6 explained here: http://comments.gmane.org/gmane.comp.jakarta.ant.user/51875

          schmieder added a comment - Thanks heinzepreller for your analysis. I thought it is the problem of ant 1.8.1 using java 6 explained here: http://comments.gmane.org/gmane.comp.jakarta.ant.user/51875

          starwarsfan added a comment -

          We are struggling with this issue too. Installed is Ant 1.7.1 and Hudson 1.366. Are there any ideas when it will be fixed?

          starwarsfan added a comment - We are struggling with this issue too. Installed is Ant 1.7.1 and Hudson 1.366. Are there any ideas when it will be fixed?

          km added a comment -

          Is this a regression introduced in 1.363?

          km added a comment - Is this a regression introduced in 1.363?

          starwarsfan added a comment -

          Same problem with Hudson 1.370

          starwarsfan added a comment - Same problem with Hudson 1.370

          chris_mh3 added a comment -

          Seems to be fixed now. Tested with 1.378

          chris_mh3 added a comment - Seems to be fixed now. Tested with 1.378

          yamoinca added a comment -

          We were still seeing this issue in 1.380. Upgraded to 1.383 yesterday.

          Hudson on a mac mini running an xcode build triggered by perforce SCM, built with execute shell.
          I have the last couple dumps available if it helps.

          yamoinca added a comment - We were still seeing this issue in 1.380. Upgraded to 1.383 yesterday. Hudson on a mac mini running an xcode build triggered by perforce SCM, built with execute shell. I have the last couple dumps available if it helps.

            Unassigned Unassigned
            chris_mh3 chris_mh3
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: