Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use apachetop to monitor web server process UNIX
If you are administering an Apache web server and want to see what your Apache server is doing in real time, take time to look at apachetop [112KB download]. It is essentially the same as the UNIX top command, but instead of the top system processes, it displays the top Apache requests in a concise and helpful display. Building the file is simple:

 % cd apachetop-0.10
 % ./configure
 % make
 % sudo make install
Once the file is run, you can then see what your server's up to and tweak away to your hearts content. One note: because of the non-standard location of the OS X Apache log file, you'll need to tell it where to look when you run it:

 % apachetop -f /var/log/httpd/access_log
[robg adds: This compiled and ran successfully on my machine, despite a couple warnings in the configure section...]
    •    
  • Currently 2.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[7,828 views]  

Use apachetop to monitor web server process | 6 comments | Create New Account
Click here to return to the 'Use apachetop to monitor web server process' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use apachetop to monitor web server process
Authored by: ChiperSoft on Feb 09, '04 01:12:05PM
This is also available via DarwinPorts, if you have it installed. No configuration errors when run through there.

[ Reply to This | # ]
Use apachetop to monitor web server process
Authored by: aranor on Feb 10, '04 09:18:40AM

For those of you who, like me, couldn't find this in your DarwinPorts installation, try updating your port-list (and, for that matter, your ports source). The instructions are on the DarwinPorts page.



[ Reply to This | # ]
Use apachetop to monitor web server process
Authored by: bluehz on Feb 09, '04 01:32:34PM

If you want to hardcode the log location into the build (so you don't have to list it as command line arg, but it will still accept cli arg)... then edit:

src/apachetop.h

look for line:
# define DEFAULT_LOGFILE "/var/httpd/apache_log"

and replace with line

#define DEFAULT_LOGFILE "/var/log/httpd/access_log"

or wherever you logs are located then build as usual.



[ Reply to This | # ]
Use apachetop to monitor web server process
Authored by: Puzo on Feb 09, '04 05:33:57PM

GeekTools does similar thing: you put logs - any log - on your screen/desktop an view them in real time...



[ Reply to This | # ]
Use apachetop to monitor web server process
Authored by: readparse on Feb 09, '04 11:35:51PM

Thanks a lot for posting this. I was an apache geek long before I was a Mac geek, and I had never heard of this. One could call this off-topic, since it's a pure unix/apache thing, but I for one am glad you posted it here.



[ Reply to This | # ]
Use apachetop to monitor web server process
Authored by: laurence.wilks on Feb 11, '04 03:27:03AM

I get the following error:

checking build system type... configure: error: /bin/sh config/config.sub -apple-darwin7.2.0 failed

Any ideas (running 10.3.2 build 7D24)?



[ Reply to This | # ]