CN106354619A - 一种测试数据库并发性能的系统 - Google Patents

一种测试数据库并发性能的系统 Download PDF

Info

Publication number
CN106354619A
CN106354619A CN201610777766.XA CN201610777766A CN106354619A CN 106354619 A CN106354619 A CN 106354619A CN 201610777766 A CN201610777766 A CN 201610777766A CN 106354619 A CN106354619 A CN 106354619A
Authority
CN
China
Prior art keywords
database
execution
instrument
test
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610777766.XA
Other languages
English (en)
Inventor
崔维力
武新
张灵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TIANJIN NANKAI UNIVERSITY GENERAL DATA TECHNOLOGIES Co Ltd
Original Assignee
TIANJIN NANKAI UNIVERSITY GENERAL DATA TECHNOLOGIES Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TIANJIN NANKAI UNIVERSITY GENERAL DATA TECHNOLOGIES Co Ltd filed Critical TIANJIN NANKAI UNIVERSITY GENERAL DATA TECHNOLOGIES Co Ltd
Priority to CN201610777766.XA priority Critical patent/CN106354619A/zh
Publication of CN106354619A publication Critical patent/CN106354619A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Abstract

本发明提供一种测试数据库并发性能的系统,包括测试执行工具、资源采集工具、测试结果分析工具和数据库。一种测试数据库并发性能的系统,可以全面的测试数据库对于某个用例的各种资源的使用是否合理,为用户和数据库测试人员积累重要的性能数据,可以方便的分析出数据库的某项资源使用是否充分,是否存在性能瓶颈,能实现更准确、更高效地完成数据库性能测试的功能。

Description

一种测试数据库并发性能的系统
技术领域
本发明涉及数据库领域,尤其涉及一种测试数据库并发性能的系统。
背景技术
数据库部署时或新的业务上线前,测试人员和用户需要进行并发性能测试。传统测试方法:从业务获取SQL,制作成若干用例。对于每个用例,每隔一定的时间间隔启动一个,时间间隔由用户随意指定,只能测试出这个用例并发时的最高压力或瓶颈,无法测试出这个用例对数据库各项资源使用是否合理。
发明内容
本发明要解决以上技术问题,提供一种测试数据库并发性能的系统。
为解决上述技术问题,本发明采用的技术方案是:一种测试数据库并发性能的系统,包括测试执行工具、资源采集工具、测试结果分析工具和数据库,
所述测试执行工具用来执行串行和并行执行用例,并记录所述用例的每个并发的开始时间和结束时间;
所述资源采集工具用来按照预先设定的采集时间间隔采集所述数据库在执行所述用例时的资源消耗情况并记录;
所述测试结果分析工具用来分析所述资源消耗情况,并模拟按照不同的时间间隔并发执行所述用例的资源消耗,选择最优执行间隔作为并行执行间隔反馈给所述测试执行工具;
所述数据库为被测试对象;
所述最优时间间隔为所述采集时间间隔的整数倍。
本发明具有的优点和积极效果是:一种测试数据库并发性能的系统,可以全面的测试数据库对于某个用例的各种资源的使用是否合理,为用户和数据库测试人员积累重要的性能数据,可以方便的分析出数据库的某项资源使用是否充分,是否存在性能瓶颈,能实现更准确、更高效地完成数据库性能测试的功能。
附图说明
图1是一种测试数据库并发性能的系统的系统框架图;
图2是最优时间间隔的计算流程图。
具体实施方式
下面结合附图对本发明的具体实施例做详细说明。
如图1-2所示,一种测试数据库并发性能的系统,包括测试执行工具、资源采集工具、测试结果分析工具和数据库,
所述测试执行工具用来执行串行和并行执行用例,并记录所述用例的每个并发的开始时间和结束时间;
所述资源采集工具用来按照预先设定的采集时间间隔采集所述数据库在执行所述用例时的资源消耗情况并记录;
所述测试结果分析工具用来分析所述资源消耗情况,并模拟按照不同的时间间隔并发执行所述用例的资源消耗,选择最优执行间隔作为并行执行间隔反馈给所述测试执行工具;
所述数据库为被测试对象;
所述最优时间间隔为所述采集时间间隔的整数倍。
一种测试数据库并发性能的系统具体包括以下步骤:
1)在测试机上部署测试执行工具,测试结果分析工具;在服务器上部署资源采集工具和数据库。
2)如图1所示,测试执行工具单独执行一个用例,通过测试结果分析工具获得并发执行间隔和预期的某项资源占用率。
3)如图1所示,测试结果分析工具分析单独执行这个用例的某一项资源占用,按照不同的并发执行间隔模拟出并发执行的资源占用,按照图2所示的流程,计算出最优执行间隔。计算方法可以是但不限于资源使用的方差最小。
4)如图1所示。测试执行工具按照最优执行间隔并发执行这个用例。执行完成后从资源采集工具获得执行时的资源,绘制出预期资源使用率和实际资源使用率的对比图。
5)通过对比图,可以方便的分析出数据库的某项资源使用是否充分,是否存在性能瓶颈。例如使用率高于预期,说明数据库在资源控制方面存在不足;低于预期,说明数据库充分对资源使用进行了合理的调度。
6)通过对多种资源重复上述过程,可以全面的测试数据库对于某个用例的各种资源的使用是否合理,为用户和数据库测试人员积累重要的性能数据。
最优时间间隔是采集间隔的整数倍。主要原理如图2所示,获取非并发执行用例时的资源使用记录列表R,预期是并发执行的每个用例的资源和非并发用例的资源曲线相同,这样,我们只需按照并发的时间间隔将两条曲线叠加,就可以得到不同间隔并发下的预期的并发曲线。取间隔1到n/2(n为非并发的总采集次数),步长为1来进行n/2次叠加,计算出n/2个曲线的特征值(例如方差),选取最优的值对应的步长*时间间隔作为最优时间间隔。。
以上对本发明的实施例进行了详细说明,但所述内容仅为本发明的较佳实施例,不能被认为用于限定本发明的实施范围。凡依本发明范围所作的均等变化与改进等,均应仍归属于本专利涵盖范围之内。

