How to know how many files a process opened efficiently?

Posted by Victor Lin on Server Fault See other posts from Server Fault or by Victor Lin
Published on 2010-06-10T14:18:12Z Indexed on 2010/06/10 14:23 UTC
Read the original article Hit count: 326

Filed under:
|
|

I knows I can use the command

lsof -p xxxx | wc -l

to know the count of opened files op a process, it works, but however, it is just too inefficient. I have some server process which have too many socket files, the wc -l method never return the result. So, what is the efficient way to know how many files opened on a process?

Thanks.

© Server Fault or respective owner

Related posts about linux

Related posts about files