Jetty VS Apache Tomcat

Compare Jetty vs Apache Tomcat and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
Jetty Apache Tomcat
15 24
3,742 7,268
0.3% 0.8%
9.9 9.8
about 8 hours ago about 2 hours ago
Java Java
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Jetty

Posts with mentions or reviews of Jetty. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-28.
  • Example Java Application with Embedded Jetty and a htmx Website
    3 projects | dev.to | 28 Mar 2024
    As described on eclipse.dev/jetty: "Jetty provides a web server and servlet container, additionally providing support for HTTP/2, WebSocket, OSGi, JMX, JNDI, JAAS and many other integrations. These components are open source and are freely available for commercial use and distribution."
  • Spring Boot Monitoring with Open-Source Tools
    5 projects | dev.to | 2 Dec 2023
    Manual instrumentation allows you to define your Spans within the code itself rather than relying on automatic instrumentation finding the entry point for a trace. Manual instrumentation is especially helpful for applications that don’t use an application server such as Tomcat, JBoss, or Jetty.
  • Security of Eclipse Jetty dependencies
    3 projects | /r/qztray | 2 Nov 2022
    So, 9.4.48 fixes the first two CVEs, but the last one doesn't mention 9.4 at all, so I'm not sure if that's left out due to EOL status for 9.4.
  • Jetty adds Loom support
    1 project | /r/java | 12 Aug 2022
    Fresh off the press: https://github.com/eclipse/jetty.project/issues/8007
  • Choose the right Java runtime for the job (2020, Quarkus vs Open Liberty vs traditional application server)
    4 projects | /r/java | 7 Aug 2022
    If you're doing something pretty simple and need something really lighweight, however, you could go with something like Javalin or even use Jetty directly (the HTTP server which powers Javalin and many other frameworks by default). It's not that hard to do that and that's what I actually would do myself for almost everything... the fewer moving parts you have in your application, the better chances you have of keeping everything up-to-date and the less chance to mess up (with a caveat: bigger frameworks may give you secure defaults that if you're not experienced enough you may not even know about, so it may be better to not go low level if you're new-ish to running web applications securely).
  • The 12-Factor App Building Methodology
    3 projects | dev.to | 2 Jul 2022
    Example: Little Johnny was developing a Java web app and thinking about how he would configure Tomcat to listen to requests and redirect the data into his app... until he remembered this would violate Factor 7! Instead, he decided to declare Jetty as a dependency, keeping the HTTP service inside the app instead of configuring an external web server and then injecting its functionalities. Now, whenever he wants to instantiate another server for this app, all he has to do is installing dependencies and running the app, isn't it convenient?
  • Jetty WONTFIX on PEM support (2021)
    1 project | news.ycombinator.com | 29 May 2022
  • Looking for maintainer for jvm-brotli
    7 projects | /r/java | 18 Apr 2022
    Hi /r/java! Jetty is considering implementing dynamic Brotli compression, but the current JVM wrapper for Google's Brotli (jvm-brotli) is somewhat ... abandoned.
  • Non Spring users what are you using ??
    7 projects | /r/java | 2 Nov 2021
    Multiple applications in the same JVM? Wildfly, Tomcat, Jetty.
  • Packaging and deploying Spring Boot applications as WAR files
    4 projects | dev.to | 2 Sep 2021
    Download Eclipse Jetty from the project website. Make sure to download the correct version, depending on the Java and Servlet API versions that your application uses. For example, in the case of Vaadin applications, download Eclipse Jetty 9.

Apache Tomcat

