Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-06-2007, 04:52 AM   #1
LQ Newbie
Registered: Mar 2007
Posts: 16

Rep: Reputation: 0
how to check number of opened handles

In windows systems, I can check number of opened handles by a process, by simply enabling "hanles" column in taskmanager.

Is there anything similar(command or GUI) in linux, by which I can check number of opened handles by a process?

Actually I have created an application, and I want to check if any resource is leaking!
Old 08-06-2007, 07:43 AM   #2
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
ls /proc/whateverprocessnumberyouwant/fd | wc -l
#                                              ^
#                                              ^
#                                             ell, not one
If it turns out you have a leak, you can even find out what the names of the open files are:
ls -l /proc/whateverprocessnumberyouwant/fd
Hope this helps.
Old 08-06-2007, 08:37 AM   #3
LQ Newbie
Registered: Mar 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Great! Thanks.


handle, process

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find out the number of files currently opened closet geek Linux - Kernel 5 05-19-2015 08:19 AM
Fechmail check not retuning number of emails lmcilwain Linux - Software 3 10-30-2006 08:00 PM
How to check what ports are opened Mic Q SUSE / openSUSE 6 08-23-2005 09:04 PM
Check to see that a file is bigger than a certain number of MB linAM Programming 3 02-17-2005 12:42 PM
How to check the network port number? sceadu Linux - Networking 2 11-15-2004 10:05 PM

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration