Bad Penguin Logo
Advertisement

Apache mod_proxy statistics PDF Print E-mail
 

By TuxInvader, on 05-09-2006 16:29

Views : 2259

Published in : Technology, Linux

This is a little script I wrote that uses awk to generate information on Apache mod_proxy performance. The script is called cachestats.sh and it takes in a list of log files to process. 
 
For each log it tells you how many requests were served along with the real numbers and percentages of those that were Hits, Misses or Un-cacheable. It breaks each one down by HTTP return code.
 

You can download the script here ==> cachestats.sh
 
Copyright: Mark Boddington 2005 
 
Hopefully it will help you gauge how well your mod_proxy installation is doing at proxying your content. If you have a high percentage of misses perhaps you need to increase the values of some of your Cache* directives.
 
The script expects the logfiles to be in the format:
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{X-Cache}o\""
 
If you use some other format you may need to alter the script a little. The script only actually uses the return code and the X-Cache fields. As long as you have those it should work with a little tweaking.
 

Last update : 20-10-2006 18:37

   

Users' Comments  
 


Add your comment
Name
E-mail
Title  
 
Comment
 
Available characters: 600
 
  This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

   
   

No comment posted

< Prev   Next >