性能测试基于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 性 能 测 试 流 程图. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

hostkvm:美国VPS,三网强制CU-VIP线路,$5/月,1G内存/1核/15gSSD/500g流量

hostkvm在2021年3月新上线洛杉矶新VPS业务,强制三网接入中国联通优化线路,是当前中美之间性价比最高、最火热的线路之一,性价比高、速度非常好,接近联通AS9929和电信AS4809的效果,带宽充裕,晚高峰也不爆炸。 官方网站:https://hostkvm.com 全场优惠码:2021(全场通用八折,终身码,长期) 美国 US-Plan0【三网联通优化线路】 内存:1G CPU:...

DiyVM独立服务器:香港沙田服务器,5M带宽CN2线路,L5630*2/16G内存/120G SSD硬盘,499元/月

diyvm怎么样?diyvm商家VPS主机均2GB内存起步,三个地区机房可选,使用优惠码后每月69元起;DiyVM独立服务器开设在香港沙田电信机房,CN2线路,5M带宽,自动化开通上架,最低499元/月,配置是L5630*2/16G内存/120G SSD硬盘。DiyVM是一家成立于2009年的国人主机商,提供的产品包括VPS主机、独立服务器租用等,产品数据中心包括中国香港、日本大阪和美国洛杉矶等,...

Hostwinds:免费更换IP/优惠码美元VPS免费更换IP4.99,7月最新优惠码西雅图直连VPS

hostwinds怎么样?2021年7月最新 hostwinds 优惠码整理,Hostwinds 优惠套餐整理,Hostwinds 西雅图机房直连线路 VPS 推荐,目前最低仅需 $4.99 月付,并且可以免费更换 IP 地址。本文分享整理一下最新的 Hostwinds 优惠套餐,包括托管型 VPS、无托管型 VPS、Linux VPS、Windows VPS 等多种套餐。目前 Hostwinds...

性能测试为你推荐
存储备份存储备份软件哪个好?求推荐网易网盘关闭入口网易网盘 怎么没有了沙滩捡12块石头价值近百万捡块石头价值一亿 奇石到底应该怎么定价酒店回应名媛拼单有谁知道有一个日本短片!是一个男的为了表白!杀了酒店好多人然后把他们房间拼成表白的子!johncusack有喜欢演员JOHN CUSACK的吗?从哪部片子开始喜欢他的?至今为止他主要参与的电影作品有哪些?梦之队官网梦之队是哪个国家的?老虎数码86年属虎的吉祥数字和求财方向bbs.99nets.com怎么打造完美SF百度关键词价格查询百度关键字如何设定竟价价格?原代码源代码是什么意思啊
域名注册中心 如何申请免费域名 linode日本 linode代购 idc测评网 shopex空间 鲜果阅读 毫秒英文 免空 电子邮件服务器 免费个人空间 卡巴斯基试用版 免费邮件服务器 阿里云官方网站 主机管理系统 photobucket 双线空间 cdn网站加速 cdn服务 睿云 更多