Our system exports multiple files at a time, by export we mean generate the
files in pure html and download them. The number of files generated can be
anywhere from 10 - unlimited number of html files. The export and html
generation works fine as long as we don't run out of file descriptors on the
Solaris box. But as soon as we reach 1024 file descriptors the application
dies. We could increase the file descriptors but we know that's not
efficient and practical. What we don't understand is why the file
descriptors are being left open. We close all the files after they are
created and the application garbage collects all the objects too. If we run
the same code as a stand alone java app through the command line it works
great. Creates the files and leaves no file descriptors open. It seems to
only happen when we run it through Tomcat 4.1.24. Is there a file descriptor
leak in Tomcat 4.1.24? Can anyone explain why we are having this problem or
recommend a solution for us?