Claims (1)

1.一种测试数据库并发性能的系统,其特征在于:包括测试执行工具、资源采集工具、测试结果分析工具和数据库,
所述测试执行工具用来执行串行和并行执行用例,并记录所述用例的每个并发的开始时间和结束时间;
所述资源采集工具用来按照预先设定的采集时间间隔采集所述数据库在执行所述用例时的资源消耗情况并记录;
所述测试结果分析工具用来分析所述资源消耗情况,并模拟按照不同的时间间隔并发执行所述用例的资源消耗,选择最优执行间隔作为并行执行间隔反馈给所述测试执行工具;
所述数据库为被测试对象;
所述最优时间间隔为所述采集时间间隔的整数倍。
CN201610777766.XA 2016-08-31 2016-08-31 一种测试数据库并发性能的系统 Pending CN106354619A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610777766.XA CN106354619A (zh) 2016-08-31 2016-08-31 一种测试数据库并发性能的系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610777766.XA CN106354619A (zh) 2016-08-31 2016-08-31 一种测试数据库并发性能的系统

Publications (1)

Publication Number Publication Date
CN106354619A true CN106354619A (zh) 2017-01-25

Family

ID=57856607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610777766.XA Pending CN106354619A (zh) 2016-08-31 2016-08-31 一种测试数据库并发性能的系统

Country Status (1)

Country Link
CN (1) CN106354619A (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070282567A1 (en) * 2006-05-31 2007-12-06 Dawson Christopher J Systems and Methods for Predicting Load Test Resource Requirements
CN101789002A (zh) * 2010-01-22 2010-07-28 浪潮(北京)电子信息产业有限公司 一种服务器上数据库兼容性的测试的装置及方法
CN105224458A (zh) * 2015-10-09 2016-01-06 上海瀚银信息技术有限公司 一种数据库测试方法及系统
CN105446860A (zh) * 2015-11-11 2016-03-30 上海欣方智能系统有限公司 基于异步并发机制的压力测试系统和测试方法
CN105848176A (zh) * 2015-01-14 2016-08-10 中国移动通信集团河北有限公司 一种性能测试方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070282567A1 (en) * 2006-05-31 2007-12-06 Dawson Christopher J Systems and Methods for Predicting Load Test Resource Requirements
CN101789002A (zh) * 2010-01-22 2010-07-28 浪潮(北京)电子信息产业有限公司 一种服务器上数据库兼容性的测试的装置及方法
CN105848176A (zh) * 2015-01-14 2016-08-10 中国移动通信集团河北有限公司 一种性能测试方法及装置
CN105224458A (zh) * 2015-10-09 2016-01-06 上海瀚银信息技术有限公司 一种数据库测试方法及系统
CN105446860A (zh) * 2015-11-11 2016-03-30 上海欣方智能系统有限公司 基于异步并发机制的压力测试系统和测试方法

Similar Documents

Publication Publication Date Title
CN105760286B (zh) 应用数据库动态性能检测方法及检测装置
Yang et al. A system architecture for manufacturing process analysis based on big data and process mining techniques
CN103257921B (zh) 一种基于改进随机森林算法的软件故障预测系统及其方法
EP2572294B1 (en) System and method for sql performance assurance services
CN104133771B (zh) 一种测试方法及装置
Duggan et al. Contender: A Resource Modeling Approach for Concurrent Query Performance Prediction.
CN110647387A (zh) 一种教育云大数据任务调度方法与系统
CN102307369A (zh) 支持无线传感网并行仿真和实物模拟的装置及方法
CN104778185A (zh) 异常结构化查询语言sql语句确定方法及服务器
CN107391373B (zh) 基于AutoIT的性能自动化测试方法
CN108595336A (zh) 一种基于以太网的计算机软件测试系统
CN108763093A (zh) 一种自动化测试方法和系统
US20190377666A1 (en) Optimized testing system
Kluza et al. Square complexity metrics for business process models
Yaqin et al. Scalability measurement of business process model using business processes similarity and complexity
Misra et al. Survey on agile metrics and their inter-relationship with other traditional development metrics
CN109542731B (zh) 一种面向gpu的层次递进下钻的性能监测方法
CN110377519B (zh) 大数据系统的性能容量测试方法、装置、设备及存储介质
CN102982037A (zh) 检测数据库节点健康状况的方法及装置
CN106713069A (zh) 系统资源监控与瓶颈识别方法
Huck et al. Detailed load balance analysis of large scale parallel applications
CN108363660A (zh) 一种测试程序生成方法和装置
CN107544895A (zh) Hadoop大数据平台测试系统及方法
CN106855844A (zh) 一种性能测试方法和系统
US7970776B1 (en) Apparatus, method and computer readable medium for identifying and quantifying database disk-sort operations

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170125