CN111078478A - Server stress testing method and device and computer readable storage medium - Google Patents

Server stress testing method and device and computer readable storage medium Download PDF

Info

Publication number
CN111078478A
CN111078478A CN201911300899.8A CN201911300899A CN111078478A CN 111078478 A CN111078478 A CN 111078478A CN 201911300899 A CN201911300899 A CN 201911300899A CN 111078478 A CN111078478 A CN 111078478A
Authority
CN
China
Prior art keywords
server
tested
test
performance index
preset
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.)
Granted
Application number
CN201911300899.8A
Other languages
Chinese (zh)
Other versions
CN111078478B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911300899.8A priority Critical patent/CN111078478B/en
Publication of CN111078478A publication Critical patent/CN111078478A/en
Application granted granted Critical
Publication of CN111078478B publication Critical patent/CN111078478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • 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/3409Recording 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 for performance assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application relates to a server stress testing method, a device, a computer readable storage medium and a computer device, wherein the method comprises the following steps: generating an initial request message according to the initial request speed, and sending the initial request message to a server to be tested; the server to be tested is used for obtaining a corresponding test response value according to the initial request message; receiving a test response value returned by the server to be tested; if the test response value is larger than or smaller than the preset performance index value of the server to be tested, adjusting the initial request speed according to the preset speed gradient to obtain the adjusted request speed; repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested; and if the test response value returned by the server to be tested is equal to the preset performance index value, taking the current request speed as the target pressure value of the server to be tested. The scheme provided by the application improves the pressure testing efficiency of the server.

Description

