Well, I don't think so.
1. The benchmark tool was taken from this site:
http://www.caucho.com/articles/jsp_benchmark.xtp it's written in C and
doesn't seem to understand caching.
2. Nothing changed after I added following lines to my servlet
response.setHeader("Cache-Control","no-cache"); //
Perhaps because, in the version without valve, you benchmarking tool use
the expected behaviour of browsers when they have an active cache:
request 'if-modified-since', to which tomcat will respond a 'not modified'.
Rumata a écrit :
>Hello.
>
>I'm trying to make Tomcat server response to some kin
Hello.
I'm trying to make Tomcat server response to some kind of request as
fast as possible. As far as I understood I can stop processing of
request using a valve registered in the Engine pipeline.
I wrote the following code:
public class testValve extends org.apache.catalina.valves.ValveBase {