Comparison of Jetty and Tomcat

Source: Internet
Author: User
Tags server memory

Transferred from: http://blog.csdn.net/classicbear/article/details/6968930

Same point:

1. Tomcat and jetty are both servlet engines that support standard servlet specifications and Java EE specifications.

Different points:

1. Architecture Comparison

Jetty's architecture is simpler than Tomcat's

The architecture of Jetty is based on handler, and the main extension functions can be implemented with handler, which is easy to extend.

Tomcat's architecture is container-based, and scaling is an understanding of the overall design structure of Tomcat and is not easy to scale.

2. Performance comparison

Jetty and Tomcat have little difference in performance

Jetty can handle a large number of connections at the same time and can stay connected for long periods, suitable for web chat applications and so on.

Jetty's architecture is simple, so as a server, jetty can load components on demand, reduce unnecessary components, and reduce server memory overhead to improve server performance.

Jetty defaults to NiO end for processing I/O requests with higher performance when dealing with static resources

Tomcat is good at dealing with a handful of very busy links, which means that the overall performance of Tomcat is higher in the short link life cycle.

Tomcat handles I/O requests by default with bio, which performs poorly when dealing with static resources.

3. Other comparisons

Jetty is faster, easier to modify, and better to support the new servlet specification.

Tomcat is now widely used, with more comprehensive support for Java EE and Servlets, and many features are directly integrated.

Related:

How Jetty works and how it compares to Tomcat

Comparison of Jetty and Tomcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.