diff --git a/commands.md b/commands.md index 6f6821f..3a88f28 100644 --- a/commands.md +++ b/commands.md @@ -115,6 +115,7 @@ netstat -an # display all connections netstat -m # display buffer usage netstat -Lan # display status of listen queues netstat -s # display extensive statistics per protocol (use -p tcp to only show tcp) +sockstat -l # display listening sockets, process names and pids sysctl kern.ipc.numopensockets # display number of open sockets vmstat -z | egrep "ITEM|tcpcb" # number of hash table buckets to handle incoming tcp connections increase net.inet.tcp.tcbhashsize if hitting the limit