Hi,
How can you expect the addition of ANY component to the processing
pipeline NOT to cause a performance hit?  Of course AccessLogValve adds
something, nothing comes for free.  You can control the hit by modifying
what you're logging and disabling DNS lookups, as others have suggested.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Dan Barron [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 2:09 AM
>To: Tomcat Users List
>Cc: Dan Anderson
>Subject: Can AccessLogValve Cause Tomcat Performance Hit?
>
>Hello,
>
>We are seeing a performance hit to our server whenever we turn on
>AccessLogValve for a virtual host in tomcat. Is this common or has
anyone
>else experienced this?  Any suggestions on how to configure for optimal
>performance?
>
>Below is the virtual host entry in server.xml - tomcat is running stand
>alone on a Red Hat 9 Linux box - the box is dedicated to running tomcat
-
>there are two virtual hosts configured for the server, and only one has
any
>real traffic.
>
>      <Host name="www.mysite.net" debug="0" appBase="webapps"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
>          <!-- <Alias>www.mysite.net</Alias> -->
>           <Logger className="org.apache.catalina.logger.FileLogger"
>                   directory="logs"  prefix="mysite.net." suffix=".txt"
>                   timestamp="true"/>
>           <Valve className="org.apache.catalina.valves.AccessLogValve"
>                  directory="logs/mysite.net-acesslogs"
>                  pattern="%t %a %A %h %m %p %U"
>                  prefix="access_log." suffix=".txt"
>                 timestamp="true"/>
>           <Context path="" docBase="mysite.net/production" debug="0"/>
>       </Host>
>
>Thanks in advance!
>
>Dan Barron
>[EMAIL PROTECTED]



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to