September 26, 2005

Logging request durations in jboss/tomcat

Step 1: Find the tomcat config file. For tomcat 4 this is in

${jboss.server.home}/deploy/jbossweb-tomcat41.sar/META-INF/jboss-service.xml

for tomcat 5 it's

${jboss.server.home}/deploy/jbossweb-tomcat50.sar/server.xml

Step 2: change this

<Valve className="org.apache.catalina.valves.AccessLogValve"
                        prefix="localhost_access" suffix=".log"
                        pattern="common"
 directory="${jboss.server.home.dir}/log"/>

to this

<Valve className="org.apache.catalina.valves.AccessLogValve"
                        prefix="localhost_access" suffix=".log"
                        pattern='%h %l %u %t %D "%r" %s %b"' directory="${jboss.server.home.dir}/log"/>

n.b. in jboss 3.2.7 you'll need to uncomment the valve as it's disabled by default.

Easy. A few lines of {insert scripting langauge of choice} can then give you a 'maximum resource consumer' type report.


- No comments Not publicly viewable


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

Most recent entries

Loading…

Search this blog

on twitter...


    Tags

    Not signed in
    Sign in

    Powered by BlogBuilder
    © MMXXI