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, ...
- 08-05-2009 #1Just 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
- 08-06-2009 #2
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.
- 08-07-2009 #3Just 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.
- 08-10-2009 #4
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.


Reply With Quote
