Jason Hunter has just migrated from Tomcat to Jetty:
As part of the move I’ve upgraded from Tomcat 3.2.1 to Jetty 4.2.21. Even though I helped develop the earliest version of Tomcat and have an affinity toward it, I decided to hop off the Tomcat 4.x and 5.x upgrade path. In these later versions Tomcat is no longer the lean alley cat it once was. It’s gotten a bit “thick in the middle”.
Here’s the Tomcat 5.x dependencies as pulled from gump: ant xml-xerces jaf javamail jmx jsse xml-xalan2 jakarta-tomcat-coyote jakarta-tomcat-catalina jakarta-tomcat-jasper_tc5 jakarta-tomcat-util jakarta-servletapi-5-servlet jakarta-servletapi-5-jsp jakarta-regexp commons-el commons-modeler txt2html-task jakarta-struts junit jndi jakarta-site2 jdbc jaas jta ldap commons-beanutils commons-fileupload commons-launcher commons-collections commons-digester commons-dbcp commons-pool commons-logging commons-daemon xml-apis.
Here’s the Jetty 4.x dependencies: ant commons-logging xml-xerces mx4j xml-apis.
It’s 35 to 5, by my count. In the game of Bloat, lower scores win.
Apache friends I trust said they’ve had much better luck with Jetty and its more focused design, so I followed their advice. I’ve been very pleased. It’s easy to configure, starts very quickly, and has great documentation. Only a few of the book examples aren’t working yet, mostly those related to security. Servlets are portable but their security configurations (i.e. user lists) aren’t.
Tomcat definitely gets a bad rap. The whole dependency game is a real PITA, as many people have discussed before. One of the biggest flaws that I have found with Tomcat is that you can’t embed it. Just talk to the Geronimo folks about that pain… and why do you see so much JBoss/Jetty.
I *have* noticed speed improvements with the 5.0 branch of Tomcat. It has definitely improved from that regard, and isn’t a total dog anymore. Being a reference implementation doesn’t help too, as that role brings different challenges into the mix.
When I think of it, I have enjoyed working with most of the Servlet containers. Resin is speedy, Orion is pleasant. Anything that doesn’t use Jasper as the JSP compiler is a pro (not having to use JSP is in general a pro too ;). As long as you stear from the heavy containers unless you need too, there are some great choices out there!
August 18th, 2004 at 2:29 pm
See my own comment on Jason’s blog.
The dependency thing is misleading: as mentionned by robert above, tomcat 4&5 include Jasper2 – which brings in a whole lot of dependencies.
If you need jsp and jstl and connection pooling in jetty, then the list of dependencies is not that different ;-)
The other things that does not get nearly enough publicity is this: Tomcat 3.x is a thing of the past!
Tomcat 4.1.x is a whole different beast: it’s right up there with the orions/resins in terms of pure servlet performance. And Jasper2 is up there for the JSP side of things – it’s got nothing to do with Jasper1.
Finally, Tomcat5 is even faster than 4.1.x, and supports jsp2.
Personally, I’ve stopped using orion for my webapp dev since 4.1.18. I find tomcat more predictable – maybe because it is the reference implementation?
August 18th, 2004 at 10:30 pm
Can’t embed Tomcat?
http://jroller.com/page/gstamp/20040818#embed_tomcat
October 10th, 2006 at 10:14 pm
http://sharewareriver.com/products/29511.htm
- http://sharewareriver.com/products/29512.htm
- http://sharewareriver.com/products/29513.htm
- http://sharewareriver.com/products/29514.htm
- http://sharewareriver.com/products/29515.htm
- http://sharewareriver.com/products/29516.htm
- http://sharewareriver.com/products/29517.htm
- http://sharewareriver.com/products/29518.htm
- http://sharewareriver.com/products/29519.htm
- http://sharewareriver.com/products/29520.htm
- http://sharewareriver.com/products/29521.htm
- http://sharewareriver.com/products/29522.htm
- http://sharewareriver.com/products/29523.htm
- http://sharewareriver.com/products/29524.htm
- http://sharewareriver.com/products/29525.htm
- http://sharewareriver.com/products/29526.htm
- http://sharewareriver.com/products/29527.htm
- http://sharewareriver.com/products/29528.htm
- http://sharewareriver.com/products/29529.htm
- http://sharewareriver.com/products/29530.htm
- http://sharewareriver.com/products/29531.htm
- http://sharewareriver.com/products/29532.htm
- http://sharewareriver.com/products/29533.htm
- http://sharewareriver.com/products/29534.htm
- http://sharewareriver.com/products/29535.htm
- http://sharewareriver.com/products/29536.htm
- http://sharewareriver.com/products/29537.htm
- http://sharewareriver.com/products/29538.htm
- http://sharewareriver.com/products/29539.htm
- http://sharewareriver.com/products/29540.htm
- http://sharewareriver.com/products/29541.htm
- http://sharewareriver.com/products/29542.htm
- http://sharewareriver.com/products/29543.htm
- http://sharewareriver.com/products/29544.htm
- http://sharewareriver.com/products/29545.htm
- http://sharewareriver.com/products/29546.htm
- http://sharewareriver.com/products/29547.htm
- http://sharewareriver.com/products/29548.htm
- http://sharewareriver.com/products/29549.htm
- http://sharewareriver.com/products/29550.htm
- http://sharewareriver.com/products/29551.htm
- http://sharewareriver.com/products/29552.htm
- http://sharewareriver.com/products/29553.htm
- http://sharewareriver.com/products/29554.htm
- http://sharewareriver.com/products/29555.htm
- http://sharewareriver.com/products/29556.htm
- http://sharewareriver.com/products/29557.htm
- http://sharewareriver.com/products/29558.htm
- http://sharewareriver.com/products/29559.htm
- http://sharewareriver.com/products/29560.htm
- http://sharewareriver.com/products/29561.htm
- http://sharewareriver.com/products/29562.htm
- http://sharewareriver.com/products/29563.htm
- http://sharewareriver.com/products/29564.htm
- http://sharewareriver.com/products/29565.htm
- http://sharewareriver.com/products/29566.htm
- http://sharewareriver.com/products/29567.htm
- http://sharewareriver.com/products/29568.htm
- http://sharewareriver.com/products/29569.htm
- http://sharewareriver.com/products/29570.htm
- http://sharewareriver.com/products/29571.htm
- http://sharewareriver.com/products/29572.htm
- http://sharewareriver.com/products/29573.htm
- http://sharewareriver.com/products/29574.htm
- http://sharewareriver.com/products/29575.htm
- http://sharewareriver.com/products/29576.htm
- http://sharewareriver.com/products/29577.htm
- http://sharewareriver.com/products/29578.htm
- http://sharewareriver.com/products/29579.htm
- http://sharewareriver.com/products/29580.htm
- http://sharewareriver.com/products/29581.htm
- http://sharewareriver.com/products/29582.htm
- http://sharewareriver.com/products/29583.htm
- http://sharewareriver.com/products/29584.htm
- http://sharewareriver.com/products/29585.htm
- http://sharewareriver.com/products/29586.htm
- http://sharewareriver.com/products/29587.htm
- http://sharewareriver.com/products/29588.htm
- http://sharewareriver.com/products/29589.htm
- http://sharewareriver.com/products/29590.htm
- http://sharewareriver.com/products/29591.htm
- http://sharewareriver.com/products/29592.htm
- http://sharewareriver.com/products/29593.htm
- http://sharewareriver.com/products/29594.htm
- http://sharewareriver.com/products/29595.htm
- http://sharewareriver.com/products/29596.htm
- http://sharewareriver.com/products/29597.htm
- http://sharewareriver.com/products/29598.htm
- http://sharewareriver.com/products/29599.htm
- http://sharewareriver.com/products/29600.htm
- http://sharewareriver.com/products/29601.htm
- http://sharewareriver.com/products/29602.htm
- http://sharewareriver.com/products/29603.htm
- http://sharewareriver.com/products/29604.htm
- http://sharewareriver.com/products/29605.htm
- http://sharewareriver.com/products/29606.htm
- http://sharewareriver.com/products/29607.htm
- http://sharewareriver.com/products/29608.htm
- http://sharewareriver.com/products/29609.htm
- http://sharewareriver.com/products/29610.htm
- http://sharewareriver.com/products/29611.htm
- http://sharewareriver.com/products/29612.htm
- http://sharewareriver.com/products/29613.htm
- http://sharewareriver.com/products/29614.htm
- http://sharewareriver.com/products/29615.htm
- http://sharewareriver.com/products/29616.htm
- http://sharewareriver.com/products/29617.htm
- http://sharewareriver.com/products/29618.htm
- http://sharewareriver.com/products/29619.htm
- http://sharewareriver.com/products/29620.htm
- http://sharewareriver.com/products/29621.htm
- http://sharewareriver.com/products/29622.htm
- http://sharewareriver.com/products/29623.htm
- http://sharewareriver.com/products/29624.htm
- http://sharewareriver.com/products/29625.htm
- http://sharewareriver.com/products/29626.htm
- http://sharewareriver.com/products/29627.htm
- http://sharewareriver.com/products/29628.htm
- http://sharewareriver.com/products/29629.htm
- http://sharewareriver.com/products/29630.htm
- http://sharewareriver.com/products/29631.htm
- http://sharewareriver.com/products/29632.htm
- http://sharewareriver.com/products/29633.htm
- http://sharewareriver.com/products/29634.htm
- http://sharewareriver.com/products/29635.htm
- http://sharewareriver.com/products/29636.htm
- http://sharewareriver.com/products/29637.htm
- http://sharewareriver.com/products/29638.htm
- http://sharewareriver.com/products/29639.htm
- http://sharewareriver.com/products/29640.htm
- http://sharewareriver.com/products/29641.htm
- http://sharewareriver.com/products/29642.htm
- http://sharewareriver.com/products/29643.htm
- http://sharewareriver.com/products/29644.htm
- http://sharewareriver.com/products/29645.htm
- http://sharewareriver.com/products/29646.htm
- http://sharewareriver.com/products/29647.htm
- http://sharewareriver.com/products/29648.htm
- http://sharewareriver.com/products/29649.htm
- http://sharewareriver.com/products/29650.htm
- http://sharewareriver.com/products/29651.htm
- http://sharewareriver.com/products/29652.htm
- http://sharewareriver.com/products/29653.htm
- http://sharewareriver.com/products/29654.htm
- http://sharewareriver.com/products/29655.htm
- http://sharewareriver.com/products/29656.htm
- http://sharewareriver.com/products/29657.htm
- http://sharewareriver.com/products/29658.htm
- http://sharewareriver.com/products/29659.htm
- http://sharewareriver.com/products/29660.htm
- http://sharewareriver.com/products/29661.htm
- http://sharewareriver.com/products/29662.htm
- http://sharewareriver.com/products/29663.htm
- http://sharewareriver.com/products/29664.htm
- http://sharewareriver.com/products/29665.htm
- http://sharewareriver.com/products/29666.htm
- http://sharewareriver.com/products/29667.htm
- http://sharewareriver.com/products/29668.htm
- http://sharewareriver.com/products/29669.htm
- http://sharewareriver.com/products/29670.htm
- http://sharewareriver.com/products/29671.htm
- http://sharewareriver.com/products/29672.htm
- http://sharewareriver.com/products/29673.htm
- http://sharewareriver.com/products/29674.htm
- http://sharewareriver.com/products/29675.htm
- http://sharewareriver.com/products/29676.htm
- http://sharewareriver.com/products/29677.htm
- http://sharewareriver.com/products/29678.htm
- http://sharewareriver.com/products/29679.htm
- http://sharewareriver.com/products/29680.htm
- http://sharewareriver.com/products/29681.htm
- http://sharewareriver.com/products/29682.htm
- http://sharewareriver.com/products/29683.htm
- http://sharewareriver.com/products/29684.htm
- http://sharewareriver.com/products/29685.htm
- http://sharewareriver.com/products/29686.htm
- http://sharewareriver.com/products/29687.htm
- http://sharewareriver.com/products/29688.htm
- http://sharewareriver.com/products/29689.htm
- http://sharewareriver.com/products/29690.htm
- http://sharewareriver.com/products/29691.htm
- http://sharewareriver.com/products/29692.htm
- http://sharewareriver.com/products/29693.htm
- http://sharewareriver.com/products/29694.htm
- http://sharewareriver.com/products/29695.htm
- http://sharewareriver.com/products/29696.htm
- http://sharewareriver.com/products/29697.htm
- http://sharewareriver.com/products/29698.htm
- http://sharewareriver.com/products/29699.htm
- http://sharewareriver.com/products/29700.htm
- http://sharewareriver.com/products/29701.htm
- http://sharewareriver.com/products/29702.htm
- http://sharewareriver.com/products/29703.htm
- http://sharewareriver.com/products/29704.htm
- http://sharewareriver.com/products/29705.htm
- http://sharewareriver.com/products/29706.htm
- http://sharewareriver.com/products/29707.htm
- http://sharewareriver.com/products/29708.htm
- http://sharewareriver.com/products/29709.htm
- http://sharewareriver.com/products/29710.htm
-