Re: Number of open files

Yves Lafon <[email protected]> Thu, 5 Sep 2002 12:09:50 +0200 (MET DST)
Newsgroups gmane.comp.web.jigsaw
Message-ID <[email protected]>
On Tue, 6 Aug 2002, Vicini, Victor M wrote:

> I am getting a very similar error on our UNIX box. I have a servlet that
> writes to a txt file via JRUN and I
> am getting (Too many open files). How do I fix this ? Is there a fix I can
> put into the servlet that will close the
> file after it's use or is there something that needs to be done on the
> server.

limit descriptors #maxnum
Also you should check that your servlet is releasing the file handles,
either by GC or directly (the latter is preferred as you never know when
the GC will kick in).
Thanks,


-- 
Yves Lafon - W3C
"Baroula que barouleras, au tiƩu toujou t'entourneras."