Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, My query goes like this; We have a column in task manager of process view in windows showing the number of handles a process is having. Is there ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4

    [SOLVED] Handle count in linux

    Hi all,

    My query goes like this; We have a column in task manager of process view in windows showing the number of handles a process is having. Is there any such so I can view the handles for a process in linux? Kidnly help me with this issue. I have tried a couple of commands like pidstat, ps aux, going thru /proc file system etc.,

    any scripts for getting this are also welcome. thank you..

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    There is no such thing as "handles" in linux. The nearest correlary would be file descriptors. In /proc you will see a bunch of numbered directories. Each is associated with a process. Under each of those directories is a subdirectory named 'fd' which contains a list of the processes' open file descriptors.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4
    Thank you.. I found the solution.

    the file descriptors present are present in /proc/$pid/fd for a particular process.
    and all the file descriptors for total system lies in /proc/sys/fd/file-nr

    thank you..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...