tomcat7 vs. tomcat6, Is there any significant difference in their performance?

java, performance, stress-testing, tomcat6, tomcat7

Solution

The Tomcat "Which Version" page includes a high level overview of the differences between different Tomcat versions. The section for Tomcat 7.x does not claim massive performance increases for Tomcat 7.x versus Tomcat 6.x. A Google search didn't offer any clear evidence either.

I'd be inclined to think that a 5-fold throughput improvement is either:

- a Java / Tomcat configuration and/or tuning issue,

- something a bit unusual about your web application, or

- an unidentified artefact of the way you are doing your performance measurements.

Problem

I have been working on stress testing a Java web application (JSP+Tomcat6+Struts2+Hibernate+mysql) and well the results I was getting wasn't something to brag about! So I upgraded the tomcat version to 7, and wow! the requests/sec I got was 5 times better than before. So enlighten me, is there this much difference between tomcat6 and tomcat7's performance? or there is something wrong with my configuration and stuff?

Original source