思步网

查看: 46678|回复: 45
打印 上一主题 下一主题

[LR] jboss tomcat weblogic websphere 性能对比测试

  [复制链接]
jboss tomcat weblogic websphere 性能对比测试 (1)
小弟最近为几个项目选择服务器及软件,这几个项目还都不小,投入的资金各不相同但都很可观。本人一向认为性能由硬件决定,软件稳定性比性能更重要。不过,虽然小弟手里面掌控的资金绝对够用,但不能任由所谓的技术专家和销售人员摆布我的决定,所以小弟自行要对服务器硬件、软件进行测试,本文仅仅是一个开端,等以后有时间会给出一些更科学的测试结果。


测试系统环境: PC机, windows xp sp2
CPU:AMD Athlon(tm) 64 Processer 3000+ 1.80GHz
内存:1.00GB
硬盘:7200转
数据库:Mysql 5.0.17
数据库引擎:InnoDB, max connection:2000
测试工具:microsoft web application stress tool 1.1
测试模拟环境:200 users, 20 stress multiper(sockets per thread), 60 seconds

测试代码说明:

因小弟用pc测试,程序和数据库都较为简单,

mysql的表结构:
CREATE TABLE tt (
id text;
);

用来测试的jsp程序:
<%

  String  url="jdbc:mysql://localhost/test?user=root&password=mysql";
  Class.forName("com.mysql.jdbc.Driver").newInstance();
  Connection connection=DriverManager.getConnection(url);
  Statement statement = connection.createStatement();
  String sql="SELECT * FROM tt";
  int dd = statement.executeUpdate("insert into tt values('you are my angel')");
  
  out.println("insert::::" + dd + "<br>");  
  ResultSet rs = statement.executeQuery(sql);
  ResultSetMetaData rmeta = rs.getMetaData();
  int numColumns=rmeta.getColumnCount();
  rs.next();
  
  out.print("result:: " + rs.getString(1)+" ");
  out.print("<br>");

  rs.close();   
  statement.close();   
  connection.close();   
%>   

服务器:weblogic 9.1
测试结果:平均每秒钟响应14.71个请求,总共响应882个请求
内存占用约:335MB
tool reports:

================================================================================
================================================================================
Report name:                  12/30/2005 11:15:36 AM weblogic 250-u 20-thread
Run on:                       12/30/2005 11:15:36 AM
Run length:                   00:01:00

Web Application Stress Tool Version:1.1.293.1

Number of test clients:       1

Number of hits:               882
Requests per Second:          14.71

Socket Statistics
--------------------------------------------------------------------------------
Socket Connects:              902
Total Bytes Sent (in KB):     240.83
Bytes Sent Rate (in KB/s):    4.02
Total Bytes Recv (in KB):     209.48
Bytes Recv Rate (in KB/s):    3.49

Socket Errors
--------------------------------------------------------------------------------
Connect:                      0
Send:                         0
Recv:                         0
Timeouts:                     0

RDS Results
--------------------------------------------------------------------------------
Successful Queries:           0


Script Settings
================================================================================
Server:                       localhost
Number of threads:            20

Test length:                  00:01:00
Warmup:                       00:00:00
Cooldown:                     00:00:00

Use Random Delay:             No

Follow Redirects:             Yes
Max Redirect Depth:           15


Clients used in test
================================================================================
localhost

Clients not used in test
================================================================================
Result Codes
Code      Description                   Count     
================================================================================
200       OK                            882      


Page Summary
Page                            Hits      TTFB Avg  TTLB Avg  Auth      Query     
================================================================================
GET /ttg/dbtest.jsp             882       1320.73   1321.09   No        No        


服务器:JBossAS-4.0.3 SP1
测试结果:平均每秒钟响应22.88个请求,总共响应1374个请求
内存占用约:165MB


tool reports:
================================================================================
================================================================================
Report name:                  12/30/2005 11:10:08 AM jboss 250-u 20-thread
Run on:                       12/30/2005 11:10:08 AM
Run length:                   00:01:00

Web Application Stress Tool Version:1.1.293.1

Number of test clients:       1

Number of hits:               1374
Requests per Second:          22.88

Socket Statistics
--------------------------------------------------------------------------------
Socket Connects:              1394
Total Bytes Sent (in KB):     378.45
Bytes Sent Rate (in KB/s):    6.30
Total Bytes Recv (in KB):     440.74
Bytes Recv Rate (in KB/s):    7.34

Socket Errors
--------------------------------------------------------------------------------
Connect:                      0
Send:                         0
Recv:                         0
Timeouts:                     0

RDS Results
--------------------------------------------------------------------------------
Successful Queries:           0


Script Settings
================================================================================
Server:                       localhost
Number of threads:            20

Test length:                  00:01:00
Warmup:                       00:00:00
Cooldown:                     00:00:00

Use Random Delay:             No

Follow Redirects:             Yes
Max Redirect Depth:           15


Clients used in test
================================================================================
localhost

Clients not used in test
================================================================================
Result Codes
Code      Description                   Count     
================================================================================
200       OK                            1374      


Page Summary
Page                            Hits      TTFB Avg  TTLB Avg  Auth      Query     
================================================================================
GET /dbtest.jsp                 1374      847.70    847.71    No        No        


服务器:apache-tomcat-5.5.12
测试结果:平均每秒钟响应14.94个请求,总共响应897个请求
内存占用约:50MB

tool reports:
================================================================================
================================================================================
Report name:                  12/30/2005 11:12:55 AM tomcat 250-u 20-thread
Run on:                       12/30/2005 11:12:55 AM
Run length:                   00:01:00

Web Application Stress Tool Version:1.1.293.1

Number of test clients:       1

Number of hits:               897
Requests per Second:          14.94

Socket Statistics
--------------------------------------------------------------------------------
Socket Connects:              917
Total Bytes Sent (in KB):     232.34
Bytes Sent Rate (in KB/s):    3.87
Total Bytes Recv (in KB):     197.93
Bytes Recv Rate (in KB/s):    3.30

Socket Errors
--------------------------------------------------------------------------------
Connect:                      0
Send:                         0
Recv:                         0
Timeouts:                     0

RDS Results
--------------------------------------------------------------------------------
Successful Queries:           0


Script Settings
================================================================================
Server:                       localhost
Number of threads:            20

Test length:                  00:01:00
Warmup:                       00:00:00
Cooldown:                     00:00:00

Use Random Delay:             No

Follow Redirects:             Yes
Max Redirect Depth:           15


Clients used in test
================================================================================
localhost

Clients not used in test
================================================================================
Result Codes
Code      Description                   Count     
================================================================================
200       OK                            897      


Page Summary
Page                            Hits      TTFB Avg  TTLB Avg  Auth      Query     
================================================================================
GET /ttg/dbtest.jsp             897       1305.27   1305.28   No        No   

服务器:websphere 6.0
测试结果:平均每秒钟响应23.04个请求,总共响应1384个请求
内存占用约:217MB
tool reports:
================================================================================
================================================================================
Report name:                  12/30/2005 1:50:31 PM websphere 250-u 20-thread
Run on:                       12/30/2005 1:50:31 PM
Run length:                   00:01:00

Web Application Stress Tool Version:1.1.293.1

Number of test clients:       1

Number of hits:               1384
Requests per Second:          23.04

Socket Statistics
--------------------------------------------------------------------------------
Socket Connects:              1403
Total Bytes Sent (in KB):     341.65
Bytes Sent Rate (in KB/s):    5.69
Total Bytes Recv (in KB):     293.80
Bytes Recv Rate (in KB/s):    4.89

Socket Errors
--------------------------------------------------------------------------------
Connect:                      0
Send:                         0
Recv:                         0
Timeouts:                     0

RDS Results
--------------------------------------------------------------------------------
Successful Queries:           0


Script Settings
================================================================================
Server:                       localhost
Number of threads:            20

Test length:                  00:01:00
Warmup:                       00:00:00
Cooldown:                     00:00:00

Use Random Delay:             No

Follow Redirects:             Yes
Max Redirect Depth:           15


Clients used in test
================================================================================
localhost

Clients not used in test
================================================================================


Result Codes
Code      Description                   Count     
================================================================================
200       OK                            1384      


Page Summary
Page                            Hits      TTFB Avg  TTLB Avg  Auth      Query     
================================================================================
GET /ttg/dbtest.jsp             1384      848.31    848.32    No        No     

结论:

呵呵,pc上面说明的问题能有多少呢?一点点吧!


上一篇:性能测试工具篇之loadrunner(部分)
下一篇:XSS SHELL的安装和使用
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖 支持支持 反对反对
回复 论坛版权

使用道具 举报

佩服lz的钻研精神,个人也一直很想做个类似的测试,,不过居然一直没做..
只是这个测试过于简单,对我等参考意义有限.. 期待lz以后何时可以对动态页面为主流的处理的体现好好测试一下, 大loading下的负载均衡仔细考量,,多CPU下的各个service的表现等等更加符合实际的情况..
唉,中文越来越差了,希望lz可以见谅

点评

你可以也做做实验,哈哈,也给大家分享下嘛O(∩_∩)O~  发表于 2011-7-1 08:55
呵呵。。。LZ敢整点更有创意的不?
果断MARK,前十有我必火!
很有借鉴意义,先收藏了,谢谢楼主。
有空一起交流一下。
确实不错,顶先
还不错哦,如果再能多分享一些就perfect了!
看起来不错
有空一起交流一下。
有空一起交流一下。
不错 支持一个了
还不错哦,如果再能多分享一些就perfect了!
非常好,顶一下占位编辑
非常好,顶一下占位编辑
您需要登录后才可以回帖 登录 | 注册

本版积分规则



思步组织思步科技|思步网|火花学堂|思步文库|思步问答|思步英才|天下心
© 2007 思步网 浙ICP备10212573号-4(首次备案号:浙ICP备07035264号)|邮箱:service#step365.com(将#换成@)|服务热线:0571-28827450
在线培训课程|求职招聘|思步文库|官方微信|手机APP|思步问答|微博平台|官方QQ群|交流论坛|软件工程透析|关于我们|申请友链|
点击这里给我发消息     点击这里给我发消息
思步 step365 过程改进 CMMI中文 质量保证 质量管理 流程体系 需求跟踪矩阵 敏捷开发 Scrum 软件度量 项目评审 全员改进 流程管理 人力资源 6sigma 信息安全 ISO27001认证 IT服务管理 ISO20000认证 ISO9000认证 软件测试 SQA 配置管理 IPD 软件工程 PMP认证 PMP试题 PMBOK中文 精益研发 agile 顾问式管理培训
返回顶部