why_network_contention.sh 272 B

123456
  1. #!/bin/bash
  2. # GPLv3+ see COPYING.GPL
  3. # if there's a bottleneck at the network level, shows who's responsible
  4. while sleep 3; do clear; ss -p | grep -i 'tcp' | awk -F' ' '{print $4 "\t" $5 "\t" $6 "\t" $7 $8}' | sort -nr | head -n 20; done # | sort -nr | head -n 10; done