Created
February 14, 2015 13:55
-
-
Save ykhrustalev/ac17d440372de8158986 to your computer and use it in GitHub Desktop.
traffic watch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://serverfault.com/a/316704/69170 | |
netstat -ptu will give you the owning process ids (along with standard netstat info) for all tcp and udp conections. (Normal users will not be able to id all processes.) | |
If something is sending out a fair amount of constant traffic you should see it on Recv-Q or Send-Q columns 2 and 3 respectively. | |
Examples: | |
Recv-Q | |
sudo watch -n .1 'netstat -tup | grep -E "^[t,u]cp[6]{0,1}" | sort -nr -k2' | |
Send-Q | |
sudo watch -n .1 'netstat -tup | grep -E "^[t,u]cp[6]{0,1}" | sort -nr -k3' | |
If you suspect that that process is being triggered by another process ps axf. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment