dcsimg
How do avoid opening too many files for Tomcat to handle?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Daniel_Yawitz
Posted On:   Tuesday, April 24, 2001 12:55 AM

When my application tries to process and rename media files in a directory, Tomcat chokes up with this error message: "FileNotFoundException(too many open files)". It works fine for a while, then every time it starts throwing the above exception. Once Tomcat is restarted it will work again, but only for a limited time.


I have tried everything to make sure there are no lingering objects that might build up. I am removing each object from the storage vector, setting the object to null, clearing the vector, and finally calling the Garbage Collector. Nonetheless, this "too many open files" error stops the show every time. Any advice? Much appreciated in advance...

Re: How do avoid opening too many files for Tomcat to handle?

Posted By:   Luigi_Viggiano  
Posted On:   Sunday, May 6, 2001 04:42 PM

I never faced this issue, but it seems strange to me.

Is the OS keeping limits on maximum open files, and JVM overflows this limit?

If you use files in your app, always call close() method.
About | Sitemap | Contact