Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1582

OutOfMemory during ANT deploy task

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 2.5.0-rc1
    • None
    • Ant
    • None

    Description

      I recently came to test the 2.5.0-rc1 to find out if it could cure a problem with preemptive authentication during deploy.

      For this I simply replaced the 2.4.0 jar-file with the 2.5.0-rc1 and restarted the build server. The rest of the configuration remained untouched:

      • Jenkins 2.107.3
      • Apache ANT 1.8.3
      • Oracle JDK 1.8.0_111 (x86)
      • Windows 10

      During the deploy of the build artifact of subproject the upload failed with an out of memory exception:
      java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Arrays.java:3236)
      at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
      at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
      at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
      at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:78)
      at org.apache.ivy.util.FileUtil.copy(FileUtil.java:255)
      at org.apache.ivy.util.FileUtil.copy(FileUtil.java:234)
      at org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:315)
      at org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:168)
      at org.apache.ivy.util.FileUtil.copy(FileUtil.java:219)
      at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:88)
      at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:146)
      at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:236)
      at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:217)
      at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:275)
      at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:254)
      at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:177)
      at org.apache.ivy.Ivy.publish(Ivy.java:622)
      at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:316)
      at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:259)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:392)
      at org.apache.tools.ant.Target.performTasks(Target.java:413)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
      From the Jenkins configuration I cannot see that any memory flags are passed to the ANT call. So I guess the default memory constraints apply.

       

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai
            s.goetz Sebastian Götz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: