July 24th 2011

Calculating requests per second with pv

Miss apachetop under nginx or lighttpd? You can use pv to get a quick-and-dirty readout for almost any daemon:

sudo tail -F /var/log/nginx/access.log | pv -lr >/dev/null
[54.7/s ]

grep can naturally be used to filter the results.

You can subscribe to new posts via email or RSS.