velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saad Zia" <s...@globalnorthstar.com>
Subject too many files open error
Date Thu, 04 Nov 2004 12:57:51 GMT

Hi.

i am experiencing a problem when generating a velocity template. suppose i
am printing it multiple times, over and over. what happens is that after a
very large number, something like after printing the same template over and
over 18,000 plus times, the error thrown on Tomcat is that :

 java.io.IOException: Too many open files
 java.io.IOException: Too many open files
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at
org.apache.commons.collections.ExtendedProperties.<init>(ExtendedPro
erties.java:470)
        at
org.apache.commons.collections.ExtendedProperties.<init>(ExtendedPro
erties.java:452)
        at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.jav
:473)
        at
org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:93)


could it be that velocity is not releasing the handle of the template passed
to it ? any suggestions or resolutions ?

thx.


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


Mime
View raw message