Hello all,

I was reading the Documentation of the Resin servlet Engine today
specifically the part about caching:
http://www.caucho.com/products/resin/ref/caching.xtp

I thought to myself ... let's try that.
In my Application servlet I overloaded the "doservice" method like this:

 protected void doService(
  HttpServletRequest request,
  HttpServletResponse response)
  throws IOException, ServletException
 {
  long now = System.currentTimeMillis();  
  response.setDateHeader("Expires", now + 43200);
  super.doService(request, response);
 }

And then I run some tests.
The application I tested makes frequent calls to 
database(straight JDBC calls) and some of the queries use 5 
joins on very large tables.
Although the performance of Tapestry is great the CPU load of 
the machine is very high (the web server and the DB server 
are on the same machine)
I was blown away....

Page with database Calls
100 users - 1.0 second think time
**********************************************************
Results before cache
35 pages/sec | ResponseTime 600 ms  | CPU Load 90%

Results after cache 
105 pages/sec | ResponseTime 10 ms  | CPU Load 10%
**********************************************************


Simple Tapestry Page with no database Calls 
100 users - 1.0 second think time
**********************************************************
Results before cache
95 pages/sec | ResponseTime 65 ms  | CPU Load 40%

Results after cache
116 pages/sec | ResponseTime 3 ms  | CPU Load 10%
**********************************************************


My lack of knowledge about servlet engines, Tapestry and in 
general all things Java leaves me with some questions:

1 - Does this work only on Resin?
2 - Would it be possible to implement some sort of 
fine-grained caching in Tapestry, something like putting a 
xml tag in the JWC file similar to this:
<use-cache duration="15min" cache-by-property="foobar">.
3 - If possible, how hard it is?
I would like to contribute do this project with something 
that was useful and within my skills


Best regards,


Luis Neves


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to