0

Apachetop is a small utility that allows, via a terminal, to display in real time requests performed on an Apache web server. The function of this utility is similar to the 'top' command in Linux.

In this article, we are going to see how to install Apachetop on Ubuntu 11.04/10.10/10.04.


Apachetop Installation

Launch the Terminal and issue this command:

sudo apt-get install apachetop

Or install it via Ubuntu Software Center using this link.


To process, for example, logfiles for the Apache web server with Apachetop, you can try this command:

apachetop -d 1 -f /var/log/apache

Here is a sample of what I got via the terminal:

last hit: 00:00:00         atop runtime:  0 days, 00:00:03             16:19:10
All:            0 reqs (   0.0/sec)          0.0B (    0.0B/sec)       0.0B/req
2xx:       0 ( 0.0%) 3xx:       0 ( 0.0%) 4xx:     0 ( 0.0%) 5xx:     0 ( 0.0%)
R (  5s):       0 reqs (   0.0/sec)          0.0B (    0.0B/sec)       0.0B/req
2xx:       0 ( 0.0%) 3xx:       0 ( 0.0%) 4xx:     0 ( 0.0%) 5xx:     0 ( 0.0%)

Post a Comment

 
Top