Skip to content

Files

Latest commit

 

History

History
10 lines (7 loc) · 341 Bytes

connections.md

File metadata and controls

10 lines (7 loc) · 341 Bytes

Checking number of current connections

A simple way to check the number of current connections is using lsof. Be sure to set the right path to garufa.pid file.

while :; do echo "$(date '+%H:%M:%S') $(sudo lsof -p `cat /path/to/garufa.pid` | grep ESTABLISHED | wc -l)"; sleep 1; done;