Server stress testing method and device and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a server stress testing method and apparatus, a computer-readable storage medium, and a computer device.
Background
With the rapid development of internet technology, more and more servers are applied, and in order to determine the bearing capacity of the servers, the servers need to be subjected to stress testing.
However, in the current server stress test method, the request speed of the message is manually adjusted according to the key performance index of the server until the request speed of the message is manually confirmed to reach the performance limit of the server. However, the process of manually adjusting the request speed of the message and determining whether the request speed of the message reaches the performance limit of the server is complicated, so that a large amount of manpower is consumed, and the pressure testing efficiency of the server is low.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a server stress testing method, device, computer-readable storage medium, and computer apparatus for solving the technical problem of low stress testing efficiency of the existing server.
A server stress testing method, comprising:
generating an initial request message according to the initial request speed, and sending the initial request message to a server to be tested; the server to be tested is used for obtaining a corresponding test response value according to the initial request message;
receiving the test response value returned by the server to be tested;
if the test response value is larger than or smaller than a preset performance index value of the server to be tested, adjusting the initial request speed according to a preset speed gradient to obtain an adjusted request speed;
repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested;
and if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, taking the current request speed as the target pressure value of the server to be tested.
A server stress testing apparatus, the apparatus comprising:
the message sending module is used for generating an initial request message according to the initial request speed and sending the initial request message to a server to be tested; the server to be tested is used for obtaining a corresponding test response value according to the initial request message;
a response value receiving module, configured to receive the test response value returned by the server to be tested;
a request speed adjusting module, configured to adjust the initial request speed according to a preset speed gradient if the test response value is greater than or less than a preset performance index value of the server to be tested, so as to obtain an adjusted request speed;
the repeated testing module is used for repeatedly testing the server to be tested according to the adjusted request speed until a testing response value returned by the server to be tested is equal to a preset performance index value of the server to be tested;
and the pressure value acquisition module is used for taking the current request speed as the target pressure value of the server to be tested if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
generating an initial request message according to the initial request speed, and sending the initial request message to a server to be tested; the server to be tested is used for obtaining a corresponding test response value according to the initial request message;
receiving the test response value returned by the server to be tested;
if the test response value is larger than or smaller than a preset performance index value of the server to be tested, adjusting the initial request speed according to a preset speed gradient to obtain an adjusted request speed;
repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested;
and if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, taking the current request speed as the target pressure value of the server to be tested.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
generating an initial request message according to the initial request speed, and sending the initial request message to a server to be tested; the server to be tested is used for obtaining a corresponding test response value according to the initial request message;
receiving the test response value returned by the server to be tested;
if the test response value is larger than or smaller than a preset performance index value of the server to be tested, adjusting the initial request speed according to a preset speed gradient to obtain an adjusted request speed;
repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested;
and if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, taking the current request speed as the target pressure value of the server to be tested.
According to the server pressure testing method, the device, the computer readable storage medium and the computer equipment, under the condition that a test response value obtained by the server to be tested according to the initial request speed is larger than or smaller than a preset performance index value, the initial request speed is adjusted according to a preset speed gradient, the server to be tested is tested repeatedly according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, and the current request speed is used as a target pressure value of the server to be tested; the purpose of automatically adjusting the request speed is achieved, manual adjustment is not needed, the pressure testing process of the server is simplified, and the pressure testing efficiency of the server is improved; the server to be tested is repeatedly tested through the automatically adjusted request speed to obtain the target pressure value of the server, whether the request speed of the message reaches the performance limit of the server or not does not need to be manually confirmed, and therefore the purpose of automatically testing the pressure of the server is achieved; meanwhile, the method is beneficial to smoothly detecting the target pressure value of the server, and overcomes the defect that the performance of the server is influenced by artificially and blindly detecting the performance of the server, so that the target pressure value obtained by testing is more accurate, and the accuracy of the obtained target pressure value is further improved.
Drawings
FIG. 1 is a diagram of an exemplary server stress testing method;
FIG. 2 is a flow diagram illustrating a method for server stress testing in one embodiment;
FIG. 3 is a flowchart illustrating steps of loading a predetermined performance index value and establishing a network connection with a server under test in one embodiment;
FIG. 4 is a flowchart illustrating steps of obtaining a preset performance index value and interface information of a server under test in one embodiment;
FIG. 5 is a flowchart illustrating steps of repeatedly testing a server under test according to an adjusted request speed in one embodiment;
FIG. 6 is a flow diagram illustrating the steps of automatically adjusting the requested speed in one embodiment;
FIG. 7 is a flowchart illustrating steps for determining a performance level of a server under test in one embodiment;
FIG. 8 is a flowchart illustrating steps in one embodiment for generating a stress test report for a server under test;
FIG. 9 is a flowchart illustrating the steps of pushing a stress test report to a terminal in one embodiment;
FIG. 10 is a schematic interface diagram of a stress test report in one embodiment;
FIG. 11 is a flowchart illustrating a server stress testing method according to another embodiment;
FIG. 12 is a flowchart illustrating a server stress testing method according to yet another embodiment;
FIG. 13 is a block diagram showing the construction of a server stress test apparatus according to an embodiment;
FIG. 14 is a block diagram showing a configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is an application environment diagram of a server stress testing method in one embodiment. Referring to fig. 1, the server stress test method is applied to a test system. The test system comprises a test server 110 and a server to be tested 120, wherein the test server 110 and the server to be tested 120 are connected through a network. The test server 110 and the server under test 120 may be implemented by separate servers or a server cluster composed of a plurality of servers.
In one embodiment, referring to fig. 1, the test server 110 reads the initial request speed, generates an initial request message according to the initial request speed, and sends the initial request message to the server to be tested 120; the server to be tested obtains a corresponding test response value according to the initial request message, and sends the test response value to the test server 110. The test server 110 compares the test response value with a preset performance index value of the server to be tested, if the test response value is greater than or less than the preset performance index value of the server to be tested, the initial request speed is adjusted according to the preset speed gradient to obtain an adjusted request speed, and the server to be tested 120 is tested repeatedly according to the adjusted request speed until the test response value returned by the server to be tested 120 is equal to the preset performance index value of the server to be tested 120; if the test response value returned by the server to be tested 120 is equal to the preset performance index value of the server to be tested 120, the current request speed is used as the target pressure value of the server to be tested 120, so that the purpose of automatically performing pressure test on the server to be tested 120 is achieved.
As shown in FIG. 2, in one embodiment, a server stress testing method is provided. The embodiment is mainly illustrated by applying the method to the test server in fig. 1. Referring to fig. 2, the server stress testing method specifically includes the following steps:
s202, generating an initial request message according to the initial request speed, and sending the initial request message to a server to be tested; and the server to be tested is used for obtaining a corresponding test response value according to the initial request message.
The stress test is to detect a performance bottleneck of the server, where the performance bottleneck of the server includes a performance bottleneck on hardware, a performance bottleneck on a network, a performance bottleneck on an application program, and the like.
The request speed refers to the number of request messages from the client to the server in each period, and specifically refers to the pressure value of the server; in the application, the test server simulates a client to send a request message to the test server, and the period is seconds. The initial request speed refers to the number of request messages sent to the server to be tested when the test server starts processing, and the request messages are called initial request messages; for example, the initial request rate is 5000, which means that 5000 request messages are sent to the server to be tested every second when the test server starts processing.
The test response value refers to a result obtained after the server to be tested responds to the initial request message, and comprises parameters such as error rate, time delay and the like returned by the server to be tested, and parameters such as a CPU (Central processing Unit) ratio, a disk IO (input output) ratio, a network flow ratio, a memory ratio and the like of the running environment of the server to be tested; the error rate refers to the range and probability of errors occurring in the server to be tested, and the delay refers to the time required for transmitting a message from one end of the network to the other end, and specifically includes transmission delay, processing delay and queuing delay.
Specifically, the test server receives a test request for a server to be tested, and acquires a corresponding test file according to the test request, wherein the test file comprises an initial request speed, a preset speed gradient, a preset performance index value of the server to be tested and the like; the server reads the initial request speed, generates a corresponding initial request message according to the initial request speed, and sends the initial request message to the server to be tested; and after receiving the initial request message, the server to be tested responds to the initial request message to obtain a corresponding test response value.
The test file refers to a configuration file for performing pressure test on the server to be tested; the preset speed gradient refers to the magnitude of the pressure value of each adjustment, namely the magnitude of the request speed of each adjustment, for example, the preset speed gradient is 20q/s, and refers to that the request speed of the request message is increased by using the request speed of 20q/s, or the request speed of the request message is decreased by using the request speed of 20 q/s; the preset performance index value refers to key performance indexes of the server, such as the fault tolerance rate, the average time delay, the maximum time delay and the like of the server to be tested, and the maximum CPU occupation ratio, the maximum disk IO occupation ratio, the maximum network flow occupation ratio, the maximum memory occupation ratio and the like which are allowed by the running environment of the server to be tested; the fault tolerance rate refers to the range and probability of errors allowed to occur in the server to be tested.
For example, the test server generates a specific request message according to a pre-established request data model, and sends the specific request message to the server to be tested according to the initial request speed; each request message is a structure body, wherein each request message comprises 4 key fields KeyInfo, and the configuration defines the name FieldName, the type FieldType, the default value FieldBuff and the value range KeyRange of each field respectively; FiledInfo of the remaining non-KeyInfo fields is the value portion of the request data. The pre-established request data model is a model which can generate request messages and send the corresponding request messages to the server to be tested for processing according to the request speed.
And S204, receiving a test response value returned by the server to be tested.
And S206, if the test response value is greater than or less than the preset performance index value of the server to be tested, adjusting the initial request speed according to the preset speed gradient to obtain the adjusted request speed.
Specifically, the test server loads a preset performance index value of the server to be tested, compares a test response value returned by the server to be tested with the preset performance index value of the server to be tested, and if the test response value is greater than the preset performance index value of the server to be tested, for example, the obtained CPU occupation ratio is greater than the maximum CPU occupation ratio allowed by the server to be tested, it indicates that the server to be tested is overloaded, and the initial request speed can be reduced according to a preset speed gradient, so that the adjusted request speed is obtained; if the test response value is smaller than the preset performance index value of the server to be tested, for example, the obtained CPU occupation ratio is smaller than the maximum allowable CPU occupation ratio of the server to be tested, it indicates that the server to be tested is not overloaded, and the initial request speed can be increased according to the preset speed gradient, so as to obtain the adjusted request speed; therefore, the aim of automatically adjusting the request speed according to the test response value returned by the server to be tested is fulfilled, manual adjustment is not needed, the pressure test process of the server is simplified, and the pressure test efficiency of the server is improved; meanwhile, a large amount of labor cost is saved.
For example, the test server uses each preset performance index value in a pre-established key performance index model as a reference to determine whether a test response value returned by the server to be tested each time reaches a performance bottleneck of the server to be tested, so as to determine whether the request speed needs to be adjusted; if the test response value is larger than the preset performance index value of the server to be tested, the server to be tested exceeds the performance bottleneck, namely the server to be tested is overloaded, and the initial request speed is reduced according to the preset speed gradient; if the test response value is smaller than the preset performance index value of the server to be tested, the server to be tested does not reach the performance bottleneck, namely the server to be tested is not overloaded, and the initial request speed is increased according to the preset speed gradient. The pre-established key performance index model refers to a structural body model abstracted according to the preset performance index value of the server to be tested.
Further, if the test response value obtained according to the adjusted request speed is closer to the preset performance index value of the server to be tested, the preset speed gradient may be adjusted, for example, the preset speed gradient is reduced, the adjusted request speed is adjusted again according to the adjusted preset speed gradient, and the server to be tested is tested repeatedly according to the re-adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested; therefore, the target pressure value of the server can be detected smoothly, and the obtained target pressure value of the server is more accurate.
And S208, repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested.
Specifically, the test server sends a corresponding request message to the server to be tested according to the adjusted request speed so as to repeatedly test the server to be tested, if the test response value returned by the server to be tested is greater than the preset performance index value, the request speed is reduced according to the preset speed gradient, if the test response value returned by the server to be tested is less than the preset performance index value, the request speed is increased according to the preset speed gradient, and the like is performed until the test response value returned by the server to be tested is equal to the preset performance index value; therefore, the purpose of automatically carrying out pressure test on the server is achieved, the defect that the pressure test efficiency of the server is low due to manual detection of the server is overcome, and the pressure test efficiency of the server is further improved; meanwhile, the method is beneficial to smoothly detecting the target pressure value of the server, and the defect that the performance of the server is influenced by artificially and blindly detecting the performance of the server is avoided.
And S210, if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, taking the current request speed as the target pressure value of the server to be tested.
The target pressure value is the maximum request speed corresponding to the performance bottleneck reached by the server to be tested and is used for measuring the maximum bearing capacity of the server to be tested; different servers to be tested generally have different corresponding target pressure values.
The current request speed refers to a request speed corresponding to a request message received by the server to be tested under the condition that the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested.
Specifically, when a test response value returned by the server to be tested is equal to a preset performance index value of the server to be tested, the test server identifies the current request speed as a target pressure value of the server to be tested, and marks the server to be tested as a tested server; therefore, the purpose of smoothly detecting the target pressure value of the server is achieved, the defect that the accuracy of the obtained target pressure value is low due to the fact that errors are prone to occurring due to manual detection of the server is avoided, the target pressure value obtained through testing is more accurate, and the accuracy of the obtained target pressure value is further improved.
According to the server pressure testing method, under the condition that a test response value obtained by the server to be tested according to the initial request speed is larger than or smaller than a preset performance index value, the initial request speed is adjusted according to a preset speed gradient, the server to be tested is tested repeatedly according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, and the current request speed is used as a target pressure value of the server to be tested; the purpose of automatically adjusting the request speed is achieved, manual adjustment is not needed, the pressure testing process of the server is simplified, and the pressure testing efficiency of the server is improved; the server to be tested is repeatedly tested through the automatically adjusted request speed to obtain the target pressure value of the server, whether the request speed of the message reaches the performance limit of the server or not does not need to be manually confirmed, and therefore the purpose of automatically testing the pressure of the server is achieved; meanwhile, the method is beneficial to smoothly detecting the target pressure value of the server, and overcomes the defect that the performance of the server is influenced by artificially and blindly detecting the performance of the server, so that the target pressure value obtained by testing is more accurate, and the accuracy of the obtained target pressure value is further improved.
As shown in fig. 3, in an embodiment, before generating an initial request message according to the initial request speed and sending the initial request message to the server to be tested in step S202, the method may further include the following steps:
s302, acquiring a preset performance index value and interface information of the server to be tested.
The interface information refers to API interface information of the server to be tested.
Specifically, the test server obtains an equipment identification number of the server to be tested, queries a preset database in which preset performance index values and interface information of the plurality of servers are stored according to the equipment identification number of the server to be tested, and obtains the preset performance index values and the interface information of the server to be tested from the preset database. The device identification number refers to unique identification information of the server to be tested, such as a server name, a server number and the like.
S304, loading the preset performance index value of the server to be tested.
Specifically, a test server loads a preset performance index value of a server to be tested and generates a corresponding key performance index model; therefore, each preset performance index value in the key performance index model is taken as a reference to judge whether the test response value returned by the server to be tested reaches the performance bottleneck of the server to be tested, so as to determine whether the request speed needs to be adjusted, thereby realizing the purpose of automatically adjusting the request speed and further improving the pressure test efficiency of the server.
And S306, establishing network connection with the server to be tested according to the interface information.
Specifically, the test server initializes interface information of the server to be tested, and establishes network connection with the server to be tested according to the interface information, so that the request message is sent to the server to be tested through the network connection in the follow-up process, and the pressure test of the server to be tested is carried out, thereby ensuring the smooth pressure test process of the server to be tested.
In the embodiment, the interface information of the server to be tested is acquired, so that the network connection with the server to be tested is established subsequently according to the interface information, and the request message can be ensured to be smoothly sent to the server to be tested; meanwhile, the preset performance index value of the server to be tested is obtained, whether the request speed needs to be adjusted or not is conveniently determined according to the preset performance index value subsequently, the purpose of automatically adjusting the request speed is achieved, and the pressure testing efficiency of the server is further improved.
In an embodiment, the step S202 of generating an initial request message according to the initial request speed, and sending the initial request message to the server to be tested specifically includes: and detecting whether network connection is established with the server to be tested, if so, generating an initial request message according to the initial request speed, and sending the initial request message to the server to be tested.
In this embodiment, whether to establish network connection with the server to be tested is detected in advance, so that smooth sending of the request message can be ensured, and smooth proceeding of the pressure test process of the server to be tested is ensured.
As shown in fig. 4, in an embodiment, the step S302 of obtaining the preset performance index value and the interface information of the server to be tested specifically includes the following steps:
s402, receiving a test request aiming at the server to be tested, which is sent by the test platform.
The testing platform refers to a control platform for performing pressure testing on the server, and may refer to a short-range testing platform or a long-range testing platform.
S404, analyzing the test request to obtain a preset performance index value and interface information of the server to be tested.
Specifically, the test platform responds to the trigger operation of a tester to obtain the equipment identification number of the server to be tested selected by the tester; inquiring a preset database according to the equipment identification number, and acquiring a preset performance index value and interface information corresponding to the equipment identification number as a preset performance index value and interface information of the server to be tested; generating a test request aiming at the server to be tested according to a preset performance index value and interface information of the server to be tested, and sending the test request aiming at the server to be tested to the test server; the test server analyzes the test request to obtain a preset performance index value and interface information of the server to be tested.
In this embodiment, by receiving the test request for the server to be tested, which is sent by the test platform, it is beneficial to perform a pressure test on the server to be tested subsequently according to the test request, so that a purpose of performing a remote pressure test on the server to be tested is achieved.
As shown in fig. 5, in an embodiment, in the step S206, the step of repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested specifically includes the following steps:
and S502, generating a corresponding request message according to the adjusted request speed.
S504, the request message is sent to the server to be tested, and the server to be tested is tested repeatedly.
Specifically, if the test response value returned by the server to be tested is smaller than or larger than the preset performance index value of the server to be tested, the request speed is adjusted according to the preset speed gradient, and the server to be tested is tested according to the adjusted request speed. For example, referring to fig. 6, fig. 6 is a flowchart illustrating a step of automatically adjusting the requested speed in an embodiment, which specifically includes the following processes:
(1) the test server receives a test response value returned by the server to be tested, such as an error rate, a time delay, a CPU (Central processing Unit) proportion, a disk IO proportion, a network flow proportion, a memory proportion and the like, and compares the test response value with a corresponding preset performance index value.
(2) Judging whether the error rate is smaller than the fault-tolerant rate or not, if not, judging whether the error rate is larger than the fault-tolerant rate or not, if so, indicating that the server to be tested is overloaded, and reducing the request speed according to a preset speed gradient; if not, the error rate is equal to the fault tolerance rate, and the current request speed is used as the target pressure value of the server to be tested.
(3) If the error rate is less than the fault-tolerant rate, judging whether the time delay is less than the maximum time delay, if not, judging whether the time delay is greater than the maximum time delay, if so, indicating that the server to be tested is overloaded, and reducing the request speed according to a preset speed gradient; if not, the time delay is equal to the maximum time delay, and then the current request speed is used as the target pressure value of the server to be tested.
(4) If the time delay is smaller than the maximum time delay, judging whether the CPU occupation ratio is smaller than the maximum CPU occupation ratio or not, if not, judging whether the CPU occupation ratio is larger than the maximum CPU occupation ratio or not, if so, indicating that the server to be tested is overloaded, and reducing the request speed according to a preset speed gradient; if not, the CPU occupation ratio is equal to the maximum CPU occupation ratio, and the current request speed is used as the target pressure value of the server to be tested.
(5) If the CPU occupation ratio is smaller than the maximum CPU occupation ratio, judging whether the disk IO occupation ratio is smaller than the maximum disk IO occupation ratio, if not, judging whether the disk IO occupation ratio is larger than the maximum disk IO occupation ratio, if so, indicating that the server to be tested is overloaded, and reducing the request speed according to a preset speed gradient; if not, the disk IO occupation ratio is equal to the maximum disk IO occupation ratio, and the current request speed is used as the target pressure value of the server to be tested.
(6) If the disk IO proportion is smaller than the maximum disk IO proportion, judging whether the network traffic proportion is smaller than the maximum network traffic proportion, if not, judging whether the network traffic proportion is larger than the maximum network traffic proportion, if so, indicating that the server to be tested is overloaded, and reducing the request speed according to a preset speed gradient; if not, the network flow ratio is equal to the maximum network flow ratio, and the current request speed is used as the target pressure value of the server to be tested.
(7) If the network traffic ratio is smaller than the maximum network traffic ratio, judging whether the memory ratio is smaller than the maximum memory ratio, if not, judging whether the memory ratio is larger than the maximum memory ratio, if so, indicating that the server to be tested is overloaded, and reducing the request speed according to a preset speed gradient; if not, the memory occupation ratio is equal to the maximum memory occupation ratio, and the current request speed is used as the target pressure value of the server to be tested.
(8) If the memory occupation ratio is smaller than the maximum memory occupation ratio, the test response values of the server to be tested are smaller than the corresponding preset performance index values, and the server to be tested is not overloaded, the request speed is increased according to the preset speed gradient, so that the request speed is automatically adjusted, and the server to be tested is tested repeatedly.
S506, if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, the test is stopped.
In the embodiment, the purpose of automatically adjusting the request speed is realized, and manual adjustment is not needed, so that the pressure test process of the server is simplified, and the pressure test efficiency of the server is improved; the server to be tested is repeatedly tested through the automatically adjusted request speed to obtain the target pressure value of the server, whether the request speed of the message reaches the performance limit of the server or not does not need to be manually confirmed, and therefore the purpose of automatically testing the pressure of the server is achieved; meanwhile, the method is beneficial to smoothly detecting the target pressure value of the server, and the defect that the accuracy of the obtained target pressure value is low due to the fact that errors are easy to occur through manual detection of the server is overcome, so that the target pressure value obtained through testing is more accurate, and the accuracy of the obtained target pressure value is further improved.
As shown in fig. 7, in an embodiment, the server stress testing method of the present application further includes a step of determining a performance level of the server to be tested, and specifically includes the following steps:
s702, acquiring the weight corresponding to the target pressure value and the comprehensive score corresponding to the preset performance index value.
The target pressure value and the weight have a one-to-one correspondence relationship, and the larger the target pressure value is, the larger the corresponding weight is; the comprehensive score is used for comprehensively measuring the performance condition of each preset performance index value of the server to be measured.
Specifically, the test server queries a preset corresponding relation between the pressure value and the weight to obtain the weight corresponding to the target pressure value; and inquiring the corresponding relation between the preset performance index values and the scores to obtain scores corresponding to the preset performance index values, and adding the scores corresponding to the preset performance index values to obtain a comprehensive score serving as the comprehensive score corresponding to the preset performance index value of the server to be tested.
For example, each preset performance index value of the server to be tested is: the fault tolerance rate a, the time delay b, the maximum CPU occupation ratio c, the maximum disk IO occupation ratio d, the maximum network flow occupation ratio e and the maximum memory occupation ratio f, wherein the corresponding scores are respectively as follows: a1, b1, c1, d1, e1 and f1, wherein the comprehensive score corresponding to the preset performance index value of the server to be tested is a1+ b1+ c1+ d1+ e1+ f 1.
S704, taking the product of the weight and the comprehensive score as the performance score of the server to be tested.
The performance score of the server to be tested is used for measuring the performance condition of the server to be tested, and the higher the performance score is, the better the corresponding performance condition is.
For example, if the weight corresponding to the target pressure value is m, and the comprehensive score corresponding to the preset performance index value of the server to be tested is a1+ b1+ c1+ d1+ e1+ f1, the performance score of the server to be tested is (a1+ b1+ c1+ d1+ e1+ f1) × m.
S706, determining the performance grade of the server to be tested according to the corresponding relation between the preset performance score and the performance grade.
The performance grade of the server to be tested is used for measuring the performance degree of the server to be tested.
Specifically, the test server obtains a corresponding relationship between a preset performance score and a performance level, and queries the corresponding relationship between the preset performance score and the performance level according to the performance score of the server to be tested, so as to obtain the performance level of the server to be tested.
Further, a maintenance instruction corresponding to the server to be tested can be determined according to the corresponding relation between the preset performance grade and the maintenance instruction; therefore, the server to be tested can be maintained correspondingly according to the corresponding maintenance instruction, and the service life of the server to be tested is prolonged.
In this embodiment, the target pressure value and each preset performance index value of the server to be tested are comprehensively considered, so that the performance grade of the server to be tested is favorably and comprehensively evaluated, the determined performance grade of the server to be tested is more accurate, and the accuracy of the performance grade of the server is improved.
As shown in fig. 8, in an embodiment, the server stress test method further includes a step of generating a stress test report of the server to be tested, and specifically includes the following steps:
s802, acquiring the equipment identification number of the server to be tested.
Specifically, the test server uses the name or serial number of the server to be tested as the device identification number of the server to be tested.
And S804, generating a pressure test report of the server to be tested according to the target pressure value, the preset performance index value and the performance grade.
The pressure test report is used to record pressure test information of the server, such as a target pressure value, a preset performance index value, and a performance level, and may also record basic information of the server.
Specifically, the test server sequentially imports the target pressure value, the preset performance index value and the performance grade into a preset pressure test report template to generate a pressure test report of the server to be tested.
For example, the test server obtains a preset pressure test report template, and a position label of a target pressure value, a preset performance index value, and a performance level in the preset pressure test report template; determining the corresponding positions of the target pressure value, the preset performance index value and the performance grade in the preset pressure test report template according to the target pressure value, the preset performance index value and the position label of the performance grade in the preset pressure test report template; and respectively importing the target pressure value, the preset performance index value and the performance grade into corresponding positions in a preset pressure test report template to generate a pressure test report of the server to be tested.
And S806, storing the pressure test report into a preset database according to the equipment identification number.
Specifically, the test server stores the pressure test reports into a preset database according to the corresponding equipment identification numbers, so as to store the pressure test reports corresponding to the equipment identification numbers through the preset database.
In this embodiment, a pressure test report of the server to be tested is generated according to the target pressure value, the preset performance index value and the performance grade, so that subsequent testers can conveniently check the corresponding relevant test information of the server to be tested from the preset database according to the equipment identification number, and the purpose of quickly knowing the relevant test information of the server to be tested is achieved.
As shown in fig. 9, in an embodiment, the server stress test method of the present application further includes a step of pushing a stress test report to the terminal, and specifically includes the following steps:
s902, receiving a report inquiry request sent by a terminal; the report inquiry request carries the equipment identification number.
Specifically, the terminal responds to the input operation of a tester to obtain an equipment identification number input by the tester; and generating a report query request according to the equipment identification number, and sending the report query request to a test server.
For example, a tester inputs a device identification number on a query interface of a test application program of a terminal, clicks a query button, triggers the terminal to generate a report query request, and sends the report query request to a test server through the terminal.
In addition, a tester can also log in a browser running in the terminal, input a device identification number on a query interface corresponding to the browser, click a query button, trigger the terminal to generate a report query request, and send the report query request to the test server through the terminal.
And S904, acquiring a pressure test report corresponding to the equipment identification number from a preset database.
Specifically, the test server analyzes a report query request sent by the terminal to obtain an equipment identification number; and inquiring a preset database in which pressure test reports corresponding to a plurality of equipment identification numbers are stored according to the equipment identification numbers, and acquiring the pressure test report corresponding to the equipment identification number from the preset database.
Further, if a pressure test report corresponding to the equipment identification number is not obtained in the preset database, the test server determines a server to be tested according to the equipment identification number; according to the server pressure testing method in the embodiment of the application, the target pressure value of the server to be tested is obtained, the performance grade of the server to be tested is further obtained, and the pressure testing report of the server to be tested is generated according to the target pressure value, the preset performance index value and the performance grade and serves as the pressure testing report corresponding to the equipment identification number.
And S906, pushing the pressure test report to the terminal.
Specifically, the test server pushes a pressure test report corresponding to the device identification number to the terminal, so that a target pressure value, a preset performance index value and a performance level of the server are displayed through the terminal.
For example, referring to fig. 10, a target pressure value, a preset performance index value, a performance level, and the like of the server a are displayed on a query interface of the terminal; the preset performance index value comprises a fault tolerance rate, a time delay, a maximum CPU (Central processing Unit) occupation ratio, a maximum disk IO occupation ratio, a maximum network flow occupation ratio, a maximum memory occupation ratio and the like.
In this embodiment, the purpose of pushing the corresponding pressure test report to the terminal according to the report query request of the terminal is achieved, so that a tester corresponding to the terminal can conveniently check the pressure test report of the server at any time and any place, and the related test information of the server can be known in time.
As shown in fig. 11, in an embodiment, another server stress testing method is provided, which specifically includes the following steps:
s1102, acquiring a preset performance index value and interface information of the server to be tested; loading a preset performance index value of a server to be tested; and establishing network connection with the server to be tested according to the interface information.
S1104, generating an initial request message according to the initial request speed, and sending the initial request message to a server to be tested; and the server to be tested is used for obtaining a corresponding test response value according to the initial request message.
S1106, receiving a test response value returned by the server to be tested.
And S1108, if the test response value is greater than or less than the preset performance index value of the server to be tested, adjusting the initial request speed according to the preset speed gradient to obtain the adjusted request speed.
And S1110, repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested.
S1112, if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, taking the current request speed as the target pressure value of the server to be tested.
S1114, acquiring a weight corresponding to the target pressure value and a comprehensive score corresponding to a preset performance index value; taking the product of the weight and the comprehensive score as the performance score of the server to be tested; and determining the performance grade of the server to be tested according to the corresponding relation between the preset performance score and the performance grade.
S1116, acquiring an equipment identification number of the server to be tested; generating a pressure test report of the server to be tested according to the target pressure value, the preset performance index value and the performance grade; and storing the pressure test report into a preset database according to the equipment identification number.
S1118, receiving a report query request sent by a terminal; the report inquiry request carries an equipment identification number; acquiring a pressure test report corresponding to the equipment identification number from a preset database; and pushing the pressure test report to the terminal.
The server pressure testing method achieves the purpose of automatically adjusting the request speed without manual adjustment, thereby simplifying the pressure testing process of the server and further improving the pressure testing efficiency of the server; the server to be tested is repeatedly tested through the automatically adjusted request speed to obtain the target pressure value of the server, whether the request speed of the message reaches the performance limit of the server or not does not need to be manually confirmed, and therefore the purpose of automatically testing the pressure of the server is achieved; meanwhile, the method is beneficial to smoothly detecting the target pressure value of the server, and overcomes the defect that the performance of the server is influenced by artificially and blindly detecting the performance of the server, so that the target pressure value obtained by testing is more accurate, and the accuracy of the obtained target pressure value is further improved.
As shown in fig. 12, in an embodiment, another server stress testing method is provided, which specifically includes the following steps:
(1) the main thread in the performance testing tool generates a request message according to a pre-configured request data model, then updates a data area of the network thread, and receives the request message sent by the main thread through the network thread.
(2) And loading a preset performance index value of the system to be tested, and initializing a system API (application program interface) to establish network connection with the system to be tested so as to send the request message to the system to be tested.
(3) And sending the request message to the system to be tested, and receiving a system response packet returned by the system to be tested.
(4) Performing automatic speed adjustment according to the system response packet, and determining whether to send a request message; if the system is not overloaded or is overloaded, the request speed is adjusted, a request message is generated, and the request message is sent to obtain a system response packet of the system to be tested; and if the request message is not required to be sent, exiting.
In the embodiment, the purpose of automatically adjusting the request speed is realized, and manual adjustment is not needed, so that the pressure test process of the system is simplified, and the pressure test efficiency of the system is improved; the system to be tested is repeatedly tested through the automatically adjusted request speed to obtain the target pressure value of the system, whether the request speed of the message reaches the performance limit of the system or not does not need to be manually confirmed, and therefore the purpose of automatically testing the pressure of the system is achieved.
It should be understood that although the various steps in the flowcharts of fig. 2-9, 11, 12 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-9, 11, and 12 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
As shown in fig. 13, in one embodiment, there is provided a server stress testing apparatus 1300, the apparatus 1300 including: a message sending module 1302, a response value receiving module 1304, a request speed adjusting module 1306, an iterative testing module 1308, and a pressure value obtaining module 1310, where:
a message sending module 1302, configured to generate an initial request message according to the initial request speed, and send the initial request message to a server to be tested; and the server to be tested is used for obtaining a corresponding test response value according to the initial request message.
And a response value receiving module 1304, configured to receive a test response value returned by the server to be tested.
The request speed adjusting module 1306 is configured to adjust the initial request speed according to the preset speed gradient if the test response value is greater than or less than the preset performance index value of the server to be tested, so as to obtain an adjusted request speed.
The repeated testing module 1308 is configured to repeatedly test the server to be tested according to the adjusted request speed until a test response value returned by the server to be tested is equal to a preset performance index value of the server to be tested.
The pressure value obtaining module 1310 is configured to, if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, use the current request speed as the target pressure value of the server to be tested.
In one embodiment, the server pressure testing apparatus 1300 further includes: and an information acquisition module.
The information acquisition module is used for acquiring a preset performance index value and interface information of the server to be tested; loading a preset performance index value of a server to be tested; and establishing network connection with the server to be tested according to the interface information.
In one embodiment, the information acquisition module is further configured to receive a test request for the server to be tested, where the test request is sent by the test platform; and analyzing the test request to obtain a preset performance index value and interface information of the server to be tested.
In one embodiment, the repeated testing module 1308 is further configured to generate a corresponding request message according to the adjusted request speed; sending the request message to a server to be tested, and repeatedly testing the server to be tested; and if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, stopping the test.
In one embodiment, the server pressure testing apparatus 1300 further includes: a performance level determination module.
The performance grade determining module is used for acquiring the weight corresponding to the target pressure value and the comprehensive score corresponding to the preset performance index value; taking the product of the weight and the comprehensive score as the performance score of the server to be tested; and determining the performance grade of the server to be tested according to the corresponding relation between the preset performance score and the performance grade.
In one embodiment, the server pressure testing apparatus 1300 further includes: and a test report generation module.
The test report generation module is used for acquiring the equipment identification number of the server to be tested; generating a pressure test report of the server to be tested according to the target pressure value, the preset performance index value and the performance grade; and storing the pressure test report into a preset database according to the equipment identification number.
In one embodiment, the server pressure testing apparatus 1300 further includes: and a test report pushing module.
The test report pushing module is used for receiving a report query request sent by a terminal; the report inquiry request carries an equipment identification number; acquiring a pressure test report corresponding to the equipment identification number from a preset database; and pushing the pressure test report to the terminal.
In this embodiment, when the test response value obtained by the server to be tested according to the initial request speed is greater than or less than the preset performance index value, the initial request speed is adjusted according to the preset speed gradient, and then the server to be tested is repeatedly tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, and the current request speed is used as the target pressure value of the server to be tested; the purpose of automatically adjusting the request speed is achieved, manual adjustment is not needed, the pressure testing process of the server is simplified, and the pressure testing efficiency of the server is improved; the server to be tested is repeatedly tested through the automatically adjusted request speed to obtain the target pressure value of the server, whether the request speed of the message reaches the performance limit of the server or not does not need to be manually confirmed, and therefore the purpose of automatically testing the pressure of the server is achieved; meanwhile, the method is beneficial to smoothly detecting the target pressure value of the server, and overcomes the defect that the performance of the server is influenced by artificially and blindly detecting the performance of the server, so that the target pressure value obtained by testing is more accurate, and the accuracy of the obtained target pressure value is further improved.
FIG. 14 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the test server 110 in fig. 1. As shown in fig. 14, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the server stress testing method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a server stress testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 14 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the server stress testing apparatus provided in the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 14. The memory of the computer device may store various program modules constituting the server stress testing apparatus, such as a message sending module 1302, a response value receiving module 1304, a request speed adjusting module 1306, a repeated testing module 1308, and a pressure value acquiring module 1310 shown in fig. 13. The computer program constituted by the respective program modules causes the processor to execute the steps in the server stress testing method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 14 may generate an initial request message according to the initial request speed through the message sending module 1302 in the server pressure testing apparatus shown in fig. 13, and send the initial request message to the server to be tested; and the server to be tested is used for obtaining a corresponding test response value according to the initial request message. The computer device may receive a test response value returned by the server under test through the response value receiving module 1304. If the test response value is greater than or less than the preset performance index value of the server to be tested, the computer device may adjust the initial request speed according to the preset speed gradient by using the request speed adjustment module 1306, so as to obtain an adjusted request speed. The computer device may repeatedly test the server to be tested through the repeated testing module 1308 according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, and use the current request speed as the target pressure value of the server to be tested if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested through the pressure value obtaining module 1310.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the server stress testing method described above. Here, the steps of the server stress test method may be steps in the server stress test method of the above embodiments.
In one embodiment, a computer readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of the server stress testing method described above. Here, the steps of the server stress test method may be steps in the server stress test method of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A server stress testing method, comprising:
generating an initial request message according to the initial request speed, and sending the initial request message to a server to be tested; the server to be tested is used for obtaining a corresponding test response value according to the initial request message;
receiving the test response value returned by the server to be tested;
if the test response value is larger than or smaller than a preset performance index value of the server to be tested, adjusting the initial request speed according to a preset speed gradient to obtain an adjusted request speed;
repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested;
and if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, taking the current request speed as the target pressure value of the server to be tested.
2. The method of claim 1, before generating an initial request message at an initial request rate and sending the initial request message to a server to be tested, further comprising:
acquiring a preset performance index value and interface information of the server to be tested;
loading a preset performance index value of the server to be tested;
and establishing network connection with the server to be tested according to the interface information.
3. The method according to claim 2, wherein the obtaining of the preset performance index value and the interface information of the server under test includes:
receiving a test request aiming at the server to be tested and sent by a test platform;
and analyzing the test request to obtain a preset performance index value and interface information of the server to be tested.
4. The method of claim 1, wherein the repeatedly testing the server to be tested according to the adjusted request speed until the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, comprises:
generating a corresponding request message according to the adjusted request speed;
sending the request message to the server to be tested, and repeatedly testing the server to be tested;
and if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested, stopping the test.
5. The method according to any one of claims 1 to 4, further comprising:
acquiring the weight corresponding to the target pressure value and the comprehensive score corresponding to the preset performance index value;
taking the product of the weight and the comprehensive score as the performance score of the server to be tested;
and determining the performance grade of the server to be tested according to the corresponding relation between the preset performance score and the performance grade.
6. The method of claim 5, further comprising:
acquiring an equipment identification number of the server to be tested;
generating a pressure test report of the server to be tested according to the target pressure value, the preset performance index value and the performance grade;
and storing the pressure test report into a preset database according to the equipment identification number.
7. The method of claim 6, further comprising:
receiving a report query request sent by a terminal; the report inquiry request carries an equipment identification number;
acquiring a pressure test report corresponding to the equipment identification number from the preset database;
and pushing the stress test report to the terminal.
8. A server stress testing apparatus, the apparatus comprising:
the message sending module is used for generating an initial request message according to the initial request speed and sending the initial request message to a server to be tested; the server to be tested is used for obtaining a corresponding test response value according to the initial request message;
a response value receiving module, configured to receive the test response value returned by the server to be tested;
a request speed adjusting module, configured to adjust the initial request speed according to a preset speed gradient if the test response value is greater than or less than a preset performance index value of the server to be tested, so as to obtain an adjusted request speed;
the repeated testing module is used for repeatedly testing the server to be tested according to the adjusted request speed until a testing response value returned by the server to be tested is equal to a preset performance index value of the server to be tested;
and the pressure value acquisition module is used for taking the current request speed as the target pressure value of the server to be tested if the test response value returned by the server to be tested is equal to the preset performance index value of the server to be tested.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
CN201911300899.8A 2019-12-17 2019-12-17 Server stress testing method and device and computer readable storage medium Active CN111078478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911300899.8A CN111078478B (en) 2019-12-17 2019-12-17 Server stress testing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911300899.8A CN111078478B (en) 2019-12-17 2019-12-17 Server stress testing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111078478A true CN111078478A (en) 2020-04-28
CN111078478B CN111078478B (en) 2022-10-25

