FW: Out of memory error with webdav put

Anthony Shortland <[email protected]> Tue, 03 Apr 2007 22:03:48 -0700
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <C2387FC4.1F70%[email protected]>
Since you guys may wake up before us ... is there a known issue using the
Slide Ant ³put² task to upload large files? I¹m getting an out of memory
error trying to put ~320MB.

Thanks,

Anthony.

------ Forwarded Message
From: Anthony Shortland <[email protected]>
Date: Tue, 03 Apr 2007 21:53:03 -0700
To: "[email protected]" <[email protected]>
Conversation: Out of memory error with webdav put
Subject: Re: Out of memory error with webdav put

Hacking ad to up the heap-size didn¹t help:

+ java -Xmx756m -Xms256m -classpath
/export/home/shopintuit/ctier/pkgs/antdepo-20070327/classes:/export/home/sho
pintuit/ctier/pkgs/antdepo-20070327/pkgs/apache-ant-1.7.0/lib/xerces-2.6.0.j
ar:/export/home/shopintuit/ctier/pkgs/antdepo-20070327/pkgs/apache-ant-1.7.0
/lib/xml-apis.jar -Dcmdr.classname=org.antdepo.cli.ADCmdrMain
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
-Djavax.net.ssl.trustStore=/export/home/shopintuit/ctier/etc/truststore
-Djavax.net.ssl.trustStoreType=jks
-Dantdepo.base=/export/home/shopintuit/ctier
-Dantdepo.home=/export/home/shopintuit/ctier/pkgs/antdepo-20070327
-Dant.home=/export/home/shopintuit/ctier/pkgs/antdepo-20070327/pkgs/apache-a
nt-1.7.0 -Dcontext.user=shopintuit
-Dframework.userinfo=/export/home/shopintuit/.frameworkUser
launcher.CmdrLauncher -p WcgBd -t ModuleBuilder -o sampleSite -c repoImport
-- -buildstamp LY_sample_v1

... it doesn¹t try to read the whole file into memory does it?


On 4/3/07 9:48 PM, "Anthony Shortland" <[email protected]> wrote:

