性能测试基于JMeter的MSWeb应用系统的性能测试研究

性能测试  时间:2021-03-12  阅读:()

基于JMeter的MSWeb应用系统的性能测试研究南京航空航天大学

硕士学位论文

基于JMeter的MSWeb应用系统的性能测试研究

姓名江新

申请学位级别硕士

专业计算机科学与技术

指导教师江国华

2011-03

南京航空航天大学硕士学位论文

摘 要

性能是衡量一个Web 应用程序好坏的重要方面它直接反映Web提供服务的质量水平。

如何保证一个Web应用程序投入使用之前的安全性、可靠性以及执行效率越来越成为人们关注

的重点。 由于Web应用自身的特点和特殊性使得对其进行性能测试时必须依靠工具进行。

本文对Web应用性能测试的原理、分类以及常用的性能测试工具和方法进行了较为深入的

研究和分析。在此基础上针对企业内部信息安全监控系统―MS系统一种Web应用系统

进行了性能测试。在测试过程中提出了将OMT模型引入MS系统的性能测试中对MS系

统进行建模的策略以优化测试流程、方便测试用例的提取。实践表明 OMT模型的引入提

高了测试效率。

本文从Web性能测试的成本预算、工具支持等角度给出了使用开源性能测试工具JMeter

对MS系统进行性能测试的具体策略、步骤和方法。在实际使用JMeter过程中对JMeter的工

作原理、脚本编写方法及测试脚本执行的流程进行了深入的研究。工作的主要内容和成果如下

通过单机模式下针对MS系统中处理用户主要业务请求的各CGI子模块的性能测试

给出了JMeter 在各个业务模块性能测试过程中能够承受的最大并发用户数为后续利用

JMeter对Server进行分布式并发测试中模拟用户业务请求的JMeter Agent的配置提供了

重要的数据参考和方法借鉴。

在针对管理员级操作Server页面的性能测试过程中解决了JMeter不能录制https请

求过程的问题设计了一个代码转换器实现了从Badboy录制的脚本到JMeter测试所需

脚本之间的自动化转换提高了测试效率。

通过对性能测试结果的分析和研究探索了MS系统的性能瓶颈提出了改进系统性

能的方法。

关键词 Web性能测试 JMeter  OMT模型测试用例测试脚本 Badboy

I

基于JMeter的MS Web应用系统的性能测试研究

Abstract

Performance is an important aspect of measuringWeb application,it directly reflects the qualitylevel of Web services. How to ensure a Webapplication’ s safety, reliability and efficiency of theimplementation before putting it into use, has increasingly becomethe focus of people’ s attention. As

Web application’ s own characteristics and specificity, make itsperformance testing must rely on testtools.

This paper in-depth studied and analyzed theprinciples, categories, common test tools andmethods of Web application’ s performance testing. Onthis basis, for the Enterprise Information

Security Monitoring System―MS system a Webapplication system , it carried out performancetesting.During the test, it proposed introducing OMT model to MSsystem’ s performance testing, tomodel the system, so as to optimize the testing process, facilitatethe extraction of test cases.Practiceshows that the introduction of OMT model improves the efficiency ofthe test.

From the perspective of cost estimates, tools’ support,etc,it gave the specific policies, proceduresand methods of MS system’ s performance testing by using the opensource performance testing tool

JMeter. In the actual course of using JMeter, itin-depth researched on JMeter’ s working principle,compilation of the script and test script’ s execution process. Main

content and achievements of thework are as follows:

Through performance testing of CGI sub-model, which isresponsible for processing user’ smain business requests of MS system under stand-alone mode, itgave the imum number ofconcurrent users JMeter can withstand in various businessmodules’ performance testing process.

During the subsequent MS Server’ s distributed concurrentperformance tesing, the above resultsprovide important data reference and method reference ofconfiguring JMeter Agents, which areused to simulate user’ s business requests.

During the performance testing of Administrator-level

operating Server’ s page, it solved theproblem of JMeter can not record https requests, and designeda code conventor, which realizedautomatic conversion between script recorded by Badboy andscript JMeter needed, it improvesthe efficiency of the test.

Through analyzing and researching on theperformance testing results, it explored MSsystem’ s bottleneck, proposed ways of improving system’ sperformance.

Keywords: Web performance testing, JMeter, OMT model, testcase, test script, Badboy

II

南京航空航天大学硕士

学位论文

图表清单

图 2. 1 软 件 开 发 - 测 试 W 模型. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5

图 2.2 一 般 的 Web 应 用 体 系 结构. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6

图 2.3 Web 应 用 测 试 包 含 的 内容. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

图 2.4 Web 性 能 测 试 原 理图. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8

图 2.5 Web 性 能 测 试 流 程图. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

HostYun(月18元),CN2直连香港大带宽VPS 50M带宽起

对于如今的云服务商的竞争着实很激烈,我们可以看到国内国外服务商的各种内卷,使得我们很多个人服务商压力还是比较大的。我们看到这几年的服务商变动还是比较大的,很多新服务商坚持不超过三个月,有的是多个品牌同步进行然后分别的跑路赚一波走人。对于我们用户来说,便宜的服务商固然可以试试,但是如果是不确定的,建议月付或者主力业务尽量的还是注意备份。HostYun 最近几个月还是比较活跃的,在前面也有多次介绍到商...

妮妮云,美国cera CN2线路,VPS享3折优惠

近期联通CUVIP的线路(AS4837线路)非常火热,妮妮云也推出了这类线路的套餐以及优惠,目前到国内优质线路排行大致如下:电信CN2 GIA>联通AS9929>联通AS4837>电信CN2 GT>普通线路,AS4837线路比起前两的优势就是带宽比较大,相对便宜一些,所以大家才能看到这个线路的带宽都非常高。妮妮云互联目前云服务器开放抽奖活动,每天开通前10台享3折优惠,另外...

Vultr新用户省钱福利,最新可用优惠码/优惠券更新

如今我们无论线上还是线下选择商品的时候是不是习惯问问是不是有优惠活动,如果有的话会加速购买欲望。同样的,如果我们有准备选择Vultr商家云服务器的时候,也会问问是不是有Vultr优惠码或者优惠券这类。确实,目前Vultr商家有一些时候会有针对新注册用户赠送一定的优惠券活动。那就定期抽点时间在这篇文章中专门整理最新可用Vultr优惠码和商家促销活动。不过需要令我们老用户失望的,至少近五年我们看到Vu...

性能测试为你推荐
今日油条油条是怎样由来5xoy.com求个如月群真汉化版下载地址www.zjs.com.cn怎么查询我的平安信用卡寄送情况广告法中国的广告法有哪些。5566.com请问如何创建网页(就是www.5566.com.cn这种格式的)ww.43994399??????????酒仙琐事如何才能成为酒仙www.mm.com来个网站~?~两朝太岁值太岁加刑太岁是什么意思?欢颜网欢颜网怎样?
com域名价格 免费动态域名解析 132邮箱 美国翻墙 win8.1企业版升级win10 web服务器架设软件 个人空间申请 全站静态化 我爱水煮鱼 100m空间 域名和空间 phpmyadmin配置 美国网站服务器 鲁诺 卡巴斯基破解版 跟踪路由命令 西安服务器托管 个人免费邮箱 lamp怎么读 lamp架构 更多