why_network_contention.sh 247 B

12345
  1. #!/bin/bash
  2. # if there's a bottleneck at the network level, shows who's responsible
  3. 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