Premise :
Under \ \ server.xml default tomcat conf, there will be a piece of code:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log." suffix=".txt"/>
Start tomcat \ bin following startup.bat, under tomcat \ logs directory, will generate a similar localhost_access_log.2015-04-21.txt file.
The document recorded in the tomcat log information.
Example
1, start Jmeter, add a thread group
2, was added Sampler-Access Log Sampler, is provided below:
3. Add the Listener - View Results Tree
4, run.
Remaining issues :
1, tomcat itself is running, it will produce localhost_access_log.2015-04-21.txt log file, but when you run jmeter, given:
java.lang.Error: Problem parsing the log file at org.apache.jmeter.protocol.http.sampler.AccessLogSampler.sampleWithParser(AccessLogSampler.java:147) at org.apache.jmeter.protocol.http.sampler.AccessLogSampler.sample(AccessLogSampler.java:183) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) at java.lang.Thread.run(Thread.java:619)
Not yet resolved.
2, the cluster does not test, do not know if it works.
<! - filter configuration information for cluster environments <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/> -->