CN103684890B - Server stress method of testing and system - Google Patents

Server stress method of testing and system Download PDF

Info

Publication number
CN103684890B
CN103684890B CN201210314606.3A CN201210314606A CN103684890B CN 103684890 B CN103684890 B CN 103684890B CN 201210314606 A CN201210314606 A CN 201210314606A CN 103684890 B CN103684890 B CN 103684890B
Authority
CN
China
Prior art keywords
test
electronic equipment
level
cluster
server
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.)
Active
Application number
CN201210314606.3A
Other languages
Chinese (zh)
Other versions
CN103684890A (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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201210314606.3A priority Critical patent/CN103684890B/en
Publication of CN103684890A publication Critical patent/CN103684890A/en
Application granted granted Critical
Publication of CN103684890B publication Critical patent/CN103684890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of server stress method of testing, it includes the electronic equipment disperseed in network being classified to form test cluster, electronic equipment coupling in the electronic equipment and upper level in every one-level wherein below initial level, and also coupled positioned at the electronic equipment of lowermost level with tested server;Test packet is sent to test cluster, in test cluster, test packet is transferred downward to each electronic equipment in lowermost level from each electronic equipment in initial level, before test packet is sent to lowermost level, it is at different levels in electronic equipment replicate and test packet and the message replicated be sent to next stage;Each electronic equipment in lowermost level sends test packet to server to carry out the test to server;And collect test result.A kind of test system is also provided.The method of the invention and system can carry out pressure test using the electronic equipment disperseed in network to web server to be measured.

Description

Server stress method of testing and system
Technical field
The present invention relates to web server test, more particularly to utilize survey of the electronic equipment in network to web server Examination.
Background technology
How server can bear great visit capacity, response speed and fault-tolerant ability after building completion and devoting oneself to work It is required for being tested before its formal use.A kind of currently used testing tool is LoadRunner, and it passes through simulation Up to ten million users implement the problem of mode of concurrently load and real-time performance monitoring is to confirm and search tested server.
This kind of instrument requires higher to local resource, and only supports individual layer node.In addition, the test pressure of this kind of instrument Produced mainly by unit, the load of usual test main frame is less than the load of tested Web application systems, so test result is by this The limitation of ground resource.
The content of the invention
The present invention provides a kind of server stress method of testing, it is characterised in that, methods described includes in network to disperse Electronic equipment be classified to form test cluster, one in the electronic equipment and upper level in every one-level wherein below initial level Individual electronic equipment coupling, and the electronic equipment in lowermost level also couples with tested server;Test packet is sent to described Test cluster, in the test cluster, test packet is transferred downward in lowermost level from each electronic equipment in initial level Each electronic equipment, before test packet is sent to lowermost level, it is at different levels in electronic equipment replicate and test packet and will be replicated Message be sent to next stage;Each electronic equipment in the lowermost level sends test packet to server to carry out to described The test of server;And collect test result.
According to an aspect of the present invention, it is preferable that each electronics of the test result including the lowermost level of collecting is set It is standby that test result is transferred up to initial level in real time, test result is sent to collection device by the initial level.
According to an aspect of the present invention, it is preferable that the collection test result includes the test cluster according to reception Test result collect instruction, test result is passed up, by test cluster since lowermost level every one-level collect survey Test result is simultaneously transferred up to initial level with this, and test result is sent into collection device by the initial level.
Also a kind of server stress test system of the present invention, the system include test cluster and testing control module, its Middle testing control module is used to send test packet to the test cluster and receives the test result from the test cluster; And test cluster is formed hierarchically by the electronic equipment disperseed in network, electronic equipment in every one-level wherein below initial level and Electronic equipment coupling in upper level, and also coupled positioned at the electronic equipment of lowermost level with tested server.
In the system, test module includes administrative unit, and it is used to configure each electronic equipment in the test cluster Relevant parameter and the connectedness for testing test cluster;Test starting unit, it is used to start the test system;Test packet is given birth to Into unit, it generates test packet in response to the starting operation of the test starting unit;Input-output unit, its be used for The test cluster exports test packet and receives the test result of the test cluster transmission;Test result display unit, its For showing received test result.
Perform method of the present invention and/or apply system of the present invention, using the electronics disperseed in network Equipment forms the test cluster of classification, so as to form the tested web server of concurrent user's test.
Brief description of the drawings
Fig. 1 is the flow chart of server stress method of testing according to an embodiment of the invention.
Fig. 2 is an example of step 100 in Fig. 1.
Fig. 3 is the structural representation of server stress test system according to an embodiment of the invention.
Embodiment
Embodiments of the invention are described comprehensively below in reference to accompanying drawing.It should be noted that the present invention can be embodied as it is different Form, it is not limited with the embodiment explained at this.There is provided these embodiments be intended to make the scope of the present invention is complete and saturating Those skilled in the art are communicated to thoroughly.
Unless otherwise defined, otherwise all terms as used herein(Including scientific and technical terms)All have and the present invention The implication identical implication that those of ordinary skill in the art are commonly understood by.
Fig. 1 is the flow chart of server stress method of testing according to an embodiment of the invention.According to the present embodiment, Before pressure test is carried out to Web service, the electronic equipment disperseed in network is formed hierarchically test cluster, such as step first Shown in 100.The electronic equipment disperseed in network can be the accessible network such as desktop computer, notebook computer, portable equipment Any equipment.The electronic equipment disperseed in network refers to the electronic equipment run independently of one another in network, can between them It can not also be communicated with communication.
Fig. 2 is an example of step 100 in Fig. 1, and step 100 is further illustrated in conjunction with Fig. 2.By 1 in network, 2nd ..., i electronic equipment forms the initial level of test cluster, the hereinafter referred to as first order 20, each electronics in the first order Equipment can receive the data as test packet by being transmitted such as a testing control module, for example should can also send data to Test module, such as test result.Under the first order 20, the second level 22 is provided with.The second level 22 is also by multiple networks Electronic equipment forms, and the electronic equipment in the second level 22 may be configured to multiple groups, each group and one in the first order 20 Electronic equipment is associated, i.e. the electronic equipment associated with this of each electronic equipment in the group is coupled so as to be led to Letter.As shown in FIG., i group electronic equipments, the 1st group of electronic equipment and the electronic equipment 1 in the first order 20 are shared in the second level 22 Association, associated with the electronic equipment 2 in the first order 20 in the 2nd group of electronic equipment, the like, electronic equipment in i-th group with Electronic equipment i associations in the first order 20.The second level 22 is the lowermost level in this example, and it with the first order 20 outside coupling, also Coupled with tested server, so as to which the test signal by test cluster transmission is sent into tested server to be surveyed to it Examination.
In the figure 2 example, test cluster includes the two level being made up of the first order and the second level, but in practical application, should Test cluster can also be three-level, level Four or Pyatyi etc..Number per electronic equipment in one-level is configurable, and with it is more advanced In electronic device association lower level in the number of electronic equipment be also configurable.For example, the electronic equipment of the first order 20 Number can be configured to 4, and the number of the electronic equipment of the second level 22 can be configured as 16 or other numbers;In addition, the second level Each group of electronic equipment number in 22 can be configured to different numbers, such as the electronic equipment in the second level 20 and the first order 20 The group of 1 association can configure 3 electronic equipments, and the group that the second level 22 associates with the electronic equipment 2 in the first order 20 is configurable 4 Electronic equipment etc..It should be noted that each electronic equipment can while the electronic equipment of certain one-level is configured as quilt again Another grade of electronic equipment is configured to, only the electronic equipment accesses different levels by different interfaces.
In step 102, test packet is sent to test cluster.After test packet is tested cluster reception, from the first order Each electronic equipment is transferred downward to each electronic equipment in lowermost level, before test packet is sent to lowermost level, at different levels Electronic equipment replicates test packet and the message replicated is sent into next stage.
Step 102 still is expanded on further with reference to Fig. 2.Each electronic equipment in test cluster in the first order 20 receives respectively The test packet transmitted by such as testing control module, the transmission message are converted to http request message lattice by the test device Formula, so as to be distributed to test cluster.Each electronic equipment in the first order 20 in test cluster replicates received test report Text, and the test packet replicated is distributed to downwards electronic equipment associated with it in next stage, is distributed in this example 22 electronic equipment associated with it of two level.For example, the electricity of electronic equipment 1 in the first order according to associated with it group in the second level The number of sub- equipment replicates test packet, and the test packet of duplication is distributed to each electronic equipment i+1 in the group respectively, I+2 and 2i;Electronic equipment 2 in the first order replicates test report according to the number of associated with it group of electronic equipment in the second level Text, and the test packet of duplication is distributed to each electronic equipment 2i+1,2i+2 and 3i in the group respectively;Electricity in the first order Sub- equipment i replicates test packet according to the number of associated with it group of electronic equipment in the second level, and by the test report of duplication Text is distributed to each electronic equipment ni+1, ni+2 and the ni+n of the group kind respectively;The n and i in all embodiments and example herein It is natural number.Each electronic equipment in the second level 22 receives test packet, if in this example the second level 22 be not with it is to be measured The lowermost level that server directly mutually couples is tried, then each electronic equipment in the second level 22 also replicates test packet and distributed again To electronic equipment associated there in next stage.
Each electronic equipment in step 104, lowermost level sends test packet to server to carry out to the service The test of device.With reference to Fig. 2, each electronic equipment in the second level 22 in this example, and each electronic equipment produces and hair Family, the test packet received is transmitted directly to server to be tested, to test it.Term " concurrent user " is as originally As art personnel understand, refer to that electronic equipment is modeled to Virtual User.And here, electronics in minimum one-level Equipment, each of which caused concurrent user can be with more than one, and can be according to being actually needed to be multiple.
In step 106, test result is collected.Reference picture 2, it is performed in the server that each test packet is tested Afterwards, corresponding electronic equipment in lowermost level, such as Fig. 2 second level 22 just by test result into upper level it is associated with it Electronic equipment transmits, as electronic equipment i+1 and i+2 send test result to electronic equipment 1 in the first order 20 and electric respectively Sub- equipment 2i+1 and 2i+2 respectively sends test result to electronic equipment 2 in the first order 20 etc..Further, in the first order 20 Each electronic equipment send the test result received to such as testing control module, shown by it or other processing.
Alternatively, collecting test result can also be carried out as follows:From such as testing control module to test set Pocket transmission collection message, transmission of the message in test cluster is such as test packet, and thus, being tested server will test As a result the lowermost level in test cluster is sent to, the electronic equipment of the second level 22 as shown in Figure 2, the electronic equipment in this grade will Test result is passed up until such as testing control module.
Method as mentioned, the electronic equipment in network is organized into the test cluster of classification, taken in the cluster with tested Each electronic equipment in the lowermost level of business device coupling is modeled to Virtual User respectively, the more advanced middle reception by it from test cluster Test packet send to be executed by it to tested server so as to test the server carry visit capacity, response speed and The performances such as fault-tolerant ability.With routine compared with local virtual goes out the single-stage testing tool of multiple users, side of the present invention Method because using the multiple equipment in network and number of concurrent is higher, that is, the number of users simulated is more, therefore can more objective simulation Real pressure test;And in conventional method, local device is because that will simulate multiple users and overload, and according to the present invention Described method is tested then without this problem.
Fig. 3 is the structural representation of server stress test system according to an embodiment of the invention.As illustrated, should System includes testing control module 30 and test cluster 32.Test cluster 32 is formed hierarchically by the electronic equipment disperseed in network, Electronic equipment coupling in the electronic equipment and upper level in every one-level wherein below initial level, and positioned at lowermost level Electronic equipment also couples with tested server.Step 100 and Fig. 2 of the formation of test cluster 32 such as above in conjunction with Fig. 1 Specific example introduce as formation, just repeat no more here.
Testing control module 30 sends test packet to the test cluster and receives the survey from the test cluster Test result.Test module includes administrative unit 300, test starting unit 302, test packet generation unit 304, input and output list Member 306 and test result display unit 308.Administrative unit 300 is used to match somebody with somebody each electronic equipment in test cluster 32 Put and for testing connectedness of each electronic equipment in the cluster.Including but not limited to version is configured to electronic equipment The route standard of upgrading and unified electronic equipment in test cluster etc..In general, administrative unit 300 needs in advance according to test The relevant information of the middle electronic equipments at different levels of test cluster is first configured.
Test starting unit 302 starts test system according to instruction, and the instruction can be inputted by user by inputting interface, Such as the enabling signal can be the signal that user presses start button generation.Test system is started in test starting unit 302 After system, test packet generation unit 304 generates test packet.The generation of test packet is, for example, to be parsed into test script Http test packets.The test packet of generation is sent to test cluster 32 by input-output unit 306, is transmitted via test cluster To tested server, it is tested.Specifically, test packet is transfused to output unit 306 and has been distributed to test cluster 32 Each electronic equipment of the first order, after message is received, each electronics being transferred downward in lowermost level is set these electronic equipments It is standby, before test packet is sent to lowermost level, it is at different levels in electronic equipment replicate test packet and by the message replicated pass It is sent to next stage.Specifically transmit process is as described in the step 102 above in conjunction with Fig. 1 and Fig. 2.
Input-output unit 306 also receives the test result transmitted by test cluster 32, is carried out in each test packet After the server of test performs, test result is associated with by the electronic equipment in the lowermost level of test cluster 32 into upper level Electronic equipment transmission, so successively upwards until the electronic equipment of the initial level by test cluster 32 sends test result to The input-output unit 306 of testing control module 30.
Test result is from tested server via the process of test cluster 32 to testing control module 30 as explained above with Fig. 1 Step 106 and as Fig. 2 introduces, just no longer describe here.
Test result display unit 308 can then show that test result is checked for user.
Test system as described above, the electronic equipment in network is organized into the test cluster of classification, in the cluster with Each electronic equipment in the lowermost level of tested server coupling is modeled to Virtual User respectively, by it from the more advanced of test cluster The test packet of middle reception send to be executed by it to tested server so as to test the server carry visit capacity, response The performance such as speed and fault-tolerant ability.With routine compared with local virtual goes out the single-stage testing tool of multiple users, network is utilized In multiple equipment the system concurrency number it is higher, that is, the number of users simulated is more, thus can more objective simulation it is real Pressure test.

Claims (5)

  1. A kind of 1. server stress method of testing, it is characterised in that, methods described includes:
    The electronic equipment disperseed in network is classified to form test cluster, wherein, the electronics in every one-level below initial level Equipment couples with an electronic equipment in upper level, and the electronic equipment in lowermost level also couples with tested server;
    The test packet for being converted into http request message format is sent to the test cluster, in the test cluster, is surveyed Examination message is transferred downward to each electronic equipment in lowermost level from each electronic equipment in initial level, is sent to most in test packet Before rudimentary, it is at different levels in electronic equipment replicate and test packet and the message replicated be sent to next stage;
    Each electronic equipment in the lowermost level sends test packet to server to carry out the test to the server;With And
    Collect test result,
    Each electronic equipment is configured as another grade of electronic equipment again while the electronic equipment of certain one-level is configured as, should Electronic equipment accesses different levels by different interfaces.
  2. 2. the method as described in claim 1, it is characterised in that the collection test result includes:
    Test result is transferred up to initial level by each electronic equipment of the lowermost level in real time;And
    Test result is sent to collection device by the initial level.
  3. 3. the method as described in claim 1, it is characterised in that the collection test result includes:
    The test cluster according to the test result of reception collect indicate, test result is passed up, by test cluster from Every one-level that lowermost level starts collects test result and summarized results is passed up until initial level;And
    Test result is sent to collection device by the initial level.
  4. A kind of 4. server stress test system, it is characterised in that the system includes test cluster and testing control module, its In:
    Testing control module, it sends the test packet for being converted into http request message format to the test cluster and reception Test result from the test cluster;And
    Test cluster, it is formed hierarchically by the electronic equipment disperseed in network, the electronics in every one-level wherein below initial level Equipment couples with an electronic equipment in upper level, and the electronic equipment in lowermost level also couples with tested server,
    Electronic equipment at different levels replicates test packet and the message replicated is sent into next stage, and by test result to On be sent to initial level,
    Wherein, each electronic equipment is configured as another grade of electronics and set again while the electronic equipment of certain one-level is configured as Standby, the electronic equipment accesses different levels by different interfaces.
  5. 5. system as claimed in claim 4, it is characterised in that the testing control module includes:
    Administrative unit, it is used to configure the relevant parameter of each electronic equipment in the test cluster and tests the connection of test cluster Property;
    Test starting unit, it is used to start the test system;
    Test packet generation unit, it generates test packet in response to the starting operation of the test starting unit;
    Input-output unit, it is used to export test packet to the test cluster and receives the test of the test cluster transmission As a result;
    Test result display unit, it is used to show received test result.
CN201210314606.3A 2012-08-30 2012-08-30 Server stress method of testing and system Active CN103684890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210314606.3A CN103684890B (en) 2012-08-30 2012-08-30 Server stress method of testing and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210314606.3A CN103684890B (en) 2012-08-30 2012-08-30 Server stress method of testing and system

Publications (2)

Publication Number Publication Date
CN103684890A CN103684890A (en) 2014-03-26
CN103684890B true CN103684890B (en) 2017-12-08

Family

ID=50321271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210314606.3A Active CN103684890B (en) 2012-08-30 2012-08-30 Server stress method of testing and system

Country Status (1)

Country Link
CN (1) CN103684890B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279083B (en) * 2014-07-24 2018-05-25 山东厚德测控技术有限公司 A kind of Web server performance concurrent test device and its test method
CN106911526A (en) * 2015-12-22 2017-06-30 中国电信股份有限公司 Method and system for realizing pressure test
CN106506268B (en) * 2016-11-03 2020-05-05 深圳汇网天下科技有限公司 Server access method and system
CN110062251A (en) * 2019-04-19 2019-07-26 视联动力信息技术股份有限公司 A kind of live streaming dissemination method, system and device
CN117707877A (en) * 2024-02-05 2024-03-15 之江实验室 Android simulator for protocol test and implementation method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488890A (en) * 2009-01-14 2009-07-22 成都市华为赛门铁克科技有限公司 Method and system for network attack test

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6446120B1 (en) * 1997-11-26 2002-09-03 International Business Machines Corporation Configurable stresser for a web server
TW200502746A (en) * 2003-07-04 2005-01-16 Hon Hai Prec Ind Co Ltd Testing system and method for network device
US7778171B2 (en) * 2007-03-02 2010-08-17 Agere Systems Inc. Connectionless configurations for stress testing timing and synchronization in data packet networks
CN101499994A (en) * 2008-02-03 2009-08-05 英业达股份有限公司 Method for implementing connection to server by multiple customer terminals
US8229416B2 (en) * 2008-09-23 2012-07-24 Ixia Methods, systems, and computer readable media for stress testing mobile network equipment using a common public radio interface (CPRI)

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488890A (en) * 2009-01-14 2009-07-22 成都市华为赛门铁克科技有限公司 Method and system for network attack test

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种可扩展的分布式网络攻击测试系统;宇佳;《计算机应用》;20060930;全文 *

Also Published As

Publication number Publication date
CN103684890A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103684890B (en) Server stress method of testing and system
CN102695187B (en) Distributed Web-based device and method for testing 6LoWPAN protocol consistency
CN106888194A (en) Intelligent grid IT assets security monitoring systems based on distributed scheduling
JP2017506843A (en) Method and apparatus for visual network operation and maintenance
CN104796240A (en) Fuzz testing system for stateful network protocol
CN106209515A (en) Access network equipment automatization test system
CN102967815A (en) Chip testing method, automated testing equipment and system
JP2011041455A (en) Apparatus and method of testing report communication in power transformation automation system
CN106775911A (en) A kind of method of testing and device for application and development
JP2006252158A (en) Device, method and program for generating test data in telegram processing system
CN101309178B (en) Parsing method and apparatus for automatic exchanging optical network systematic log information
CN110489087A (en) A kind of method, apparatus, medium and electronic equipment generating fractal structure
CN104993957A (en) Method for providing cloud log service for distributed APP employing Log4j
CN103326902A (en) Configurable monitoring system and monitoring method for distributed type mainframe performance testing data
CN105404580A (en) Distributed pressure test system and method
CN110932887A (en) BMC debugging method, system and device
CN101902368A (en) WEB performance test method based on simulation of bulk thin client operation and test system thereof
CN106936658A (en) The method of testing and test platform of test case, simulation test equipment
CN201955667U (en) Engine data acquisition server and measurement and control system
CN106933712A (en) Networking remote test system and method based on B/S frameworks
CN111930621A (en) DNS automation performance testing method, device, equipment and readable storage medium
CN109347654A (en) One kind being based on BS network architecture remote calibration system and method
CN106201845B (en) Analog machine real time data based on Web Service monitors method and system
CN105512020A (en) Method and device for test
CN109766228A (en) Verification method and device on a kind of line based on interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant