`
x_root
  • 浏览: 128098 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

[转]Resin vs. Tomcat simple performance comparison

    博客分类:
  • Java
阅读更多
I did a simple benchmark comparing Resin 3.1.4 to Tomcat 6.0.14 and the results are a bit astounding. Beyond the fact that Tomcat crashed and burned, Resin Open Source is about 45% faster than Tomcat, Resin Professional is about 80% faster than Tomcat. I made an 8k jsp that just contains static text. Each server was run with it’s default configuration, in console mode. I gave each server a warmup of 20 requests, and then did three runs of 20000 requests:

$ ab -c 4 -n 20 http://localhost:8080/bench/8k.jsp

$ ab -c 4 -n 20000 http://localhost:8080/bench/8k.jsp
$ ab -c 4 -n 20000 http://localhost:8080/bench/8k.jsp
$ ab -c 4 -n 20000 http://localhost:8080/bench/8k.jsp

Resin OS 3.1.4:
Run 1 requests per second: 1525.99
Run 2 requests per second: 1233.56
Run 3 requests per second: 1620.21

Resin Professional 3.1.4:
Run 1 requests per second: 1903.19
Run 2 requests per second: 1887.76
Run 3 requests per second: 1657.05

Tomcat 6.0.14:
Run 1 requests per second: 1040.53
Run 2 requests per second: N/A (tomcat crash)
Run 3 requests per second: N/A (tomcat crash)
Tomcat died after 16000 requests of the second run with a java.lang.OutOfMemoryError: Java heap space.

Reproducing
This is fairly easy to try on your own machine, install is simple:

download/unpack Resin from http://www.caucho.com/download
copy an 8k txt file to webapps/bench/8k.jsp
$ bin/httpd.sh
in another terminal window, run ab
$ ab -c 4 -n 20 http://localhost:8080/bench/8k.jsp
$ ab -c 4 -n 20000 http://localhost:8080/bench/8k.jsp
$ ab -c 4 -n 20000 http://localhost:8080/bench/8k.jsp
download/unpack Tomcat
copy an 8k txt file to webapps/bench/8k.jsp
$ bin/catalina.sh run
in another terminal window, run ab
$ ab -c 4 -n 20 http://localhost:8080/bench/8k.jsp
$ ab -c 4 -n 20000 http://localhost:8080/bench/8k.jsp
$ ab -c 4 -n 20000 http://localhost:8080/bench/8k.jsp
This entry was posted on Friday, May 16th, 2008 at 2:01 pm and is filed under Benchmarks. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

以下是一个回复:
One Response to “Resin vs. Tomcat simple performance comparison”
teodorbaciu Says:
May 23rd, 2008 at 1:55 pm
Hi,

I also did a performance comparison between Tomcat and Resin and Tomcat died because of OutOfMemory errors. I tested tomcat with different JDKs and here are the results:

Tomcat 5.5 + Sun JDK 1.6 update 4 — served 25613 requests
Tomcat 5.5 + Bea Jrockit 6 update 3 — served 519635 requests
Resin 3.0 + Bea Jrockit 6 update 3 — more 800000 and was still going strong !!! Memory consumption was stable at 94 MB.

You guys really need to start promoting your product because the Java community needs to know those performance facts.

来自:http://blog.caucho.com/?p=31
分享到:
评论

相关推荐

    ArangoDB vs. JanusGraph vs. Neo4j vs. OrientDB vs. TigerGraph Comparison.pdf

    ArangoDB vs. JanusGraph vs. Neo4j vs. OrientDB vs. TigerGraph System Properties Comparison ArangoDB vs. JanusGraph vs. Neo4j vs. OrientDB vs. TigerGraph

    Java vs. Symbian: A Comparison of Software-based DSR

    ### Java与Symbian在软件基础分布式语音识别(DSR)中的对比 #### 摘要 随着现代移动电话处理能力的显著提升,分布式语音识别技术(Distributed Speech Recognition, DSR)的应用变得越来越合理。...

    Technical Comparison Observer vs.ppt

    Technical Comparison Observer vs.ppt

    ArangoDB vs. OrientDB Comparison.pdf

    根据提供的文档内容,下面是关于ArangoDB与OrientDB的对比分析的知识点: 首先,文档提到了DB-Engines的排名系统,该系统根据多个因素(包括搜索引擎评分、在DB-Engines排名趋势图表上的位置、整体排名、特定数据...

    GA.zip_genetic comparison_算法比较

    标题中的"GA.zip_genetic comparison_算法比较"表明这是一个关于遗传算法(Genetic Algorithm, GA)的代码集合,主要用于算法的对比和分析。遗传算法是一种模拟自然界进化过程的优化技术,广泛应用于解决复杂问题,...

    A performance comparison of recent network simulators

    ### 网络模拟器性能比较研究 #### 引言 网络模拟作为一种广泛采用的方法论,在通信系统工程领域中占据着举足轻重的地位。它主要用于新型通信架构及网络协议的发展与评估。通过网络模拟器,研究者可以构建任意...

    Performance comparison among popular implementations of H.264

    这篇论文《Performance comparison among popular implementations of H.264 encoders》由H Y El-Arsh等人撰写,发表在《IOP Conference Series: Materials Science and Engineering》上,主要进行了H.264编码器不同...

    Performance Comparison_geneticalgorithm_

    在本资料“Performance Comparison”中,我们将深入探讨遗传算法在不同场景下的性能表现,以及与其他优化方法的对比。 遗传算法的核心思想源于生物进化理论,主要包括三个基本操作:选择(Selection)、交叉...

    Security Comparison: BluetoothTM Communications vs. 802.11

    ### 安全性对比:蓝牙通信与802.11标准 #### 一、引言 随着无线技术的发展和普及,人们对数据安全性的关注度日益提高。本文将对蓝牙(Bluetooth)与802.11标准(主要指802.11b)在安全性方面的差异进行详细探讨。...

    Algorithm-sorting-algorithms-performance-comparison.zip

    Algorithm-sorting-algorithms-performance-comparison.zip,一组排序算法的性能比较它计算每个算法用于排序列表的时间:已排序的数字和未排序的数字,算法是为计算机程序高效、彻底地完成任务而创建的一组详细的准则...

    Performance Comparison of VVC, AV1, HEVC, and AVC

    本文将深入探讨《Performance Comparison of VVC, AV1, HEVC, and AVC for High Resolutions》这篇论文中的关键知识点。 #### 论文概述 该论文由Miroslav Uhrina、Lukas Sevcik、Juraj Bienik和Lenka Smatanova撰写...

    Performance Comparison of H.264 and H.265 Encoders for 4K Video

    这篇文件是一篇关于H.264和H.265编码器在4K视频序列性能比较的学术论文。以下是其核心内容的概述: 背景介绍:随着电视行业对超高清需求的增长,4K超高清技术成为焦点。H.264和HEVC(H.265)是编码4K超高清信号最...

    Performance comparison of two on-demand routing protocols for ad hoc networks.pdf

    ### 两需求驱动路由协议在自组网络中的性能对比研究 #### 一、自组网络(Ad Hoc Networks)概述 自组网络是一种特殊的无线网络形式,它由多个移动节点组成,这些节点通过多跳无线连接进行通信。...

    A Performance Comparison of Windows Communication Foundation

    【Windows Communication Foundation (WCF) 性能比较】 Windows Communication Foundation (WCF) 是.NET Framework 3.0中的一部分,是一种分布式通信技术。本篇文章旨在对WCF与.NET框架下其他现有的分布式通信技术...

    NoSQL Performance Test In - Memory Performance Comparison of SequoiaDB, Cassandra, and MongoDB

    近期, 知名独立基准测评机构bankmark,针对SequoiaDB、MongoDB以及Cassandra三款NoSQL数据库产品做了性能对比测试。在所有的测试中,三款产品的表现各有千秋。 报道详情:http://code.csdn.net/news/2823026

    fandango_score_comparison.csv

    fandango_score_comparison.csv 。python 机器学习,电影评分表。

    php_6_fast_and_easy_web_development.pdf

    Appendix CWriting Your Own Functions. . . . . . . . . ....The Structure of Functions....Returning Values from Functions....Using Functions in Your Code....Using include() and require()....Appendix DWriting Your Own ...

Global site tag (gtag.js) - Google Analytics