Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    bandwidth monitor for each process/application?

    Hi all,
    I have process A and process B running. I'm looking for a network monitoring tool that tells me how much network resource is A using and B using. Do you know such tool exist? If not, please tell me which library, kernel system call... should I look at to build this feature ?

  2. #2
    Hi matbiec,
    Well there exist many bandwidth monitoring tools. pkstat is one among the them and is a very good small utility. The following is the link : -

    If you wish build an application of your own, a library that can help you in performing packet capturing is libpcap.

    With Regards,

  3. #3
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    I think wireshark have the same capabilities
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  4. $spacer_open
  5. #4
    Thank you both for your prompt responses. pktstat tells me which protocol is using # bandwidth. So it doesn't differentiate 2 httpd processes using port 80. On the other hand, wireshark is a complex suite for my application.
    So, I'm writing the tool to monitor traffic. So far, my goal is to associate a packet to the process. Thus, the approach is capture packet size, link the packet to opened socket, then link the opened socket to the program. So far, I can only sniff the packet. I haven't figured out how to link the packet to the socket and from socket to the process yet. Any suggestion?
    Thanks a tons

  6. #5

    Did you ever write the application?

    I am looking for something similar that provides me with stats on what applications consumed how much bandwidth over X period of time (daily or monthly)

    I am currently compiling pkstats to check it out and am using nvstat to see total daily / monthly bandwidth but I would like to know applicaiton level bandwidth usage.

Posting Permissions

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