CN102769674B - Web application system load testing method based on value recording detection method - Google Patents

Web application system load testing method based on value recording detection method Download PDF

Info

Publication number
CN102769674B
CN102769674B CN201210264306.9A CN201210264306A CN102769674B CN 102769674 B CN102769674 B CN 102769674B CN 201210264306 A CN201210264306 A CN 201210264306A CN 102769674 B CN102769674 B CN 102769674B
Authority
CN
China
Prior art keywords
test
application system
web application
system load
load testing
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.)
Expired - Fee Related
Application number
CN201210264306.9A
Other languages
Chinese (zh)
Other versions
CN102769674A (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.)
Northwestern Polytechnical University
Original Assignee
Northwestern Polytechnical University
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 Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN201210264306.9A priority Critical patent/CN102769674B/en
Publication of CN102769674A publication Critical patent/CN102769674A/en
Application granted granted Critical
Publication of CN102769674B publication Critical patent/CN102769674B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a Web application system load testing method based on a value recording detection method. The Web application system load testing method is used for solving the technical problem of poor real-time performance of an existing Web application system load testing method. The technical scheme includes that the Web application system load testing method includes: firstly, building a load testing model x=V0+di; secondly, constructing a performance function model; thirdly, correcting the performance function model; and finally, computing a maximum concurrent access user number. The maximum concurrent access user number borne by a Web application system is finally obtained by quickly dynamically responding to data during actual testing, evaluating the tested data in real time, detecting and verifying the load performance of the server based on evaluation results and evaluating a verified result again, so that the real-time performance of Web application system load testing is improved. The Web application system load testing method based on the value recording detection method can be directly applied to actual Web application system load testing projects, and dynamic response to the data during actual testing can be quickly performed, so that automatic testing is easy to implement.

Description

