db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Vatkov" <bvat...@globaltech-bg.com>
Subject Re: ant -f build-torque.xml datasql OutOfMemoryError
Date Fri, 02 Apr 2004 13:36:22 GMT
I consider you can try to give some heap memory increment parameters to the
JVM..

  -Xms<size>        set initial Java heap size (in megabytes)
  -Xmx<size>        set maximum Java heap size (in megabytes)

example: -Xms512 -Xmx128

kind regards,
bogdan
----- Original Message ----- 
From: "Daniel Huang" <danihuan@cisco.com>
To: <torque-user@db.apache.org>
Sent: Thursday, April 01, 2004 11:19 PM
Subject: ant -f build-torque.xml datasql OutOfMemoryError


> Hi,
>
> I'm trying to generate sql (ant -f build-torque.xml datasql) from a data
xml
> generated by ant -f build-torque datadump. My data xml file is about 1.7M.
> And I got OutOfMemoryError during the middle of sql generation. I wonder
if
> this is because my data xml is to big or something else. Has anyone seen
> this before?
>
> Thanks
> Daniel
>
> BUILD FAILED
> C:\Documents and Settings\danihuan\projects\cc-trunk\build-torque.xml:369:
> Exception thrown by 'generator.parse'. For more information consult the
> velocity log, or invoke ant with the -debug flag.
>         at
> org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:564)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
>         at org.apache.tools.ant.Task.perform(Task.java:401)
>         at org.apache.tools.ant.Target.execute(Target.java:338)
>         at org.apache.tools.ant.Target.performTasks(Target.java:365)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
>         at org.apache.tools.ant.Main.runBuild(Main.java:669)
>         at org.apache.tools.ant.Main.startAnt(Main.java:220)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
> Caused by: org.apache.velocity.exception.MethodInvocationException:
> Invocation of method 'parse' in  class org.apache.velocity.texen.Generator
> threw exception class java.lang.OutOfMemoryError : null
>         at
>
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309
> )
>         at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
> va:207)
>         at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
> a:250)
>         at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
>         at
> org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:344)
>         at
>
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.jav
> a:153)
>         at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:27
> 1)
>         at org.apache.velocity.Template.merge(Template.java:296)
>         at org.apache.velocity.texen.Generator.parse(Generator.java:395)
>         at org.apache.velocity.texen.Generator.parse(Generator.java:361)
>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
>
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260
> )
>         at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
> va:207)
>         at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
> a:250)
>         at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
>         at
> org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:344)
>         at
>
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.jav
> a:153)
>         at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:27
> 1)
>         at org.apache.velocity.Template.merge(Template.java:296)
>         at org.apache.velocity.texen.Generator.parse(Generator.java:451)
>         at
> org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:552)
>         ... 10 more
> --- Nested Exception ---
> org.apache.velocity.exception.MethodInvocationException: Invocation of
> method 'parse' in  class org.apache.velocity.texen.Generator threw
exception
> class java.lang.OutOfMemoryError : null
>         at
>
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309
> )
>         at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
> va:207)
>         at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
> a:250)
>         at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
>         at
> org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:344)
>         at
>
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.jav
> a:153)
>         at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:27
> 1)
>         at org.apache.velocity.Template.merge(Template.java:296)
>         at org.apache.velocity.texen.Generator.parse(Generator.java:395)
>         at org.apache.velocity.texen.Generator.parse(Generator.java:361)
>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
>
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260
> )
>         at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
> va:207)
>         at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
> a:250)
>         at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
>         at
> org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:344)
>         at
>
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.jav
> a:153)
>         at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:27
> 1)
>         at org.apache.velocity.Template.merge(Template.java:296)
>         at org.apache.velocity.texen.Generator.parse(Generator.java:451)
>         at
> org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:552)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
>         at org.apache.tools.ant.Task.perform(Task.java:401)
>         at org.apache.tools.ant.Target.execute(Target.java:338)
>         at org.apache.tools.ant.Target.performTasks(Target.java:365)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
>         at org.apache.tools.ant.Main.runBuild(Main.java:669)
>         at org.apache.tools.ant.Main.startAnt(Main.java:220)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message