> Hi Greg,
> 
> When trying up upload this file using the new webdav put:
> 
> [shopintuit@esptcrls1] $ ls -l
> /export/home/shopintuit/ctier/depots/WcgBd/deployments/ModuleBuilder/sampleSit
> e/tmp/web/sampleSite-LY_sample_v1.tgz
> -rw-r--r--  1 shopintuit dynamo 328320447 Apr  3 21:41
> /export/home/shopintuit/ctier/depots/WcgBd/deployments/ModuleBuilder/sampleSit
> e/tmp/web/sampleSite-LY_sample_v1.tgz
> 
> I get this error:
> 
> [shopintuit@esptcrls1] $ ad -p WcgBd -t ModuleBuilder -o sampleSite -c
> repoImport -- -buildstamp LY_sample_v1
> processing files in directory:
> /export/home/shopintuit/ctier/depots/WcgBd/deployments/ModuleBuilder/sampleSit
> e/tmp
> processing file: app/sampleSite-LY_sample_v1.tgz
> Copying 1 file to
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/ModuleBuilder/comma
> nds
> Getting: 
> http://esptcrls1.ptc.intuit.com:80/webdav/WcgBd/publish/modules/AppServerTgz-h
> ead.jar
> To: /export/home/shopintuit/ctier/var/WcgBd/AppServerTgz-head.jar
> Not modified - so not downloaded
> AppServerTgz up to date
> uploading file: 
> /export/home/shopintuit/ctier/depots/WcgBd/deployments/ModuleBuilder/sampleSit
> e/tmp/app/sampleSite-LY_sample_v1.tgz to:
> http://esptcrls1.ptc.intuit.com:80/webdav/pkgs/WcgBd/AppServerTgz/tgzs/sampleS
> ite-LY_sample_v1.tgz...
> Uploading to: 
> http://esptcrls1.ptc.intuit.com:80/webdav/pkgs/WcgBd/AppServerTgz/tgzs/sampleS
> ite-LY_sample_v1.tgz
> Uploading: sampleSite-LY_sample_v1.tgz
> Puted 1 file to 
> http://esptcrls1.ptc.intuit.com:80/webdav/pkgs/WcgBd/AppServerTgz/tgzs/sampleS
> ite-LY_sample_v1.tgz
> Deleting: 
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/ModuleBuilder/comma
> nds/entity2085820757.properties
> processing file: web/sampleSite-LY_sample_v1.tgz
> Copying 1 file to
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/ModuleBuilder/comma
> nds
> Getting: 
> http://esptcrls1.ptc.intuit.com:80/webdav/WcgBd/publish/modules/WebServerTgz-h
> ead.jar
> To: /export/home/shopintuit/ctier/var/WcgBd/WebServerTgz-head.jar
> Not modified - so not downloaded
> WebServerTgz up to date
> uploading file: 
> /export/home/shopintuit/ctier/depots/WcgBd/deployments/ModuleBuilder/sampleSit
> e/tmp/web/sampleSite-LY_sample_v1.tgz to:
> http://esptcrls1.ptc.intuit.com:80/webdav/pkgs/WcgBd/WebServerTgz/tgzs/sampleS
> ite-LY_sample_v1.tgz...
> Uploading to: 
> http://esptcrls1.ptc.intuit.com:80/webdav/pkgs/WcgBd/WebServerTgz/tgzs/sampleS
> ite-LY_sample_v1.tgz
> Uploading: sampleSite-LY_sample_v1.tgz
> Error handler caught BuildException: The following error occurred while
> executing this line:
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/ModuleBuilder/comma
> nds/repoImport.xml:74: The following error occurred while executing this line:
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/Package/commands/up
> load.xml:21: java.lang.OutOfMemoryError
> 
> Command failed.
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/ModuleBuilder/comma
> nds/repoImport.xml:115: No message
> 
> error: No message
> 
> 
> Here it is with verbose on:
> 
> -execute:
> Uploading to: 
> http://esptcrls1.ptc.intuit.com:80/webdav/pkgs/WcgBd/WebServerTgz/tgzs/sampleS
> ite-LY_sample_v1.tgz
> Uploading: sampleSite-LY_sample_v1.tgz
> Exiting 
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/Package/commands/up
> load.xml.
> PropertiesNet(n/d): Uninstalling...
> Overriding previous definition of reference to ant.PropertyHelper
> Error handler caught BuildException: The following error occurred while
> executing this line:
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/ModuleBuilder/comma
> nds/repoImport.xml:74: The following error occurred while executing this line:
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/Package/commands/up
> load.xml:21: java.lang.OutOfMemoryError
> 
> Command failed.
> /export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/ModuleBuilder/comma
> nds/repoImport.xml:115: No message
>         at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:142)
>         at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
> ava:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at 
> org.antdepo.tasks.controller.ErrorhandlerController.doTasksequence(Errorhandle
> rController.java:165)
>         at 
> org.antdepo.tasks.controller.ErrorhandlerController.handleErrorAndContinue(Err
> orhandlerController.java:186)
>         at 
> org.antdepo.tasks.controller.TaskContainerStrategy.performSequence(TaskContain
> erStrategy.java:167)
>         at 
> org.antdepo.tasks.controller.TaskContainerStrategy.perform(TaskContainerStrate
> gy.java:113)
>         at org.antdepo.tasks.controller.Workflow.execute(Workflow.java:334)
>         at org.antdepo.tasks.ApplyMacro.apply(ApplyMacro.java:225)
>         at org.antdepo.tasks.ApplyMacro.execute(ApplyMacro.java:190)
>         at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
> ava:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at org.antdepo.common.AntProject.execute(AntProject.java:469)
>         at 
> org.antdepo.cli.AbstractCmdrMainDispatchAction.execute(AbstractCmdrMainDispatc
> hAction.java:167)
>         at 
> org.antdepo.cli.AbstractCmdrMainDispatchAction.perform(AbstractCmdrMainDispatc
> hAction.java:136)
>         at org.antdepo.cli.ADCmdrMain.go(ADCmdrMain.java:238)
>         at org.antdepo.cli.AbstractCmdrMain.run(AbstractCmdrMain.java:256)
>         at org.antdepo.cli.ADCmdrMain.main(ADCmdrMain.java:101)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
> ava:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at launcher.CmdrLauncher.main(CmdrLauncher.java:35)
> 
> error: No message
> 
> Line 21 of upload.xml is indeed the put:
> 
>      20   <target name="-execute" description="Runs the handler
> implementation">
>      21     <put verbose="true" url="${opts.url}"
> userid="${framework.webdav.username}" password="${framework.webdav.password}"
> lock="false" overwrite="true" file="${opts.filename}"/>
>      22   </target>
> 
> 
> Any ideas?
> 
> 
> Anthony.
> 
> 
> 


------ End of Forwarded Message