apache-top
Description
apache-top provides real-time display of the active processes from a remote apache server. I’ts like the top linux command.
With apache-top you can get:
- The active apache processes with their associated PID, the status, the seconds being active, the CPU usage, the asociated VirtualHost, the accessing ip and the request (POST or GET, the file being accessed and the used protocol)
- The server uptime and the last time it was restarted
- The CPU usage
- Requests by second, Kb by second and the average Kb by request
- Number of active and inactive processes
- A graph with the inactive and active processes and their status
Requeriments
- python 2.4
- Apache 2.0 webserver with mod_status and the ExtendedStatus directive activated. You will also need to be allowed to access from your ip address.
Download
Examples
To see the statistics for the webserver 192.168.0.1:
apache-top -u http://192.168.0.1/server-status
If for any reason we don’t have direct access to 80 port, a tunel can be createdusing ssh:
ssh -L 8080:localhost:80 192.168.0.1
And we run this command in other terminal:
apache-top -u http://localhost:8080/server-status
Links
Screenshots
License
apache-top uses GNU/GPL License.
8 Comentarios »
RSS feed para los comentarios de este post.


Versión en castellano





Thanks for this project! This is exactly what I’m looking for. apachetop is good, but it is totaly useless in case you have different access log for every virutal host.
In program help (with ?) will be great.
Kepi, apache-top doesn’t use the access log to retrieve the information, so having different logs for every virtualhost doesn’t affect it
Is there an older version that works with Apache 1?
Comentario por Chris Brunner — 7/9/2006 @ 8:24 pm
Chris: Sorry, but there is no version compatible with apache 1.
fr3nd: (reply to 2)
Yes, I know it! I talk about apachetop (the one without -
as you said.. simmilar project with diferent approach). I like it but it is useless for me cause it depends on access logs.
And this is why I love your’s apache-top
It saves my live many times from time i wrote here for the first time. Thanks again.
Hello, on a cPanel server when starting it:
./apache-top.py -u http://localhost/whm-server-status
ERROR parsing the data. Please, make sure you are alowed to read the server-status page and you have ExtendedStatus flag activated
What may be the problem ?
Thanks,
Docenta: Check you’re using apache 2.0 and try to access to that url using a “normal” browser to see if the server-status page works correctly.
Hey, thanks for writing it! I love it!
Comentario por Alvaro — 2/1/2008 @ 9:00 pm