You can't depend on garbage collection, since it may not be
invoked until after you run out of file descriptors.  To see how
many you are using, take a look at "lsof".  It's on the RedHat
5.2 CD, or get it from ftp://vic.cc.purdue.edu/pub/tools/unix/.





[EMAIL PROTECTED] on 04/20/99 04:02:36 AM

To:   [EMAIL PROTECTED]
cc:    (bcc: Russell Pridemore/Lex/Lexmark)
Subject:  Re: Too manyopen files in system




> > Hi,
> >
> > I'm using jdk1.2 pre-v1 on RedHat 5.2 for my servlets using
> > Apache JServ. Every once in a while I get the following error:
> >
> >   Too many open files in system
>
> Make sure you're closing the files when you're done with them.

I've checked my code for this. But even without closing them
myself, shouldn't they be closed at garbage collecting time?

What tool under Linux do I use to check how many files are
currently open in my system?

> --
> Jeff Galyan
> http://www.anamorphic.com
> http://www.sun.com
> jeffrey dot galyan at sun dot com
> talisman at anamorphic dot com
> Sun Certified Java(TM) Programmer
> ======================================================================
> Linus Torvalds on Microsoft and software development:
> "... if it's a hobby for me and a job for you, why are you doing such a
> shoddy job of it?"
>
> The views expressed herein do not necessarily reflect those of my
> employer.
>
> Sun Microsystems, Inc., has no connection to my involvement with the
> Mozilla Organization.

--
    _  _   _ ___    ___ __    __  __ ___  ___ ___
   | |/_\ / / _ \  | _ \  )  / _)/  ) _ \/ _ (   )
  _| /(_)\ ( (_) ) ||_) ) ) ( (_-| | (_)  (_) | |
 (__/_/ \_\_\___/  |___/__)  \___|_|\___/\___/|_|


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]






----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to