spring boot下Servlet容器Tomcat和Undertow性能对比
2018-01-25 15:53
756 查看
测试目的:
Tomcat和Undertow的性能做对比,确定生产环境调优参数
测试工具
压测工具:jmeterjvm监控工具:visualvm
测试过程:
设置jmeter的线程组参数,设置如下:100个线程,每个线程发起100个请求,线程启动间隔是1秒设置请求参数,这里设置的是http,post请求。
测试tomcat下的性能表现
viusalVm监控结果:
jmeter聚合报告:
测试Undertow下的性能表现
jmeter聚合报告:
测试结果
当服务启动后有监控图对比servle af1c t容器 | 使用内存(最大) | 线程数 |
---|---|---|
tomcat | 65M | 122 |
undertow | 47M | 15 |
servlet容器 | 使用内存(最大) | 线程数 |
---|---|---|
tomcat | 148M | 19 |
undertow | 127M | 47 |
使用servlet容器 | samples | Average | Media | 90%Line | 95%Line | 99%Line | Min | Max | Error% | Throughput | KB/Sec |
---|---|---|---|---|---|---|---|---|---|---|---|
tomcat | 10000 | 166 | 122 | 247 | 359 | 1390 | 2 | 3982 | 0.00% | 467.3/sec | 115.1 |
undertow | 10000 | 151 | 113 | 270 | 375 | 788 | 3 | 2324 | 0.00% | 545.4/sec | 132.6 |
在相同资源使用量的情况下undertow有较好的吞吐量和较低的访问时延,所以生产环境
以上只是粗略的测试,也不够专业,敬请谅解,但大致能对比出结果。如果大家有更好的测试方法,欢迎交流,可邮件联系。
原文地址
相关文章推荐
- 170322、Spring Boot 性能优化之将Servlet容器变成Undertow
- spring boot下比较tomcat与undertow性能
- springboot框架servlet容器tomcat、Jetty、undertow压测报告
- Spring Boot 容器选择 Undertow 而不是 Tomcat
- 使用Gradle构建SpringBoot工程系列:第六篇:SpringBoot 替换Tomcat为Jetty或UnderTow
- 常规容器下SpringBootServletInitializer如何实现web.xml作用解析
- Spring Boot 内置与外置Servlet容器讲解(六)
- SpringBoot之在Servlet2.5容器中部署war应用
- Spring Boot 和 Wildfly Swarm 的性能基本对比测试
- springboot内嵌容器的tomcat和jetty的切换原理
- spring boot项目发布tomcat容器(包含发布到tomcat6的方法)
- Spring-boot非Mock测试MVC,调试启动tomcat容器
- spring boot项目发布tomcat容器和maven的私有仓库引用
- 把spring-boot项目部署到tomcat容器中
- Spring Boot同步架构与Vert.x异步架构高并发性能对比
- Tomcat vs. Jetty vs. Undertow: Comparison of Spring Boot Embedded Servlet Containers
- spring boot实战(第七篇)内嵌容器tomcat配置
- 把Spring Boot项目部署到Tomcat容器中
- [置顶] 使用IDEA基于springboot开发ssm框架(undertow代替tomcat以及其他功能)
- springboot项目打成war包使用Tomcat或者其他容器启用