Chris Lamb

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.


Chris Lamb is a freelance software developer and the current Debian Project Leader. You can read other posts by me, see software I have written or read more about me. You can also follow me @lolamby.


Tags: Hacks GNU/Linux

Planets: WUGLUG UWCS Debian ALUG

Sunday 24th July 2011


One comment