Realtime Apache Monitoring with Spread

Typically if you need to monitor Apache, you have to rely on log file analysis or the built in server-status tool via mod_status. I wanted something better to monitor all the hosts on my web cluster.

Now that I’ve got realtime Apache log consolidation working, I found a cool utility in Theo Schlossnagle’s book, Scalable Internet Architectures that let’s you see realtime response code stats for your web cluster. I call the thing wwwtop.

The output looks like this, using the first four hosts with a one-second interval:


Looks like I’ve got some 404’s to hunt down.

Some To-dos:

  • pretty aggregate output, similar to mytop.
  • a version to monitor APC stats the same way

Combined with top, vmstat, bmon, mytop, and now this, I’ve got a complete toolkit for monitoring the web stack.


About John Herren

John Herren is a developer and technical consultant with focus on web applications. He currently serves as Director of Development for Primetime US, the company behind the hit movie and book The Secet. John was formerly staff writer and developer community evangelist for Zend Technologies. Along with founding neat experiments like, John is an active member in the mashup community, working with API providers and speaking at conferences. He is a published author of Linux certification study material. John enjoys using open source software like PHP and Ruby on Rails to bend the web into exciting new chimeras of hyperlinked goodness. View all posts by John Herren

3 responses to “Realtime Apache Monitoring with Spread

  • Steve C

    Just out of curiosity, are you complying with the license?:

    “3. All advertising materials (including web pages) mentioning features or use of this software, or software that uses this software, must display the following acknowledgment: “This product uses software developed by Spread Concepts LLC for use in the Spread toolkit. For more information about Spread see“”

    I wanted to try Spread and related projects but this is a deal killer.

  • Claudia

    thanks for the post…Indepth analysis of the log files is great, but sometime you just want to see what is happening on your web sites at the moment….Apachetop is a very useful and small program that displays the stats for Apache as they happen…
    Use multitail to watch the logs..

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: