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

SJ.Jafari picture SJ.Jafari · Nov 18, 2012 · Viewed 18.1k times · Source

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?

Answer

Stephen C picture Stephen C · Nov 18, 2012

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.