db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helge Weissig <hel...@grajagan.org>
Subject Torque generator leaves too many files open
Date Mon, 24 Apr 2006 17:52:32 GMT
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: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message