Network usage of a process in linux -
i record total number of bytes transferred on network different versions of vnc. plan start vnc viewer, run script remotely performs actions , displays graphics , disconnects.
how can record total network usage of 1 process in linux? don't want measure else happening on system.
you run different versions of vnc viewers on different port numbers , record traffic ports tool such tcpdump.
there may way of recording traffic per process doing port more obvious , simple
crude example using perl add up/filter
sudo tcpdump -li eth1 ' port 5900'|perl -ne 'print $c,"\n"; $c+=$1 if (/length (\d+)/);'
Comments
Post a Comment