views:

3997

answers:

3
+11  Q: 

Tomcat VS Jetty

I'm wondering about the downsides of each servers in respect to a production environement. Did anyone have big problems with one of the features? Performance, etc. I also quicky took a look at the new Glassfish, does it match up the simple servlet containers (it seems to have a good management interface at least)?

+7  A: 

I love Jetty for its low maintenance cost. It's just unpack and it's ready to roll. Tomcat is a bit high maintenance, requires more configuration and it's heavier. Besides, Jetty's continuations are very cool.

Vinko Vrsalovic
This doesn't answer the question especially for performance. I wouldn't mind messing around with configuration more if it meant better performance.
John
@John: I haven't had performance problems with neither, else I would have mentioned it. I have a *feeling* that Jetty is faster, but haven't had the need to prove it.
Vinko Vrsalovic
+2  A: 

I like how Jetty can be embedded in an application so that it doesn't need to run in a web container (Hudson and Nexus are two apps that can run in this mode). Can Tomcat do this?

Andrew Swan
Of course it can
gustavogb
+2  A: 

I think tomcat is more disscussed and supported by application, Jetty is portable and can be embedded in an application. and Jetty has good continuations.

Some developer reports Tomcat has better performance than Jetty. I am not sure you can take a look:

http://www.javarmi.com/2010/10/jetty-vs-tomcat-performance-comparison/

Jimmy Subb