Nov 192009

A curses-based top-like display for Apache information, including requests per second, bytes per second, most popular URLs, etc.



then run

Enjoy! 😉

Here’s a few custom ./configure options and overrides:

–with-logfile= (added in v0.11)

You may specify the location of the default logfile to open. This overrides the #define in apachetop.h. Of course, you can just use -f on the apachetop commandline, but if you’ll only ever use one log, you can give it to configure and never worry about it again.

–with-pcre= (added in v0.11)

Specifies where to find the pcre installation in the event it’s not in your standard path. configure should look for /include/pcre.h and /lib/libpcre.*

–with-fam= (added in v0.12)

Specifies where to find the FAM installation. The path you give should contain include/fam.h and lib/libfam.* kqueue will be preferred to fam if both are found on the system.

–with-adns= (added in v0.12)

Specifies where to find an adns installation.

You’ll find the binary as src/apachetop


Make sure you have the -dev sources for readline and (n)curses. These contain files required to build binaries that use these libraries; for example on Debian you’ll need the libreadline4-dev package installed.

 Posted by at 12:42 am