Find the answer to your Linux question:
Results 1 to 1 of 1
Hello. I have a problem in my program and i need to find out how many sockets does it open. Is there a program that will scan a running program ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    19

    Opened sockets!

    Hello.

    I have a problem in my program and i need to find out how many sockets does
    it open.

    Is there a program that will scan a running program and see how many sockets are opened?

    Or can gdb maybe print out number of sockets and how?

    Or if you have any other idea on how to find out how many opened sockets
    there are please tell me.

    Thank you.


    I am very sorry to post this.
    I found a linux command to help me:
    lsof -p PID
    Last edited by PeroMed; 05-26-2008 at 01:28 PM. Reason: Solved my problem myself

Posting Permissions

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