Java Tomcat VS 码头
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/302977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tomcat VS Jetty
提问by Loki
I'm wondering about the downsides of each servers in respect to a production environment. Did anyone have big problems with one of the features? Performance, etc. I also quickly 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)?
我想知道每个服务器在生产环境方面的缺点。有人对其中一项功能有大问题吗?性能等。我也赶紧看看新的Glassfish,它是否匹配简单的servlet容器(它似乎至少有一个很好的管理界面)?
采纳答案by Vinko Vrsalovic
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.
我喜欢 Jetty,因为它的维护成本低。它只是打开包装并准备好滚动。Tomcat 的维护有点高,需要更多的配置,而且更重。此外,Jetty 的延续非常酷。
EDIT: In 2013, there are reports that Tomcat has gotten easier. See comments. I haven't verified that.
编辑:在 2013 年,有报道称 Tomcat 变得更容易了。看评论。我没有验证过。
回答by Andrew Swan
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?
我喜欢如何将 Jetty 嵌入到应用程序中,这样它就不需要在 Web 容器中运行(Hudson 和 Nexus 是可以在这种模式下运行的两个应用程序)。Tomcat 能做到吗?
回答by Jimmy Subb
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.
我认为 tomcat 更受应用程序的讨论和支持,Jetty 是可移植的,可以嵌入到应用程序中。和 Jetty 有很好的延续。