Family

ID=70315131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911300899.8A Active CN111078478B (en) 2019-12-17 2019-12-17 Server stress testing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111078478B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350894A (en) * 2020-11-05 2021-02-09 科大讯飞股份有限公司 Performance test method, device, equipment and storage medium of service node
CN113342589A (en) * 2021-08-05 2021-09-03 北京金堤科技有限公司 Method and device for pressure testing of server
CN114490374A (en) * 2022-01-21 2022-05-13 阿里巴巴(中国)有限公司 Applied pressure test method, electronic device, storage medium, and program product
CN114546852A (en) * 2022-02-21 2022-05-27 北京百度网讯科技有限公司 Performance test method and device, electronic equipment and storage medium
CN115827498A (en) * 2023-02-20 2023-03-21 创云融达信息技术(天津)股份有限公司 Pressure test distribution method and system for software program
CN116483718A (en) * 2023-04-25 2023-07-25 无锡市软测认证有限公司 System and method for realizing large-scale pressure test by utilizing big data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9097341B2 (en) * 2012-01-26 2015-08-04 Caterpillar Inc. Brake system having a brake capacity test mode for a machine having a hydrostatic drivetrain
CN107832206A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Method of testing, device, computer-readable recording medium and computer equipment
CN108874637A (en) * 2017-05-09 2018-11-23 北京京东尚科信息技术有限公司 A kind of method of pressure test, system, electronic equipment and readable storage medium storing program for executing
CN109542712A (en) * 2018-11-02 2019-03-29 平安科技(深圳)有限公司 Server stress test method, device, computer equipment and storage medium
CN110109810A (en) * 2019-04-09 2019-08-09 上海易点时空网络有限公司 Cluster pressure surveys the method and device that capacity determines
CN110245078A (en) * 2019-05-24 2019-09-17 平安国际智慧城市科技股份有限公司 A kind of method for testing pressure of software, device, storage medium and server
CN110262959A (en) * 2019-05-09 2019-09-20 五八有限公司 Underlying services method for testing pressure, device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9097341B2 (en) * 2012-01-26 2015-08-04 Caterpillar Inc. Brake system having a brake capacity test mode for a machine having a hydrostatic drivetrain
CN108874637A (en) * 2017-05-09 2018-11-23 北京京东尚科信息技术有限公司 A kind of method of pressure test, system, electronic equipment and readable storage medium storing program for executing
CN107832206A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Method of testing, device, computer-readable recording medium and computer equipment
CN109542712A (en) * 2018-11-02 2019-03-29 平安科技(深圳)有限公司 Server stress test method, device, computer equipment and storage medium
CN110109810A (en) * 2019-04-09 2019-08-09 上海易点时空网络有限公司 Cluster pressure surveys the method and device that capacity determines
CN110262959A (en) * 2019-05-09 2019-09-20 五八有限公司 Underlying services method for testing pressure, device, electronic equipment and storage medium
CN110245078A (en) * 2019-05-24 2019-09-17 平安国际智慧城市科技股份有限公司 A kind of method for testing pressure of software, device, storage medium and server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350894A (en) * 2020-11-05 2021-02-09 科大讯飞股份有限公司 Performance test method, device, equipment and storage medium of service node
CN113342589A (en) * 2021-08-05 2021-09-03 北京金堤科技有限公司 Method and device for pressure testing of server
CN113342589B (en) * 2021-08-05 2021-09-28 北京金堤科技有限公司 Method and device for pressure testing of server
CN114490374A (en) * 2022-01-21 2022-05-13 阿里巴巴(中国)有限公司 Applied pressure test method, electronic device, storage medium, and program product
CN114546852A (en) * 2022-02-21 2022-05-27 北京百度网讯科技有限公司 Performance test method and device, electronic equipment and storage medium
CN114546852B (en) * 2022-02-21 2024-04-09 北京百度网讯科技有限公司 Performance test method and device, electronic equipment and storage medium
CN115827498A (en) * 2023-02-20 2023-03-21 创云融达信息技术(天津)股份有限公司 Pressure test distribution method and system for software program
CN116483718A (en) * 2023-04-25 2023-07-25 无锡市软测认证有限公司 System and method for realizing large-scale pressure test by utilizing big data
CN116483718B (en) * 2023-04-25 2023-11-14 无锡市软测认证有限公司 System and method for realizing large-scale pressure test by utilizing big data

