Re: Servlets: Too many files open

lsof was not in my search path on my linux server but I found that
I could find out the process id of the java process with

ps mx

and then see the file descriptors under the proc filesystem (using the process
id as a
subdirectory name.)

[bdm@web1 fd]$ pwd
/proc/31431/fd
[bdm@web1 fd]$ ls
0   1   10  11  12  13  14  15  16  2   3   4   5   6   7   8   9
[bdm@web1 fd]$



Karsten Boehm wrote:

> Hi,
>
> On Thu, 6 May 1999, Paul Speed wrote:
>
> >       I'm not very hopeful on this one, but is there a way under
> > Unix (specifically Linux) to determine how many file descriptors
> > that a process is using?  Or even total number of descriptors used
> > system-wide?
>
>         Maybe you can use 'lsof' (e.g. under Linux) to get the information
> you need?
>
>         yours, Karsten.



--
Chris Turner, http://www.cycom.co.uk/

Received on Friday, 7 May 1999 11:10:04 UTC