LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-06-2007, 04:52 AM   #1
ruj.sabya
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
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
Code:
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:
Code:
ls -l /proc/whateverprocessnumberyouwant/fd
Hope this helps.
 
Old 08-06-2007, 08:37 AM   #3
ruj.sabya
LQ Newbie
 
Registered: Mar 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Great! Thanks.
 
  


Reply

Tags
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 4 12-22-2006 01:45 PM
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/Novell 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 07:39 AM.

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