Also Published As

Publication number Publication date
CN111078478B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN111078478B (en) Server stress testing method and device and computer readable storage medium
CN109542712B (en) Server pressure testing method and device, computer equipment and storage medium
CN111143163B (en) Data monitoring method, device, computer equipment and storage medium
CN108919776B (en) Fault assessment method and terminal
CN112671566B (en) Data processing method, apparatus, computer device and readable storage medium
CN110618924A (en) Link pressure testing method of web application system
CN110855477A (en) Link log monitoring method and device, computer equipment and storage medium
CN112486878A (en) Vehicle data acquisition and uploading method, device, equipment, storage medium and system
CN110912786B (en) Gateway pressure testing method and device, computer equipment and storage medium
CN110912768A (en) Grey correlation and fuzzy evaluation method and system for multi-path transmission network performance
CN110166498B (en) User category determination method and device, computer equipment and storage medium
WO2020233064A1 (en) Function test-based factor influence degree determination method and apparatus, and terminal device
CN110930254A (en) Data processing method, device, terminal and medium based on block chain
CN108776642B (en) Test report generation method and device, computer equipment and storage medium
CN113067802B (en) User identification method, device, equipment and computer readable storage medium
CN108304289B (en) Terminal fingerprint test method and device, computer equipment and storage medium
CN105471674A (en) Method and system for testing performance of server
CN112862455A (en) Test execution work order generation method and device, computer equipment and storage medium
CN109471852B (en) Medical database establishing method, medical database establishing device, computer equipment and storage medium
CN113704871B (en) Method and device for determining wheel bending fatigue, terminal equipment and medium
CN111708649B (en) Attack detection method and system for service application system
CN113038283A (en) Video recommendation method and device and storage medium
CN111752786A (en) Data storage method, data summarization method, equipment and medium in pressure test process
CN112199247B (en) Method and device for checking Docker container process activity in non-service state
CN114286378A (en) System and method for testing network performance of ad hoc network wireless communication equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40021996

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant