Skip to content

Instantly share code, notes, and snippets.

@arcusfelis
Created June 14, 2015 21:22
Show Gist options
  • Save arcusfelis/b47e67aca0d9229847d0 to your computer and use it in GitHub Desktop.
Save arcusfelis/b47e67aca0d9229847d0 to your computer and use it in GitHub Desktop.
ss vs nestat
time ss -s
Total: 35195 (kernel 35290)
TCP: 34809 (estab 34057, closed 698, orphaned 27, synrecv 0, timewait 73/0), ports 195
Transport Total IP IPv6
* 35290 - -
RAW 0 0 0
UDP 15 11 4
TCP 34111 34106 5
INET 34126 34117 9
FRAG 0 0 0
real 0m0.057s
user 0m0.000s
sys 0m0.056s
[root@589574-app4 michaeluvarov]# time netstat -an | grep ESTABLISHED | wc -l
33769
real 0m9.075s
user 0m0.398s
sys 0m8.677s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment