Find the answer to your Linux question:
Results 1 to 5 of 5
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    5

    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
    Linux User
    Join Date
    Jun 2006
    Posts
    311
    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 : -

    http://www.adaptive-enterprises.com....tware/pktstat/

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

    With Regards,
    Thinker

  3. #3
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    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. #4
    Just Joined!
    Join Date
    Oct 2006
    Posts
    5
    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

  5. #5
    Just Joined!
    Join Date
    Apr 2004
    Posts
    2

    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
  •