基于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 性 能 测 试 流 程图. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
野草云服务器怎么样?野草云是一家成立了9年的国人主机商家,隶属于香港 LucidaCloud Limited (HongKong Registration No. 2736053 / 香港網上查冊中心)。目前,野草云主要销售香港、美国的VPS、虚拟主机及独立服务器等产品,本站也给大家分享过多次他家的优惠了,目前商家开启了优惠活动,香港/美国洛杉矶CN2+BGP云服务器,1核1G仅38元/月起!点击...
Pia云这个商家的云服务器在前面也有介绍过几次,从价格上确实比较便宜。我们可以看到最低云服务器低至月付20元,服务器均采用KVM虚拟架构技术,数据中心包括美国洛杉矶、中国香港、俄罗斯和深圳地区,这次春节活动商家的活动力度比较大推出出全场6.66折,如果我们有需要可以体验。初次体验的记得月付方案,如果合适再续约。pia云春节活动优惠券:piayun-2022 Pia云服务商官方网站我们一起看看这次活...
2022年春节假期陆续结束,根据惯例在春节之后各大云服务商会继续开始一年的促销活动。今年二月中旬会开启新春采购季的活动,我们已经看到腾讯云商家在春节期间已经有预告活动。当时已经看到有抢先优惠促销活动,目前我们企业和个人可以领取腾讯云代金券满减活动,以及企业用户可以领取域名优惠低至.COM域名1元。 直达链接 - 腾讯云新春采购活动抢先看活动时间:2022年1月20日至2022年2月15日我们可以在...