schernic
11/11/2015 - 2:36 PM

usefull network commands

usefull network commands

sysctl net.ipv4.tcp_tw_reuse=1



######### TCP #########
# measure queue overflows
netstat -s | grep listen

# see port process
sudo netstat -tulpn

# count sockets in TIME_WAIT
netstat -n | grep TIME_WAIT | wc -l

# show sockets in TIME_WAIT
netstat -on | grep TIME_WAIT | less

# show socket queue length
ss -l


######### Network ########
# measure network load
nload


######## General #########

# CPU stats
dstat -cgilpymn