wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat and Static Resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and Static Resources" Watch "Tomcat and Static Resources" New topic
Author

Tomcat and Static Resources

Nick Williams
Greenhorn

Joined: Sep 13, 2010
Posts: 2
In my organization we are using IIS7 in front of Tomcat 6.0.26. Now, before I get lots of responses that say "Don't use IIS" or "Use Apache" or "Use Tomcat Standalone," trust me, if I could follow that advice I would. IIS is specifically required for our organization and using any other configuration is not an option.

We are doing some load testing on an 8-core 3Ghz, 8GB RAM preproduction server and noticed that, with 75 simulated simultaneous users, we were seeing an average response time of 830ms for our most commonly-accessed static content (CSS, JavaScript and skin image files used on every page). This seemed a little too high to us, so we decided to have IIS serve our static content directly and bypass Tomcat. We followed all the instructions in the Tomcat documentation and DID get the configuration to work. However, average response times for the same subset of static content increased from 830ms to 2950ms, which is extreme and surprising. All of these results are repeatable over and over again.

All conventional wisdom I could find online suggested that the opposite would happen, and my own experience as a programmer tells me that it should. We have checked all IIS performance options and everything is set to more-than adequate levels for the simulated load. Our JSP and Servlet response times did not change, and are much lower than 2950ms, so it seems unlikely (though not impossible) that some performance option in IIS could be causing this issue (seeing as how all the traffic is going through IIS one way or another).

Does anybody know what could be the cause here? We've spend days on this problem and we're not getting anywhere (and by we I mean myself a programmer, my manager and an IIS/server administrator). We just don't know what else to try.

Thanks,

Nick
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat and Static Resources
 
Similar Threads
Need help on JSP application development
Slow SSL connections after Tomcat 5 to 7 migration
Examining the Agile Manifesto
Tomcat blocking requests
Implementing filters