Posts with mentions or reviews of Apache Tomcat. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-02.
  • Spring Boot Monitoring with Open-Source Tools
    5 projects | dev.to | 2 Dec 2023
    Manual instrumentation allows you to define your Spans within the code itself rather than relying on automatic instrumentation finding the entry point for a trace. Manual instrumentation is especially helpful for applications that don’t use an application server such as Tomcat, JBoss, or Jetty.
  • Issue with chatgpy
    3 projects | /r/ChatGPTCoding | 23 Mar 2023
    99% is a huge exaggeration. Two essential deployment tools off the top of my head: https://tomcat.apache.org/ https://docs.jboss.org/author/display/AS71/Developer%20Guide.html
  • ThinkMo & Cisco Technical Documentation Introduction and Use of Tomcat
    1 project | /r/u_ThinkMo-Jacky | 18 Mar 2023
    To download, enter the Apache website in the address bar: http://tomcat.apache.org/
  • 7 years with Vaadin in production. Do we still enjoy it?
    2 projects | dev.to | 12 Feb 2023
    Do we still enjoy it? We are running many Vaadin apps in production since that first one. If there are not any specific requirements we use a “modular monolith” concept, which fits our stack best. We pack applications as WAR and deploy them under Apache Tomcat. And yes, we enjoy the development process. It’s very straightforward and Vaadin and SpringBoot fit together well.
  • TIBCO Jaspersoft Studio tutorial: Creating templates and integration with JasperReports Server
    3 projects | dev.to | 10 Nov 2022
    JasperReports Server Community requires a Java application server and a database to create a repository in order to work properly. After downloading JRS, the installation process can install Tomcat server and PostgreSQL database automatically for us and the services will run depending on the Jasper server. It's also possible to connect JRS to services already installed on the server. Moreover, while the free version supports the MySQL server, with the paid version you can also use commercial databases, for example, ORACLE Database, as a data repository.
  • Show HN: Open-source non-blocking NIO Java HTTP Server
    8 projects | news.ycombinator.com | 24 Oct 2022
    Regarding the venerable Tomcat, they [somewhat] recently added support for Unix domain sockets.

    * https://github.com/apache/tomcat/pull/402

    * https://github.com/apache/tomcat/pull/532

    We fronted the server with haproxy LTS. Our initial testing showed roughly and order of magnitude [10x] increase in the number of requests the server could handle.

    It's not completely plug-and-play; we still had a write a custom valve to set the request remote ip address and some other TCPish stuff, but nevertheless the capacity far outstripped our need for the technology.

  • In One Minute : Apache Tomcat
    1 project | dev.to | 20 Oct 2022
    Official Website :- https://tomcat.apache.org/
  • I wish to learn web development with java and while configuring apache tomcat 10.0.26 into Eclipse, I encountered this problem. Can anyone help me? Thank you.
    1 project | /r/eclipse | 5 Oct 2022
    Don't use an installed copy of Tomcat. The layout can be different than expected and permission problems can appear at the worst time. For one, it needs to be able to write to that conf directory. Download a non-platform-specific "core" zip file from tomcat.apache.org instead.
  • Where is polymorphism used in actual Software development?
    1 project | /r/learnprogramming | 18 Sep 2022
    Anytime you use dependencies you make use of code for a purpose that was not originally intended. The apachee web server was named after a patchwork quilt. Many contributors had useful code from commercial projects they contributed to the cause. In networking protocols packets are discarded after a set number of hops, or an expiration date so the internet does not have zombie packets wondering around. The tcp/ip traceroute command uses TTL to find all the collision domains in a request.
  • Has anyone used Java backend with NextJS?
    1 project | /r/nextjs | 17 Sep 2022
    If you plan on a full enterprise solution apache server has built in roles, users and corporate tools. It integrates well with Java. Express is much easier in my opinion. You may use xml instead of json. Other than that the front end and backend don't matter. Since ERP is what you are dealing with maybe that is the way to go?

What are some alternatives?

When comparing Jetty and Apache Tomcat you can also consider the following projects:

nanohttpd - Tiny, easily embeddable HTTP server in Java.

open-liberty - Open Liberty is a highly composable, fast to start, dynamic application server runtime environment

WildFly - WildFly Application Server

Apache TomEE - Apache TomEE

Netty - Netty project - an event-driven asynchronous network application framework

android-http-server - A complete zero-dependency implementation of a web server and a servlet container in Java with a sample Android application.

karaf - Mirror of Apache Karaf