×

tomcat

SpringBoot服务器压测对比(jetty、tomcat、undertow)

Mc Mc 发表于2024-06-26 浏览5137 评论0
1. 概述 在 Spring Boot 中,内置了三种 Servlet 容器:Tomcat、Jetty、Undertow ,也就是本文的三位主角。实际生产中,绝大多数情况,使用的都是 Tomcat ,可能很多人,初始学习的都是 Tomcat ,比较偶尔听到 Jetty ,非常小众知道有 Undertow 这个容器。那么,抛出他们的具体实现不说,我们来一起测试一下,它们的性能差别有多少。 2. 性能指标 为了保持一致,我们还是以 QPS 作为性能的指标,下面提供四