Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I am searching for a Linux user level command/utility to measure the network bandwitdth used by a specific process by usig its process id. i used different commands like, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    2

    Linux user level command/utility to find the bandwitdth used by a process


    Hi,

    I am searching for a Linux user level command/utility to measure the network bandwitdth used by a specific process by usig its process id.

    i used different commands like, iperf, ntop, netstat etc, but it doesn't to meet my requirement. i need to observe network bandwidth used by only a specific process .

    thnx in advance

  2. #2
    Linux Newbie sarlacii's Avatar
    Join Date
    May 2005
    Location
    South Africa
    Posts
    110
    Hey there, try NetHogs - NetHogs: What program is using that bandwidth?.

    Should be in your repo.
    Respectfully... Sarlac II
    ~~
    The moving clock K' appears to K to run slow by the factor (1-v^2/c^2)^(1/2).
    This is the phenomenon of time dilation.
    The faster you run, the younger you look, to everyone but yourself.

  3. #3
    Just Joined!
    Join Date
    Aug 2009
    Posts
    2
    Thanx Sarlacii,

    yes, this is one of the best solutions, but i need to track a specific process by process id, not all the processes currently running.

  4. #4
    Linux Newbie sarlacii's Avatar
    Join Date
    May 2005
    Location
    South Africa
    Posts
    110
    Ah, sorry, I misunderstood your request. You want to check on a particular PID... so effectively you need something that will work in a script (ala 'top -bn 1 > bw.txt' for top) then nethogs is not the tool, as it does not have a suitable command line switch. You could fire up a BFG-script that calls nethogs, sends the output to a log, then kills it... then a grep for your PID and away you go. Messy though.
    Good luck... I'll keep checking the thread to see what others come up with.
    Respectfully... Sarlac II
    ~~
    The moving clock K' appears to K to run slow by the factor (1-v^2/c^2)^(1/2).
    This is the phenomenon of time dilation.
    The faster you run, the younger you look, to everyone but yourself.

Posting Permissions

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