Re: How to check number of file handles used by process ???
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxxxx>
- Date: Mon, 22 Jan 2007 07:22:17 -0800
Jarek <jarek@xxxxxxxxxxxxx> writes:
Is there any way to ask system about number of file handles
used by specific process.
From within the process, or from "outside" ?
Some syscall doing something like this:
lsof | grep <process_name> | wc -l
I don't believe any such syscall exist.
but more efficiently ?
If /proc is mounted and you are not looking for a portable solution,
this will probably be more efficient:
ls /proc/<pid>/fd | wc -l
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.
- References:
- Prev by Date: Re: How to monitor the disk load?
- Next by Date: Re: How to monitor the disk load?
- Previous by thread: How to check number of file handles used by process ???
- Next by thread: Re: How to check number of file handles used by process ???
- Index(es):
Relevant Pages
|