List Info

Thread: FW: Out of memory error with webdav put




FW: Out of memory error with webdav put
country flaguser name
United States
2007-04-04 00:03:48
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 <anthonycontroltier.com>
Date: Tue, 03 Apr 2007 21:53:03 -0700
To: "devcontroltier.com" <devcontroltier.com>
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/li
b/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.pr
otocol
-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-20
070327
-Dant.home=/export/home/shopintuit/ctier/pkgs/antdepo-200703
27/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"
<anthonycontroltier.com> wrote:

> Hi Greg,
> 
> When trying up upload this file using the new webdav
put:
> 
> [shopintuitesptcrls1] $ ls -l
>
/export/home/shopintuit/ctier/depots/WcgBd/deployments/Modul
eBuilder/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/Modul
eBuilder/sampleSit
> e/tmp/web/sampleSite-LY_sample_v1.tgz
> 
> I get this error:
> 
> [shopintuitesptcrls1] $ ad -p WcgBd -t ModuleBuilder
-o sampleSite -c
> repoImport -- -buildstamp LY_sample_v1
> processing files in directory:
>
/export/home/shopintuit/ctier/depots/WcgBd/deployments/Modul
eBuilder/sampleSit
> e/tmp
> processing file: app/sampleSite-LY_sample_v1.tgz
> Copying 1 file to
>
/export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/M
oduleBuilder/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.ja
r
> Not modified - so not downloaded
> AppServerTgz up to date
> uploading file: 
>
/export/home/shopintuit/ctier/depots/WcgBd/deployments/Modul
eBuilder/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/M
oduleBuilder/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/M
oduleBuilder/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.ja
r
> Not modified - so not downloaded
> WebServerTgz up to date
> uploading file: 
>
/export/home/shopintuit/ctier/depots/WcgBd/deployments/Modul
eBuilder/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/M
oduleBuilder/comma
> nds/repoImport.xml:74: The following error occurred
while executing this line:
>
/export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/P
ackage/commands/up
> load.xml:21: java.lang.OutOfMemoryError
> 
> Command failed.
>
/export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/M
oduleBuilder/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/P
ackage/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/M
oduleBuilder/comma
> nds/repoImport.xml:74: The following error occurred
while executing this line:
>
/export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/P
ackage/commands/up
> load.xml:21: java.lang.OutOfMemoryError
> 
> Command failed.
>
/export/home/shopintuit/ctier/depots/WcgBd/lib/ant/modules/M
oduleBuilder/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.j
ava:288)
>         at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:39)
>         at 
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.j
> ava:25)
>         at
java.lang.reflect.Method.invoke(Method.java:324)
>         at 
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch
Utils.java:105)
>         at
org.apache.tools.ant.Task.perform(Task.java:348)
>         at 
>
org.antdepo.tasks.controller.ErrorhandlerController.doTaskse
quence(Errorhandle
> rController.java:165)
>         at 
>
org.antdepo.tasks.controller.ErrorhandlerController.handleEr
rorAndContinue(Err
> orhandlerController.java:186)
>         at 
>
org.antdepo.tasks.controller.TaskContainerStrategy.performSe
quence(TaskContain
> erStrategy.java:167)
>         at 
>
org.antdepo.tasks.controller.TaskContainerStrategy.perform(T
askContainerStrate
> 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.j
ava:288)
>         at
sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
>         at 
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.j
> ava:25)
>         at
java.lang.reflect.Method.invoke(Method.java:324)
>         at 
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch
Utils.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.ja
va: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(Abstr
actCmdrMainDispatc
> hAction.java:167)
>         at 
>
org.antdepo.cli.AbstractCmdrMainDispatchAction.perform(Abstr
actCmdrMainDispatc
> hAction.java:136)
>         at
org.antdepo.cli.ADCmdrMain.go(ADCmdrMain.java:238)
>         at
org.antdepo.cli.AbstractCmdrMain.run(AbstractCmdrMain.java:2
56)
>         at
org.antdepo.cli.ADCmdrMain.main(ADCmdrMain.java:101)
>         at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:39)
>         at 
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.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

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )