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

Web Service HTTP1.0 and HTTP1.1性能测试报告

阅读更多

第1章 测试需求分析

1.1 测试目的

web service 分别采用HTTP1.1HTTP1.0作为传输协议的性能差异。

1.2 测试准备

1. 操作域模拟器一套。

2. HTTP1.1HTTP1.0测试脚本各一套。

第2章 测试场景设计

2.1 Web Service采用HTTP 1.0测试

2.1.1 测试目的

监控使用HTTP1.0作为传输协议时, 操作域模拟器的TPS 响应时间。

2.1.2 测试步骤

LOADRUNNER并发用户数设定为20

2.1.3 测试结果输出

性能参数

最小值

平均值

最大值

TPS

107.538

285.307

311.563

响应时间 (s)

0.027

0.067

0.078



  

2.1Web Service Http 1.0

红色:响应时间

蓝色:TPS

2.2 Web Service 采用 HTTP 1.1测试

2.2.1 测试目的

监控在使用HTTP1.1作为传输协议后,操作域模拟器的响应时间,TPS

2.2.2 测试步骤

LOADRUNNER并发用户数设定为20

2.2.3 测试结果输出

性能参数

最小值

平均值

最大值

TPS

95.25

404.722

451.875

响应时间 (s)

0.009

0.040

0.045



  

2.2Web Service Http 1.1

红色:响应时间

蓝色:TPS

 

2.3 Web Service 采用 HTTP 1.1/HTTP 1.0混合测试

2.3.1 测试目的

监控在使用HTTP1.1作为传输协议后,操作域模拟器的响应时间,TPS

2.3.2 测试步骤

LOADRUNNER并发用户数设定为20

2.3.3 测试结果输出

性能参数

最小值

平均值

最大值

TPS

77.00

330.324

365.563

响应时间 (s)

0.010

0.045

0.055



  

2.3Web Service Http 1.1/Http 1.0混合测试

红色:响应时间

蓝色:TPS

 

第3章 测试总结

Web Service 客户端如果采用HTTP1.1长连接作为连接方式,能明显减少创建SOCKET连接所需要的时间,显著提交了TPS和响应时间。

第4章 附录

4.1 AXIS客户端如何设置使用HTTP1.1

AXIS引擎通过使用CommonHTTPSender代替默认的HTTPSenderServiceLocator必须只实例化一次. 然后在所有stub中共用. 之所以如此是因为ServiceLocator管理着http connection的连接池, 它通过CommonsHTTPSender的引用管理着MultiThreadedHttpConnectionManager,实例程序代码片段请参照:

static {

private static SyncRoamingUser_ServiceLocator serviceLocator;

 

   EngineConfiguration defaultConfig = EngineConfigurationFactoryFinder

                     .newFactory().getClientEngineConfig();

 

    SimpleProvider config = new SimpleProvider(defaultConfig);

 

config.deployTransport(HTTPTransport.DEFAULT_TRANSPORT_NAME,

                            new CommonsHTTPSender());

 

serviceLocator = new SyncRoamingUser_ServiceLocator(config);//Only once.

} 

 

4.2 AXIS客户端如何配置HTTP连接池参数

AXIS引擎通过设置AxisProperties的属性,来定义HTTP连接池的参数。HTTP连接池可配置参数见如下程序代码和注释:

// "Total Connections" Pool size

AxisProperties.setProperty(

    DefaultCommonsHTTPClientProperties.MAXIMUM_TOTAL_CONNECTIONS_PROPERTY_KEY,

    maxTotalConnections);

 

// "Connections per host" pool size

AxisProperties.setProperty(

    DefaultCommonsHTTPClientProperties.MAXIMUM_CONNECTIONS_PER_HOST_PROPERTY_KEY,

    maxConnectionsPerHost);

 

// max duration to wait for a connection from the pool

AxisProperties.setProperty(

    DefaultCommonsHTTPClientProperties.CONNECTION_POOL_TIMEOUT_KEY, connectionPoolTimeout);

 

// Timeout to establish connection in millis

AxisProperties.setProperty(

    DefaultCommonsHTTPClientProperties.CONNECTION_DEFAULT_CONNECTION_TIMEOUT_KEY, connectionTimeout);

 

// Timeout "waiting for data" (read timeout)

AxisProperties.setProperty(

    DefaultCommonsHTTPClientProperties.CONNECTION_DEFAULT_SO_TIMEOUT_KEY, soTimeout);

 

  • 大小: 25.1 KB
  • 大小: 23.9 KB
  • 大小: 25.3 KB
分享到:
评论

相关推荐

    Web Service通用客户端和测试工具wsCaller1.1

    wsCaller 1.1 2008 Li Huai Jun Blog: http://blog.csdn.net/lihuaijun ...2. wsCaller1.1.jar是用java5.0编译的,未在java1.4平台测试 3. 编译源码需要axis1.4包,可以在http://ws.apache.org/axis/下载

    Building RESTful Web Services with Java EE 8

    Next up, you will learn about the specifics of data binding and content marshalling using the JSON-B 1.0 and JSON-P 1.1 APIs. This book also guides you in leveraging the power of asynchronous APIs on...

    Java_EE_6规范中文版

    6.28 Managed Beans 1.0 标准 6.29 Interceptors 1.1 标准 6.30 Contexts Dependency 6.31 Dependency Injection 第7章 互用性 7.1 互用性介绍 7.2 互用性协议 第8章 应用程序组装者和部署 8.1 应用...

    Professional XMPP Programming with JavaScript and jQuery.pdf

    tocol, just as HTTP 1.0 clients can easily communicate with HTTP 1.1 servers. XMPP has many extensions and several of these are also covered. For the most part, the book con- centrates on extensions ...

    extman-1.0

    ExtMan - Web interface to manage Virtual Accounts ================================================= It was written in pure perl, support account store in mysql/ldap, can easily customize accroding ...

    JBoss Application Server

    The J2EE platform manages the infrastructure and supports the Web services to enable development of secure, robust and interoperable business applications.” J2EE 1.3 Technologies Enterprise ...

    Professional c# 2008 pdf

    Using C# you can, for example, write a dynamic Web page, an XML Web service, a component of a distributed application, a database access component, a classic Windows desktop application, or even a ...

    Bulletproof SSL and TLS,PDF , Ivan Ristic

    Rollback Protection in TLS 1.0 and Better 171 Attacking Voluntary Protocol Downgrade 172 Modern Rollback Defenses 172 vi Truncation Attacks 173 Truncation Attack History 175 Cookie Cutting 175 ...

    Wap接口程序provision

    中国移动MISC 1.6 Provision Java API 直接使用HttpServer的方式实现,不需要任何其它API,不需要Apache,IIS,Tomcat等Web服务器,直接实现底层. 运行环境 Windows/Linux JDK 1.4.2 ...1.0 完成全网移动测试

    ISAG,WAP接入最新文档

    1.2 ISAG与WEB SERVICE技术 6 1.3开发环境搭建 7 1.3.1 安装JDK 7 1.3.2下载安装ECLIPSE 7 1.3.3 安装WTP模块 8 1.3.4 安装Tomcat 9 1.3.5 ISAG接口相关通用参数及说明 10 2. SMS 13 2.1短信接口开发环境搭建 13 2.2...

    新诚软(原天星海沙)数据转换器 V1.0

    扁平文件 / XML文件 / Excel电子表格 / Web Service。实现不同数据源的统一界面操作,包括浏览、 编辑、排序、统计、查询、过滤、转换、数据字典、SQL向导、命令窗口、事务缓存处理等强大功能。 所有数据源均通过ADO...

    计算机网络第六版答案

    These well-established and time-honored rules have made it easier for nations and people to live and work together. Part of protocol has always been the acknowledgment of the hierarchical standing of...

    外文翻译 stus MVC

    Struts is an MVC implementation that uses Servlets 2.2 and JSP 1.1 tags, from the J2EE specifications, as part of the implementation. You may never implement a system with Struts, but looking at ...

    IBM3650M4驱动

    Other company, product, and service names may be trademarks or service marks of others. 7.0 Disclaimer ______________ THIS DOCUMENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. IBM ...

    asp.net知识库

    在Framework1.0下同时连接SqlServer和Oracle的一些体会 XML XPath XPath最通俗的教程(ZZ) XPath中相对路径和绝对路径 XPath 简单语法 Asp.Net(C#)利用XPath解析XML文档示例 XSL .Net框架下的XSLT转换技术简介 一个...

    ZendFramework中文文档

    7.13.1. 从 1.0.x 到 1.5.0 或更新的版本的移植 7.13.2. 从 0.9.3 到 1.0.0RC1 或更新的版本的移植 7.13.3. 从 0.9.2 移植到 0.9.3 或更新的版本 7.13.4. 从 0.6.0 移植到 0.8.0 或更新的版本 7.13.5. 从 0.2.0 ...

    cc2541编程手册

    References Included with Texas Instruments ...[8] Device Information Service (Bluetooth Specification), version 1.0 (24-May-2011) https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=238689

    08内存及存储管理(下)

    http://apache.justdn.org/ws/axis2/tools/1_0/Axis2_Service_Archiver.zip Eclipse+MyEclipse:可以到官方网站下载(本文为3.2+5.0GA) 本文来自CSDN博客,转载请标明出处:...

    java-servlet-api.doc

    一个客户端程序,可以是一个Web浏览器,或者是非其他的可以连接上Internet的程序,它会访问Web服务器并发出请求。这个请求被运行在Web服务器上的Servlet引擎处理,并返回响应到Servlet。Servlet通过HTTP将这个响应...

    用于Windows Vista的兼容性更新V2

    • BitLord 1.1.5.6 • Bitvise Tunnelier 4.20 • Calyx Point 5.3 • Crystal Player Professional 1.97 • CyberLink PowerCinema 4.0 • Delphi 7 Professional • Deterministic Network Extender (DNE) ...

Global site tag (gtag.js) - Google Analytics