Jetty 6.x versus Tomcat 6.x
An AppFuse user asks:
Has anyone done any performance benchmarking between Jetty 6.x and Tomcat 6.x to see which one is better for production use in terms of scalability, performance and ease-of-use? I'm gearing towards Jetty 6.1 but want to hear other's opinions first.
I admit, I completely changed the wording in this quote to make it more readable.
Most of the companies I've worked with in recent years have been using Tomcat (very successfully) in production. However, I also know the Contegix and JavaLobby guys continue to swear by Resin for the most part. What's your opinion?
IMHO, I don't think it really matters - they're all good enough for production use.
Posted by Terry C. Martin on August 15, 2007 at 05:55 PM MDT #
Posted by Vic on August 16, 2007 at 01:15 PM MDT #
Posted by SM on August 16, 2007 at 03:17 PM MDT #
Posted by Joe Walker on August 16, 2007 at 10:16 PM MDT #
@joe:
Terrible simple to embed Tomcat:
Pretty easy ;-)
Posted by 209.181.65.238 on August 18, 2007 at 04:17 AM MDT #
Posted by RPR on April 10, 2008 at 10:50 AM MDT #
I just tried embedding both Jetty 6 and Tomcat 6. Jetty was much easier to get installed and running. I eventually went with Tomcat, though, as I couldn't get the Jetty JSP compiler to handle Java 1.5 constructs.
For those needing an example of how to embed Tomcat 6, here's my code:
The bit about the default web.xml is to get the standard behaviors you'd expect from Tomcat, like processing JSPs. I just made a copy of conf/web.xml and trimmed it down. The work directory bit is necessary to keep it from using your library directory as a scratch area. And the app path should be the absolute path to your unpacked WAR. From the code, you may also be able to give it the WAR, but I didn't check.
Posted by William Pietri on January 20, 2009 at 01:06 AM MST #