Just a wild guess : Have you tried to use velocity 1.3.1 for the generator
? Henning has reported memory leaks of velocity 1.4 that were not there in
velocity 1.3.1, so velocity's internal structure seems to have changed.

NB: The generator does not need to run on the same machine as the runtime.
So you can also change the os limits on a development machine used to
generate the om model, and still keep the original os limits on the
production machine.

     Thomas

Helge Weissig <[EMAIL PROTECTED]> schrieb am 24.04.2006 19:52:32:

> When running the torque generator for a good-sized turbine project,
> we run into the system limit of 1024 open file descriptors with the
> stack trace as below, which occurs in the torque-data-model target.
> lsof indicates that the process is keeping all {Base}Foo{Peer} and
> associated map classes open. We are still using the ant build based
> on the turbine TDK, so the previously suggested solutions do not seem
> to be applicable for us. Library versions are torque-gen-3.2 and
> velocity-1.4. Any advise would be greatly appreciated. We would
> prefer to solve this without changing the OS limits. OS is FC4,
> kernel 2.6.15-1.1831_FC4smp. Java is gij version 4.0.2.
>
> thanks,
> h.
>
> PS: Sorry for the cross-post (since it seems a Velocity problem, I
> may even have to take it there).
>
> java.io.FileNotFoundException: /home/helgew/work/webapps/test/WEB-INF/
> src/java/org/grajagan/test/om/OneOfManyFoosPeer.java (Too many open
> files)
>          at java.io.FileOutputStream.open(Native Method)
>          at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
>          at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
>          at java.io.FileWriter.<init>(FileWriter.java:46)
>          at org.apache.velocity.texen.Generator.getWriter
> (Generator.java:279)
>          at org.apache.velocity.texen.Generator.parse(Generator.java:
> 383)
>          at org.apache.velocity.texen.Generator.parse(Generator.java:
> 336)
>          at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
>          at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:585)
>          at org.apache.velocity.util.introspection.UberspectImpl
> $VelMethodImpl.invoke(UberspectImpl.java:267)
>          at org.apache.velocity.runtime.parser.node.ASTMethod.execute
> (ASTMethod.java:197)
>          at
> org.apache.velocity.runtime.parser.node.ASTReference.execute
> (ASTReference.java:175)
>          at
> org.apache.velocity.runtime.parser.node.ASTReference.render
> (ASTReference.java:220)
>          at org.apache.velocity.runtime.parser.node.ASTBlock.render
> (ASTBlock.java:55)
>          at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render
> (ASTIfStatement.java:70)
>          at org.apache.velocity.runtime.parser.node.ASTBlock.render
> (ASTBlock.java:55)
>          at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render
> (ASTIfStatement.java:70)
>          at org.apache.velocity.runtime.parser.node.ASTBlock.render
> (ASTBlock.java:55)
>          at org.apache.velocity.runtime.directive.Foreach.render
> (Foreach.java:166)
>          at
> org.apache.velocity.runtime.parser.node.ASTDirective.render
> (ASTDirective.java:114)
>          at org.apache.velocity.runtime.parser.node.ASTBlock.render
> (ASTBlock.java:55)
>          at org.apache.velocity.runtime.directive.Foreach.render
> (Foreach.java:166)
>          at
> org.apache.velocity.runtime.parser.node.ASTDirective.render
> (ASTDirective.java:114)
>          at org.apache.velocity.runtime.parser.node.SimpleNode.render
> (SimpleNode.java:230)
>          at org.apache.velocity.Template.merge(Template.java:256)
>          at org.apache.velocity.texen.Generator.parse(Generator.java:
> 426)
>          at org.apache.velocity.texen.ant.TexenTask.execute
> (TexenTask.java:519)
>          at org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:275)
>          at org.apache.tools.ant.Task.perform(Task.java:364)
>          at org.apache.tools.ant.Target.execute(Target.java:341)
>          at org.apache.tools.ant.Target.performTasks(Target.java:369)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:
> 1214)
>          at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>          at org.apache.tools.ant.taskdefs.CallTarget.execute
> (CallTarget.java:106)
>          at org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:275)
>          at org.apache.tools.ant.Task.perform(Task.java:364)
>          at org.apache.tools.ant.Target.execute(Target.java:341)
>          at org.apache.tools.ant.Target.performTasks(Target.java:369)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:
> 1214)
>          at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>          at org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:275)
>          at org.apache.tools.ant.Task.perform(Task.java:364)
>          at org.apache.tools.ant.Target.execute(Target.java:341)
>          at org.apache.tools.ant.Target.performTasks(Target.java:369)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:
> 1214)
>          at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>          at org.apache.tools.ant.taskdefs.CallTarget.execute
> (CallTarget.java:106)
>          at org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:275)
>          at org.apache.tools.ant.Task.perform(Task.java:364)
>          at org.apache.tools.ant.Target.execute(Target.java:341)
>          at org.apache.tools.ant.Target.performTasks(Target.java:369)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:
> 1214)
>          at org.apache.tools.ant.Project.executeTargets(Project.java:
> 1062)
>          at org.apache.tools.ant.Main.runBuild(Main.java:673)
>          at org.apache.tools.ant.Main.startAnt(Main.java:188)
>          at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>          at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to