ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Loren Kratzke (JIRA)" <>
Subject [jira] [Commented] (IVY-1197) OutOfMemoryError duriong ivy:publish
Date Fri, 06 Jun 2014 21:52:02 GMT


Loren Kratzke commented on IVY-1197:

Just to clarify a few things, I was publishing to a Nexus server and the file size limitation
kicked in after a few hundred MB (not GB). In response to Antoines comment above, it is unclear
if 2.4.0-rc1 contains the fix or whether the problem still reproduces when publishing to a
target such as Nexus. I imagine it would happen during any HTTP publish but can't be sure.

Regarding reproducing the problem to pinpoint the exact failure point that I described, just
attempt the publish during a debug session as many times as necessary to zero in on the exception.
I have not had time to go back and do that again. It is a very tedious task after all. But
I stand by my fix. It will solve this issue for sure. I am absolutely certain about this.
Here at my organization we regularly publish 800MB and larger files. This was not possible
before I patched Ivy. This bug is a distant memory around here.

> OutOfMemoryError duriong ivy:publish
> ------------------------------------
>                 Key: IVY-1197
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0
>            Reporter: Michael Rumpf
>         Attachments: ASF.LICENSE.NOT.GRANTED--clipboard.txt, org.apache.ivy.util.url.HttpClientHandler.patch
> When publishing a large file, an OutOfMemoryError occurs.
> {code}
> /export/build/hudson/jobs/ppg-rcp/workspace/ppg-rcp/com.daimler.ppg.rcp.builder/build-wrapper.xml:152:
The following error occurred while executing this line:
> /export/build/hudson/jobs/ppg-rcp/workspace/ppg-rcp/com.daimler.ppg.rcp.builder/build-wrapper.xml:277:
java.lang.OutOfMemoryError: Java heap space
> 	at java.util.Arrays.copyOf(
> 	at
> 	at
> 	at org.apache.ivy.util.FileUtil.copy(
> 	at org.apache.ivy.util.url.BasicURLHandler.upload(
> 	at org.apache.ivy.util.url.URLHandlerDispatcher.upload(
> 	at org.apache.ivy.util.FileUtil.copy(
> 	at org.apache.ivy.plugins.repository.url.URLRepository.put(
> 	at org.apache.ivy.plugins.repository.AbstractRepository.put(
> 	at org.apache.ivy.plugins.resolver.RepositoryResolver.put(
> 	at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(
> 	at org.apache.ivy.core.publish.PublishEngine.publish(
> 	at org.apache.ivy.core.publish.PublishEngine.publish(
> 	at org.apache.ivy.core.publish.PublishEngine.publish(
> 	at org.apache.ivy.Ivy.publish(
> 	at org.apache.ivy.ant.IvyPublish.doExecute(
> 	at org.apache.ivy.ant.IvyTask.execute(
> 	at
> 	at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> Total time: 14 minutes 24 seconds
> Finished: FAILURE
> {code}
> The size of the file that is being uploaded is: 687712714, so around 650-700MB.
> The publish task is part of a Hudson Ant build where the artefacts are published to an
Artifactory repository at the end.
> I have given the Job 1300MB for the max heap size.
> It seems as if the whole file is loaded into memory for the upload.

This message was sent by Atlassian JIRA

View raw message