Google Answers Logo
View Question
 
Q: Modified Apache custom log & httpd.conf . Will it affect performance? ( No Answer,   0 Comments )
Question  
Subject: Modified Apache custom log & httpd.conf . Will it affect performance?
Category: Computers > Operating Systems
Asked by: royteo-ga
List Price: $2.00
Posted: 12 Aug 2006 22:30 PDT
Expires: 11 Sep 2006 22:30 PDT
Question ID: 755457
To solve the problem of my Apache server log for some domains
exceeding the 2GB filesize limit, I've recently added some extra
directives to httpd.conf to log images to a separate log.
Below is the original entry (CASE 1):

CustomLog domlogs/the-domain.com combined

Then I've added the "images" directive (CASE 2)

SetEnvIfNoCase Request_URI "\.gif$" is_image=gif
SetEnvIfNoCase Request_URI "\.png$" is_image=png
SetEnvIfNoCase Request_URI "\.jpg$" is_image=jpg
CustomLog domlogs/the-domain.com.images combined env=is_image
CustomLog domlogs/the-domain.com combined env=!is_image


I was considering dumping the images log altogether and set the directive (CASE 3):

SetEnvIfNoCase Request_URI "\.gif$" is_image=gif
SetEnvIfNoCase Request_URI "\.png$" is_image=png
SetEnvIfNoCase Request_URI "\.jpg$" is_image=jpg
CustomLog /dev/null combined env=is_image
CustomLog domlogs/the-domain.com combined env=!is_image


Question 1: 
I'm worried that CASE 2&3 will consume way more resources because it
has to do a REGEX for every query.
From resource consumption point of view, how will each of the
different cases (CASE 1-3) differ from the others and will the
difference be significant enough to be worth paying attention to?

Question 2:
Is there any other way to make it more efficient?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy