ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Rumpf (JIRA)" <>
Subject [jira] Commented: (IVY-1197) OutOfMemoryError duriong ivy:publish
Date Fri, 25 Jun 2010 12:29:50 GMT


Michael Rumpf commented on IVY-1197:

My last comment was a little bit early. The issue seems to be sporadic and we have it with
a IBM 1.4.2 JDK and with a Sun 1.6.0 JDK, so the theory that this is a bug in the JDK has
to be questioned. After adding commons-httpclient to the Ivy path the issue seems to be gone
/at least sometimes, sorry, but I did not find a pattern yet).

Additionally I found a hint that chunked streaming mode should used:

See HttpURLConnection.setCHunkedStreamingMode():

Here is a patch for another Apache project as it seems that this mode can only be turned on
when the server supports chunked streaming:

> OutOfMemoryError duriong ivy:publish
> ------------------------------------
>                 Key: IVY-1197
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0
>            Reporter: Michael Rumpf
> 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 is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message