apache-top

Versión en castellano

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

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

apache-top

License

apache-top uses GNU/GPL License.

31 / 08 / 2006
Publicado por fr3nd en General a las 21:46 | Permlink

8 Comentarios »

  1. 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.

    AvatarComentario por Kepi — 2/9/2006 @ 10:48 pm

  2. Kepi, apache-top doesn’t use the access log to retrieve the information, so having different logs for every virtualhost doesn’t affect it

    AvatarComentario por fr3nd — 3/9/2006 @ 5:21 pm

  3. Is there an older version that works with Apache 1?

    Comentario por Chris Brunner — 7/9/2006 @ 8:24 pm

  4. Chris: Sorry, but there is no version compatible with apache 1.

    AvatarComentario por fr3nd — 8/9/2006 @ 2:03 pm

  5. 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.

    AvatarComentario por Kepi — 29/1/2007 @ 1:16 am

  6. 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,

    AvatarComentario por DOCENTA — 29/11/2007 @ 5:12 pm

  7. 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.

    AvatarComentario por fr3nd — 30/11/2007 @ 2:23 pm

  8. Hey, thanks for writing it! I love it!

    Comentario por Alvaro — 2/1/2008 @ 9:00 pm

RSS feed para los comentarios de este post.

Dejar comentario