Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 784
SJ.Jafari Avatar asked Nov 18 '12 12:11

SJ.Jafari


People also ask

What is the difference between Tomcat 7 and 8?

Tomcat 8 requires Java 7 or later, while you can run Tomcat 7 on Java 6. This is the biggest difference between Tomcat 7 and Tomcat 8. Other differences include: Tomcat 8 can use Apache Portable Runtime, which provides better scalability and performance.

What is the difference between Tomcat 9 and 10?

While the main differences between 9. x.x and 10. x.x are not entirely significant, there are some notable differences between the two. The servlet jumps up to 5.0 from 4, JSP jumps up from 2.3 to 3.0, EL goes from 3.0 to 4.0, JWS from 1.1 to 2.0, and JASPIC 1.1 to 2.0.

What is the difference between Tomcat 8 and 9?

There isn't a lot of difference between Tomcat 8.5 and 9.0: the former started as a fork of the first pre-release versions of Tomcat 9.0. Since the big changes in Java EE Servlet API came with version 3.0 (which is supported by Tomcat 7.0) I don't foresee any major problems with the migration to a newer Tomcat release.

What is Tomcat7 service?

Tomcat7 is a service application for running Tomcat 7 as a Windows service. Tomcat monitor application. Tomcat7w is a GUI application for monitoring and configuring Tomcat services. The available command line options are: //ES//


1 Answers

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.
like image 64
Stephen C Avatar answered Oct 19 '22 16:10

Stephen C