PolyGlotProg.BlogSpot
Showing posts with label
netstat
.
Show all posts
Showing posts with label
netstat
.
Show all posts
Monitor Concurrent Load on a Server
Here is a one-liner that displays the number of currently active TCP connections on a given port, in intervals of 1 second.
while true; do n=`netstat -n|grep 2707|wc -l`; echo $`date` --- $n ; sleep 1; done;
Useful for load testing a service.
Older Posts
Home
Subscribe to:
Posts (Atom)