Web application system load test approach based on note value probe method
Technical field
The present invention relates to a kind of Web application system load test approach, particularly relate to a kind of Web application system load test approach based on note value probe method.
Background technology
In recent years, along with the develop rapidly of computer networking technology and the communication technology, the Internet has all produced great impact as a kind of service to all trades and professions, and especially Web service, has goed deep in people's routine matter.But it is also more and more higher to the requirement of Web service quality that the thing followed is people.Efficient, stable, a safe Web application system becomes particularly important for service provider and user.Due to the rapid growth of customer volume and mutual more frequent of servers' data, the service pressure of Web server grows with each passing day.Therefore,, in the practical application of Web website, when running into access peak, easily there is the situations such as the slack-off even service disruption of response speed of server.Particularly, for e-commerce website, this may cause very large economic loss.For fear of this situation, before Web application system comes into operation, need to simulate a large amount of real user access Web application system, system is carried out to load testing and pressure test, for performance optimization and the adjustment of server provides data foundation.
Document 1 " the rapid pressure testing research based on Web application. microcomputer application; 2007; 28 (9): 991-994. " a kind of linearity and dichotomy convolution load test approach disclosed, the method is the improvement of Linear testing method that present stage is mainly used, has improved the efficiency of test.Yet, if repeatedly overburden is tested, can increase the danger of test,, may there is the problems such as system crash in the Web application system for more fragile.
Document 2 " the web application performance prediction method based on combined stress testing. computer application; 2006; 26 (6): 1472-1474. " a kind of performance prediction method disclosed, although the method has also improved the efficiency of test, and solved shortcoming linear and dichotomy convolution load test approach, but its static test characteristic is not suitable for Complex System Environment, thereby limited the ability that realizes automatic test.
Summary of the invention
In order to overcome the poor deficiency of existing Web application system load test approach real-time, the invention provides a kind of Web application system load test approach based on note value probe method.The method is carried out dynamic response fast to the data in actual test process, real-time test data is assessed, the assessment result of take is surveyed and verifies the load performance of server as basis, and the result is assessed again, finally draw the maximum concurrent users quantity that Web application system can bear, can improve the real-time of Web application system load testing.
The technical solution adopted for the present invention to solve the technical problems is: a kind of Web application system load test approach based on note value probe method, is characterized in comprising the following steps:
(a) set up load testing model
x=V 0+di
In formula, V 0for the concurrent users number that first test loads, d is step-length, and i is test ordinal number; Simulate corresponding concurrent user access load Web server is tested, obtain when concurrent user number is x the resource consumption rate y of Web server.Follow-on test m time, obtains one group of test result data, as sample data set D, D={ (x i, y i), i=1 wherein, 2,3 ... m.
(b) according to the data group (x in sample data set D i, y i), utilize the least square method of curve to draw fitting function y=s (x), this fitting function is as Web server performance function model.
(c) according to fitting function y=s (x), calculate when the resource of Web server and use and approach bottleneck y etime concurrent user number x e, and analog subscriber number is adjusted to x e, then test the consumption rate y of Web server resource.
If y=100%, illustrates that fitting function is insincere, abandon this test data (x e, y), continue to increase with linear test mode before the sample data amount of test, and the sample data of newly test is joined in set D, forward step (b) to;
If y<100%, then according to reality value y and estimated value y edeviation, judge whether to meet accuracy requirement, if d 0for accurate valve, be met the performance function of requirement;
Otherwise by this test data (x e, y) join in set D, forward second step to.
(d), according to Web server performance function, calculate the maximum concurrent users number can bear when Web server reaches performance bottleneck.
In step (a), load level be in, minuent.
The invention has the beneficial effects as follows: because the data in actual test process are carried out dynamic response fast, real-time test data is assessed, the assessment result of take is surveyed and verifies the load performance of server as basis, and the result is assessed again, finally draw the maximum concurrent users quantity that Web application system can bear, improved the real-time of Web application system load testing.The present invention can directly apply in actual Web application system load testing engineering; And adopt the load test approach based on note value probe method to carry out dynamic response fast to the data in actual test process, there is good flexibility and adaptability, and easily be automated test.
Below in conjunction with accompanying drawing, embodiment elaborates to the present invention.
Accompanying drawing explanation
Accompanying drawing is the flow chart that the present invention is based on the Web application system load test approach of note value probe method.
Embodiment
The Web application system load test approach concrete steps that the present invention is based on note value probe method are as follows:
For actual Web application system environment, detect the maximum concurrent users number that Web server can bear.
The first step, performance sample data gathers.
Use linear mathematical model x=V 0+ di(V 0concurrent users number for first test loading, d is step-length, and i is test ordinal number) be load testing model, simulate corresponding concurrent user and access to load Web server is tested, obtain when concurrent user number is x the resource consumption rate y of Web server.Follow-on test m time, obtains one group of test result data, as sample data set D, D={ (x i, y i)), i=1 wherein, 2,3 ... m.
Second step, structural behavior function model.
According to the data group (x in sample data set D i, y i), utilize the least square method of curve to draw fitting function y=s (x), this fitting function is as Web server performance function model.
The 3rd step, revises performance function model.
According to performance function y=s (x) calculate resource use when Web server approach bottleneck (such as: CPU usage reach 90% or memory consumption while reaching 90%) y etime concurrent user number x e, and analog subscriber number is adjusted to x e, then test the consumption rate y of Web server resource.
If y=100%, illustrates that fitting function is insincere, abandon this test data (x e, y), continue to increase with linear test mode before the sample data amount of test, and the sample data of newly test is joined in set D, forward second step to;
If y<100%, then according to reality value y and estimated value y edeviation, judge whether to meet accuracy requirement, if (d 0for accurate valve), be met the performance function of requirement;
Otherwise by this test data (x e, y) join in set D, forward second step to.
The 4th step, calculates maximum concurrent users number.
According to the performance function of Web server, calculate the maximum concurrent users number can bear when Web server reaches performance bottleneck.Efficient, accurate, automatic test to Web application system maximum service ability have so just been realized.

Claims (1)

1. the Web application system load test approach based on note value probe method, is characterized in that comprising the following steps:
(a) set up load testing model
x=V 0+di
In formula, V 0for the concurrent users number that first test loads, d is step-length, and i is test ordinal number; Simulate corresponding concurrent user access load Web server is tested, obtain when concurrent user number is x the resource consumption rate y of Web server; Follow-on test m time, obtains one group of test result data, as sample data set D, D={ (x i, y i), i=1 wherein, 2,3 ... m;
(b) according to the data group (x in sample data set D i, y i), utilize the least square method of curve to draw fitting function y=s (x), this fitting function is as Web server performance function model;
(c) according to fitting function y=s (x), calculate when the resource of Web server and use and approach bottleneck y etime concurrent user number x e, and analog subscriber number is adjusted to x e, then test the consumption rate of Web server resource y;
If y=100%, illustrates that fitting function is insincere, abandon this test data (x e, y), continue to increase with linear test mode before the sample data amount of test, and the sample data of newly test is joined in set D, forward step (b) to;
If y < 100%, then according to reality value y and estimated value y edeviation, judge whether to meet accuracy requirement, if d0 is accurate threshold, is met the performance function of requirement;
Otherwise by this test data (x e, y) join in set D, forward step (b) to;
(d), according to Web server performance function, calculate the maximum concurrent users number can bear when Web server reaches performance bottleneck.
CN201210264306.9A 2012-07-29 2012-07-29 Web application system load testing method based on value recording detection method Expired - Fee Related CN102769674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210264306.9A CN102769674B (en) 2012-07-29 2012-07-29 Web application system load testing method based on value recording detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210264306.9A CN102769674B (en) 2012-07-29 2012-07-29 Web application system load testing method based on value recording detection method

Publications (2)

Publication Number Publication Date
CN102769674A CN102769674A (en) 2012-11-07
CN102769674B true CN102769674B (en) 2014-08-20

Family

ID=47096922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210264306.9A Expired - Fee Related CN102769674B (en) 2012-07-29 2012-07-29 Web application system load testing method based on value recording detection method

Country Status (1)

Country Link
CN (1) CN102769674B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717236A (en) * 2013-12-11 2015-06-17 中国移动通信集团公司 Equipment performance test method and device
CN105848176B (en) * 2015-01-14 2019-09-13 中国移动通信集团河北有限公司 A kind of performance test methods and device
CN106610896A (en) * 2015-10-27 2017-05-03 滴滴(中国)科技有限公司 Adaptive pressure testing method and device
US10606736B1 (en) * 2017-03-03 2020-03-31 Akamai Technologies Inc. System and method for automated creation of a load test plan
CN109426593A (en) * 2017-08-24 2019-03-05 北京京东尚科信息技术有限公司 The method and apparatus of automatic evaluation system performance
CN108536570B (en) * 2018-03-28 2020-12-25 口碑(上海)信息技术有限公司 Method, device and system for measuring gray level pressure of data live broadcast room
CN109614304A (en) * 2018-12-07 2019-04-12 国家电网有限公司信息通信分公司 A kind of calculation method and device running baseline
WO2021012171A1 (en) * 2019-07-23 2021-01-28 Micro Focus Llc Scheduling virtual users based on curve fitting
CN112749067B (en) * 2019-10-31 2024-06-18 北京京东尚科信息技术有限公司 System performance test method and device, equipment and storage medium
CN111464382A (en) * 2020-03-27 2020-07-28 中国建设银行股份有限公司 Intelligent pressure distribution testing method and device for service system
CN116991679B (en) * 2023-09-26 2023-12-08 四川华鲲振宇智能科技有限责任公司 Method for automatically distributing optimal thread number during memory pressure test

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882105B (en) * 2010-06-01 2013-05-08 华南理工大学 Method for testing response time of Web page under concurrent environment

Also Published As

Publication number Publication date
CN102769674A (en) 2012-11-07

Similar Documents

Publication Publication Date Title
CN102769674B (en) Web application system load testing method based on value recording detection method
CN102123061B (en) Method for determining performance of Web server
Bhuiyan et al. Dependable structural health monitoring using wireless sensor networks
Akdağ et al. A new method to estimate Weibull parameters for wind energy applications
Russo et al. Projection of occurrence of extreme dry‐wet years and seasons in Europe with stationary and nonstationary Standardized Precipitation Indices
CN103424654B (en) A kind of appraisal procedure of voltage dip sensitivity of sensitive equipment
CN106443627A (en) Bayesian based K distribution sea clutter shape parameter estimation method
CN107013813A (en) A kind of water supply line amount of leakage estimating system and method
CN104133773A (en) Server stability testing method based on windows
CN104484162A (en) Software testing case designing and writing method
CN110008122B (en) Model establishing method considering test workload and change point
CN104913720A (en) LiDAR technology-based overhead line creep measurement method
CN104112003A (en) Method and system for detecting performance of game terminals
CN103970129A (en) Control valve adhesion detecting method
CN103559414A (en) Environmental factor estimation method based on Arrhenius model
CN105300819A (en) Method for detecting fatigue limit of alloy steel based on support vector machine algorithm and system thereof
CN104091047A (en) Traffic flow missing data estimation system and method based on traffic time-spatial information
CN104350491A (en) Data sampling method and data sampling device
Xiang et al. Peak factor estimation methods of non-gaussian wind pressures on a rectangular high-rise building
CN104461848A (en) File system assessment method and system
CN103034579B (en) The Automatic analysis method and system of figure O&amp;M operation validity
CN103514082B (en) The method of testing of reflection computer equipment WEB energy efficiency
CN102930346A (en) MTTF (Mean time to failure) forecasting method of SOA (Service Oriented Architecture) service
CN101944236A (en) Sampling value distributing characteristic based signal detecting method with compressive sensing process
CN103713619A (en) Test method for ore grinding process operation control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140820

Termination date: 20150729

EXPY Termination of patent right or utility model