CN110515782A - Test method, test device and the test macro of server - Google Patents
Test method, test device and the test macro of server Download PDFInfo
- Publication number
- CN110515782A CN110515782A CN201910613990.9A CN201910613990A CN110515782A CN 110515782 A CN110515782 A CN 110515782A CN 201910613990 A CN201910613990 A CN 201910613990A CN 110515782 A CN110515782 A CN 110515782A
- Authority
- CN
- China
- Prior art keywords
- test
- server
- connection
- tcp long
- lead
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 312
- 238000010998 test method Methods 0.000 title claims abstract description 32
- 238000000034 method Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000012544 monitoring process Methods 0.000 description 28
- 230000006872 improvement Effects 0.000 description 8
- 238000012423 maintenance Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000013024 troubleshooting Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000000528 statistical test Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2294—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
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)
- Debugging And Monitoring (AREA)
Abstract
The present embodiments relate to the field of test technology, disclose the test method, test device and test macro of a kind of server.The test method of server includes: according to the test parameter for including at least test connection number, and control test lead and server-side to be measured establish the TCP long connection that number is the test connection number;Maintain each TCP long connection between the test lead and the server-side;According to the first performance index of the server-side of acquisition, determine whether the server-side passes through test.In the present invention, stable service can be provided to server-side and is judged, realizes and the test of the service ability of TCP long connection is provided server-side under the scene that server-side keeps that the concurrent number of TCP long connection is test connection number.
Description
Technical field
The present embodiments relate to the field of test technology, in particular to a kind of test method of server, test device and
Test macro.
Background technique
As the fast development of Internet service is more and more applied to keep the timeliness of service in client
It is communicated by the way of TCP long connection between server.TCP long connection be it is a kind of first establish communication connection, connection is built
It is not turned off after vertical, so as to repeat the connection type that message sends and receives, ensure that the timeliness of service.
At least there are the following problems in the prior art for inventor's discovery: for server, in TCP long connection high concurrent
Business scenario under, server if more than can tolerance range, then will lead to servers go down, clothes can not be provided for user
Business.
Summary of the invention
The test method, test device and test macro for being designed to provide a kind of server of embodiment of the present invention,
Stable clothes can be provided to server-side under the scene that server-side keeps that the concurrent number of TCP long connection is test connection number
Business is judged, is realized and is provided server-side the test of the service ability of TCP long connection.
In order to solve the above technical problems, embodiments of the present invention provide a kind of test method of server, comprising: root
According to the test parameter for including at least test connection number, control test lead and server-side to be measured establish number as test connection
Several TCP long connections;Maintain each TCP long connection between the test lead and the server-side;According to acquisition
The first performance index of server-side, determines whether the server-side passes through test.
Embodiments of the present invention additionally provide a kind of test device, comprising: at least one processor;And at least
The memory of one processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instruction
It is executed by least one processor, so that at least one processor is able to carry out the test method of above-mentioned server.
Embodiments of the present invention additionally provide a kind of test macro, comprising: above-mentioned test device, and be separately connected
In the test lead and server-side of test device.
Embodiment of the present invention in terms of existing technologies, according to the test connection number in preset test parameter, is controlled
It is to test the TCP long connection of connection number, and during the test, remain each that number is established between test lead processed and server-side
TCP long connection maintains the concurrent connection number of the TCP long connection of server-side so as to avoid TCP long connection closed;Then,
The first performance index of server-side is obtained, and according to the first performance index, judges whether server-side passes through test, that is, is servicing
Can it be to test under the scene of connection number that end, which keeps the concurrent number of TCP long connection, provide stable service to server-side and judge,
It realizes and the test of the service ability of TCP long connection is provided server-side.
In addition, increasing the test connection number when determining that the server-side passes through test according to predetermined manner, controlling institute
It states test lead and the server-side establishes the TCP long connection that number is the test connection number after increasing, and root again
According to the first performance index of the server-side of acquisition, determine whether the server-side passes through test;Determining the server-side
When not passing through test, using the last test connection number by test as the access upper limit value of the server-side.This reality
It applies in mode, is capable of the access upper limit value of the TCP long connection at testing service end, so as to accurately measure server-side to TCP long
The load capacity of connection.
In addition, test parameter further includes incremental steps;Connection number is tested according to predetermined manner increase, specifically: it calculates and surveys
Try connection number and incremental steps and, as the test connection number after increase.Present embodiment offer increases according to predetermined manner
Test a kind of specific implementation of connection number.
In addition, the server-side includes multiple servers;The control test lead and the server-side establish number as institute
State the TCP long connection of test connection number, specifically: by load-balancing device, control test lead with it is each in the server-side
The server establishes the TCP long connection that number is the test connection number respectively.Present embodiments provide for including
A kind of specific implementation that the server-side of multiple servers is tested.
In addition, controlling each server point in test lead and the server-side by load-balancing device described
It does not establish after the TCP long connection that number is the test connection number, further includes: set according to the load balancing of acquisition
The second standby performance indicator, it is determined whether stop test.In present embodiment, to the second performance indicator of load-balancing device into
Row monitoring, impacts the test of server-side so as to avoid load-balancing device.
In addition, including multiple test machines in the test lead;The control test lead establishes number with the server-side and is
The TCP long connection of the test connection number, specifically: the test machine and the server-side controlled in the test lead is established
Number is the TCP long connection of the test connection number.In present embodiment, pass through the test lead pair including multiple test machines
Server-side is tested.
In addition, it is the test that the test machine and the server-side in the control test lead, which establish number,
After the TCP long connection of connection number, further includes: according to the third performance indicator of the test machine of acquisition, it is determined whether
Stop test.In present embodiment, the third performance indicator of the test machine in test lead is monitored, so as to avoid test
Machine impacts the test of server-side.
In addition, issuing preset alarm signal when determining stopping test.In present embodiment, stop test determining
When, maintenance personnel is notified in time by issuing warning signal, to carry out troubleshooting in time.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is that the box of the test macro of the test method application of the server in first embodiment according to the present invention shows
It is intended to;
Fig. 2 is the specific flow chart of the test method of the server in first embodiment according to the present invention;
Fig. 3 is the block diagram of the test macro in first embodiment according to the present invention;
Fig. 4 is the specific flow chart of the test method of the server in second embodiment according to the present invention;
Fig. 5 is the specific flow chart of the test method of the server in third embodiment according to the present invention;
Fig. 6 is that the box of the test macro of the test method application of the server in third embodiment according to the present invention shows
It is intended to;
Fig. 7 is the specific flow chart of the test method of the server in the 4th embodiment according to the present invention;
Fig. 8 is that the box of the test macro of the test method application of the server in the 4th embodiment according to the present invention shows
It is intended to.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of test methods of server, applied to the test dress in test macro
It sets, test device can test the load capacity of the TCP long of server-side connection, and test device can be equipped with survey for one
The test client of trial work tool;Referring to FIG. 1, test macro includes: test device 1, the test lead for being separately connected test device 1
2 with server-side 3.
The detailed process of the test method of the server of present embodiment is as shown in Figure 2.
Step 101, it is established according to the test parameter for including at least test connection number, control test lead and server-side to be measured
Number is to test the TCP long connection of connection number.
Specifically, user can be directed to different test scenes, different test parameters is set, test parameter at least wraps
Test connection number is included, such as the server-side of different user amount, test connection number can be set according to user's magnitude.Test
Device controls test lead and server-side establishes TCP long connection, that is, pass through test lead mould according to the test connection number in test parameter
The quasi- TCP long connection with server-side, the number of TCP long connection are test connection number;Test lead and server-side establish TCP long connection
Mode details are not described herein.
In one example, test parameter can be the form of Excel file, and test device can be read when starting test
Take the test parameter for being stored in the Excel file of predeterminated position.
Step 102, each TCP long connection between test lead and server-side is maintained.
Specifically, during the test, test device maintained using TCP heartbeat mechanism test lead and server-side it
Between each TCP long connection, specifically, by taking any TCP long connection as an example, test device controls test lead according to predetermined period at this
Heartbeat detection message is sent to server-side on the corresponding channel of TCP long connection, to maintain the TCP long connection;For example, in test lead
Thread task queue in add the timed task of the TCP long connection, periodically judge whether to call idle time-out, if time-out
Time out event is triggered, heartbeat detection message is sent to server-side on the corresponding channel of the TCP long connection, to realize heartbeat
Detection messages are regularly sent, and maintain the TCP long connection.
Step 103, according to the first performance index of the server-side of acquisition, determine whether server-side passes through test.
Specifically, be deployed with monitoring instrument in server-side, can with the first performance index of timing acquiring server-side, first
Performance indicator is, for example, cpu busy percentage, memory usage etc..In one example, referring to FIG. 3, test macro further includes prison
Server 4, the first performance index of the monitoring instrument timing acquiring server-side in server-side are controlled, and is sent to monitoring server,
Monitoring server receives the first performance index for the server-side that monitoring instrument is sent, and the first performance index at statistical fractals end,
Then the time-tendency graph of first performance index is shown in test device.In the present embodiment, test device passes through monitoring service
Device determines whether server-side passes through test.By taking first performance index is cpu busy percentage as an example, monitoring server judgement is received
Cpu busy percentage whether be less than preset threshold value, if the cpu busy percentage be less than preset threshold value, illustrate that server-side is being kept
The concurrent number of TCP long connection is to test under the scene of connection number, still is able to provide stable service, determines that server-side passes through survey
Examination, and send test device for the test result and show;If the cpu busy percentage is greater than or equal to preset threshold value,
Illustrate that server-side in the case where keeping the scene that the concurrent number of TCP long connection is test connection number, can not provide stable service, it may
Meeting delay machine, server-side does not pass through test, and sends test device for the test result and show.
In one example, test parameter further includes the testing time;It is test that server-side, which keeps the concurrent number of TCP long connection,
Connection number then illustrates that server-side passes through if the first performance index of server-side is less than preset threshold value within the testing time
Test;If the first performance index of server-side has been more than preset threshold value within the testing time, then illustrate that server-side does not pass through survey
Examination.
Present embodiment in terms of existing technologies, according to the test connection number in preset test parameter, survey by control
It is to test the TCP long connection of connection number, and during the test, maintain each TCP long that number is established between examination end and server-side
Connection, so as to avoid TCP long connection closed, that is, maintains the concurrent connection number of the TCP long connection of server-side;Then, it obtains
The first performance index of server-side, and according to the first performance index, judge whether server-side passes through test, i.e., is protected in server-side
Can it be to test under the scene of connection number that the concurrent number of TCP long connection, which be held, provide stable service to server-side and judge, realize
The test of the service ability of TCP long connection is provided server-side.
Second embodiment of the present invention is related to a kind of test method of server, and present embodiment is in the first embodiment party
Improvement on the basis of formula, mainly thes improvement is that: the access upper limit value that can be connected on the TCP at testing service end.
The detailed process of the test method of the server of present embodiment is as shown in Figure 4.
Wherein, step 201, step 202 are roughly the same with step 101, step 102, and details are not described herein, main difference it
Be in, increase step 202, step 205, it is specific as follows:
Step 203, according to the first performance index of the server-side of acquisition, determine whether server-side passes through test.If so,
Enter step 204;If it is not, then entering step 205.
Specifically, roughly the same with step 103 in first embodiment, details are not described herein.
Step 204, according to predetermined manner increase test connection number, after control test lead establishes number with server-side to increase
Test connection number TCP long connection.
Specifically, test device is according to predetermined manner increase test connection number, in one example, test parameter is also wrapped
Include incremental steps;Test device can calculate test connection number and incremental steps and, as the test connection number after increase.It lifts
Example for, last time by test test connection number be A, incremental steps B, then increase after test connection number be C;Then
Test device control control test lead and server-side establish the TCP long connection that number is the test connection number after increasing, specific side
Formula can be directly newly-built B TCP long connection, or close the A TCP long connection established before, control test lead and service
C TCP long connection is created between end, is then return to step 203, again according to the first performance index of the server-side of acquisition, really
Determine whether server-side passes through test, however, it is determined that by test, then execute this step again;Otherwise then follow the steps 205.
It should be noted that controlling control test lead to establish number with server-side in test device is that the test after increasing connects
Each TCP long connection after connecing several TCP long connections, still between maintenance test lead and server-side.
Step 205, using the last test connection number by test as the access upper limit value of server-side.
Specifically, then explanation is in this test, server-side if in step 203, determining that server-side does not pass through test
In the case where keeping the concurrent number of TCP long connection to be to test the scene of connection number, stable service can not be provided, then passed through the last time
Access upper limit value of the test connection number of test as server-side.
Present embodiment is capable of the access upper limit of the TCP long connection at testing service end for first embodiment
Value, so as to accurately measure server-side to the load capacity of TCP long connection.
Third embodiment of the invention is related to a kind of test method of server, and present embodiment is in first embodiment
On the basis of improvement, mainly the improvement is that: to include multiple servers server-side test.
The detailed process of the test method of the server of present embodiment is as shown in Figure 5.
Step 301, it by load-balancing device, controls test lead and is built respectively with each server in the server-side
Vertical number is the TCP long connection of the test connection number.
Specifically, user can be directed to different test scenes, different test parameters is set, test parameter at least wraps
Test connection number is included, such as the server-side of different user amount, test connection number can be set according to user's magnitude.To hundred
Ten thousand magnitudes, ten million magnitude user volume for, generally can be by including that the server-side of multiple servers provide service for user
Device, referring to FIG. 6, test macro further includes load-balancing device 5, in server-side 3 includes multiple servers 31, load balancing is set
The instruction of the standby 5 newly-built TCP long connections issued for transmitted test end 2 is to corresponding server 31.It is carried out to the server-side
When test, as the server in server-side is tested, the instruction for the newly-built TCP long connection that test lead is sent is equal to load
Weigh equipment, and the load-balancing device instruction is sent to corresponding server, is connected with creating TCP long between test lead and server
It connects.Specifically, including the IP address of each server in test parameter, for a each server, test lead is sent to load
It include the IP address of server in the instruction of the newly-built TCP long connection of equalizing equipment, so that load-balancing device can refer to this
Order is forwarded to corresponding server, so that it is to test the TCP long connection of connection number that test lead, which establishes number with corresponding server,.
Step 302, each TCP long connection between test lead and each server is maintained.
Specifically, it is roughly the same with step 102 in first embodiment, it is in place of main difference: is maintained in this step
Each TCP long connection between each server in test lead and server-side.
Step 304, according to the second performance indicator of the load-balancing device of acquisition, it is determined whether stop test.
Specifically, monitoring instrument is deployed on load-balancing device, it can be with the second of timing acquiring load-balancing device
Performance indicator, the second performance indicator are, for example, concurrent connection number, newly-built connection number etc..In one example, monitoring instrument timing
The second performance indicator of load-balancing device is acquired, and is sent to monitoring server, monitoring server balancing received load equipment
The second performance indicator, and count the second performance indicator of load-balancing device, the second performance then shown in test device
The time-tendency graph of index.Test device can judge whether load-balancing device is in overburden shape by monitoring server
State;Specifically, by taking the second performance indicator is newly-built connection number as an example, newly-built connection number of the monitoring server in load-balancing device
When greater than preset newly-built connection threshold value, determine that load-balancing device is in overload status, test device control at this time stops
Test;Monitoring server determines when the newly-built connection number of load-balancing device is less than or equal to preset newly-built connection threshold value
Load-balancing device is in normal condition, and test device continues to test without being operated at this time.
In one example, monitoring server issues preset when determining that load-balancing device is in overload status
Alarm signal notifies maintenance personnel in time by issuing warning signal, to carry out troubleshooting in time;For example, alarm signal is
Default text, then preset mailbox is sent in the form of mail by monitoring server for the text, or in the form of short message
It is sent to preset number;Alarm signal is default voice, then directly plays default voice by public address system.In addition, in step
In 304, if judge that any server does not pass through test, it again may be by monitoring server and issue preset alarm signal.
Step 304, according to the first performance index of each server of acquisition, determine whether each server passes through test.
Specifically, it is roughly the same with step 103 in first embodiment, it is in place of main difference: right in the present embodiment
Multiple servers in server-side are monitored respectively, to judge whether each server passes through test.
Present embodiment can survey the server-side for including multiple servers for first embodiment
Examination;Also, the second performance indicator of load-balancing device is monitored, so as to avoid load-balancing device to each server
Test impact.Present embodiment is also used as improvement on the basis of second embodiment, can achieve same skill
Art effect.
Four embodiment of the invention is related to a kind of test method of server, and present embodiment is in first embodiment
On the basis of improvement, mainly the improvement is that: the test machine in test lead be monitored.
The detailed process of the test method of the server of present embodiment is as shown in Figure 7.
Sub-step 401, controlling test machine and server-side in test lead and establishing number is to test the TCP long company of connection number
It connects.
Specifically, user can be directed to different test scenes, different test parameters is set, test parameter at least wraps
Test connection number is included, such as the server-side of different user amount, test connection number can be set according to user's magnitude.In order to
The concurrent test scene of TCP long connection for simulating million magnitudes, ten million magnitude, can set multiple test machines in test lead,
Referring to FIG. 8, including multiple test machines 21 in test lead 2.Test device is according to connection number is tested in test parameter, to test
Multiple test machines in end are successively disposed, and are test connection number to control multiple test machines and server-side to establish number
TCP long connection.
Step 402, each TCP long connection between test lead and server-side is maintained.
Specifically, it is roughly the same with step 102 in first embodiment, it is in place of main difference: is maintained in this step
Each TCP long connection between each test machine and server-side.
Step 403, according to the third performance indicator of the test machine of acquisition, it is determined whether stop test.
Specifically, being deployed with monitoring instrument on every test machine, can be referred to the third performance of timing acquiring test machine
Mark, third performance indicator is, for example, response time, issued transaction amount per second (TransactionPerSecond, abbreviation TPS) etc..
In one example, by taking any one test machine as an example, the third performance indicator of the monitoring instrument timing acquiring test machine, concurrently
It is sent to preset monitoring server, monitoring server receives the third performance indicator of test machine, and the third of statistical test machine
Energy index, then shows the time-tendency graph of the third performance indicator of the test set in test device.Test device passes through prison
Control server judges whether test machine is in overload status;Specifically, being that issued transaction amount per second is with third performance indicator
Example, indicates the quantity of the instruction of test machine processing per second, and monitoring server is greater than default in the issued transaction amount per second of test machine
Treating capacity threshold value when, discriminating test machine is in overload status, and test device control stops test;Monitoring server is being tested
When the issued transaction amount per second of machine is less than or equal to preset treating capacity threshold value, discriminating test machine is in normal condition, surveys at this time
Trial assembly is set without being operated, and continues to test.
In one example, monitoring server issues preset alarm signal when discriminating test machine is in overload status
Number, maintenance personnel is notified in time by issuing warning signal, to carry out troubleshooting in time;For example, alarm signal is default text
Word, then preset mailbox is sent in the form of mail by monitoring server for the text, or is sent in the form of short message
Preset number;Alarm signal is default voice, then directly plays default voice by public address system.In addition, in step 404,
If judge that server-side does not pass through test, it again may be by monitoring server and issue preset alarm signal.
Step 404, according to the first performance index of the server-side of acquisition, determine whether server-side passes through test.
Specifically, roughly the same with step 103 in first embodiment, details are not described herein.
Present embodiment carries out the third performance indicator of the test machine in test lead for first embodiment
Monitoring, impacts the test of server-side so as to avoid test machine.Present embodiment is also used as in 3rd embodiment
On the basis of improvement, can achieve same technical effect.
5th embodiment of the invention is related to a kind of test device, and test device can be to the TCP long of server-side connection
Load capacity is tested, and test device can be equipped with the test client of testing tool for one.
Test device includes: at least one processor in the present embodiment;And connect at least one processor communication
Memory;Wherein, memory is stored with the instruction that can be executed by least one processor, and instruction is held by least one processor
Row, so that at least one processor is able to carry out the test method of the server of any one of first to fourth embodiment.
Wherein, memory is connected with processor using bus mode, and bus may include the bus of any number of interconnection
And bridge, bus is by one or more processors together with the various circuit connections of memory.Bus can also will be such as peripheral
Together with various other circuit connections of management circuit or the like, these are all well known in the art for equipment, voltage-stablizer
, therefore, it will not be further described herein.Bus interface provides interface between bus and transceiver.Transceiver
Can be an element, be also possible to multiple element, such as multiple receivers and transmitter, provide for over a transmission medium with
The unit of various other device communications.The data handled through processor are transmitted on the radio medium by antenna, further,
Antenna also receives data and transfers data to processor.
Processor is responsible for managing bus and common processing, can also provide various functions, including periodically, peripheral interface,
Voltage adjusting, power management and other control functions.And memory can be used for storage processor and execute operation when institute
The data used.
Sixth embodiment of the invention is related to a kind of test macro, referring to FIG. 1, test macro includes at least: test
Device 1, the server-side 2 for being separately connected test device 1 and server-side 3, test device 1 are the test device in the 5th embodiment.
Since first to fourth embodiment is corresponded to each other with the present embodiment, the present embodiment can be implemented with first to fourth
Example is worked in coordination implementation.The relevant technical details mentioned in first to fourth embodiment in the present embodiment still effectively, the
One into fourth embodiment the attainable technical effect of institute similarly may be implemented in the present embodiment, in order to reduce repetition, this
In repeat no more.Correspondingly, the relevant technical details mentioned in the present embodiment are also applicable in first to fourth embodiment.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (10)
1. a kind of test method of server characterized by comprising
According to the test parameter for including at least test connection number, control test lead and server-side to be measured establish number as the survey
Try the TCP long connection of connection number;
Maintain each TCP long connection between the test lead and the server-side;
According to the first performance index of the server-side of acquisition, determine whether the server-side passes through test.
2. the test method of server according to claim 1, which is characterized in that determining that the server-side passes through test
When, increase the test connection number according to predetermined manner, controlling the test lead and establishing number with the server-side is after increasing
The test connection number the TCP long connection, and the first performance index of the server-side again according to acquisition determines
Whether the server-side passes through test;
When determining that the server-side does not pass through test, using the last test connection number by test as the service
The access upper limit value at end.
3. the test method of server according to claim 2, which is characterized in that the test parameter further includes being incremented by step
It is long;
It is described to increase the test connection number according to predetermined manner, specifically:
Calculate it is described test connection number and the incremental steps and, as the test connection number after increase.
4. the test method of server according to claim 1, which is characterized in that the server-side includes multiple services
Device;
The control test lead and the server-side establish the TCP long connection that number is the test connection number, specifically:
By load-balancing device, it is described for controlling each server in test lead and the server-side and establishing number respectively
Test the TCP long connection of connection number.
5. the test method of server according to claim 4, which is characterized in that described by load-balancing device,
Control test lead establishes the TCP long that number is the test connection number with each server in the server-side respectively
After connection, further includes:
According to the second performance indicator of the load-balancing device of acquisition, it is determined whether stop test.
6. the test method of server according to claim 1, which is characterized in that include multiple tests in the test lead
Machine;
The control test lead and the server-side establish the TCP long connection that number is the test connection number, specifically:
It controls the test machine and the server-side in the test lead and establishes the TCP that number is the test connection number
Long connection.
7. the test method of server according to claim 6, which is characterized in that in the control test lead
The test machine and the server-side are established after the TCP long connection that number is the test connection number, further includes:
According to the third performance indicator of the test machine of acquisition, it is determined whether stop test.
8. the test method of the server according to claim 5 or 7, which is characterized in that when determining stopping test, issue
Preset alarm signal.
9. a kind of test device characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out the test of server described in any item of the claim 1 to 8
Method.
10. a kind of test macro characterized by comprising test device as claimed in claim 9, and it is connected to institute
State the test lead and server-side of test device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910613990.9A CN110515782A (en) | 2019-07-09 | 2019-07-09 | Test method, test device and the test macro of server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910613990.9A CN110515782A (en) | 2019-07-09 | 2019-07-09 | Test method, test device and the test macro of server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110515782A true CN110515782A (en) | 2019-11-29 |
Family
ID=68623611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910613990.9A Pending CN110515782A (en) | 2019-07-09 | 2019-07-09 | Test method, test device and the test macro of server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110515782A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111639014A (en) * | 2020-05-14 | 2020-09-08 | 深圳市筑泰防务智能科技有限公司 | Test method and device for simulating multiple terminals to test server, terminal and readable storage medium |
CN114500391A (en) * | 2021-12-28 | 2022-05-13 | 上海弘积信息科技有限公司 | Method for dealing with instantaneous overlarge flow |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102480392A (en) * | 2010-11-23 | 2012-05-30 | 中兴通讯股份有限公司 | Performance test device and working method thereof |
CN103138995A (en) * | 2011-11-24 | 2013-06-05 | 中兴通讯股份有限公司 | Method and device for server performance test |
CN106201794A (en) * | 2016-06-27 | 2016-12-07 | 北京奇虎科技有限公司 | The detection method of a kind of server and device |
CN107070752A (en) * | 2017-04-25 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | A kind of method of testing and test system of long connection capacity |
CN109542712A (en) * | 2018-11-02 | 2019-03-29 | 平安科技(深圳)有限公司 | Server stress test method, device, computer equipment and storage medium |
-
2019
- 2019-07-09 CN CN201910613990.9A patent/CN110515782A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102480392A (en) * | 2010-11-23 | 2012-05-30 | 中兴通讯股份有限公司 | Performance test device and working method thereof |
CN103138995A (en) * | 2011-11-24 | 2013-06-05 | 中兴通讯股份有限公司 | Method and device for server performance test |
CN106201794A (en) * | 2016-06-27 | 2016-12-07 | 北京奇虎科技有限公司 | The detection method of a kind of server and device |
CN107070752A (en) * | 2017-04-25 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | A kind of method of testing and test system of long connection capacity |
CN109542712A (en) * | 2018-11-02 | 2019-03-29 | 平安科技(深圳)有限公司 | Server stress test method, device, computer equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111639014A (en) * | 2020-05-14 | 2020-09-08 | 深圳市筑泰防务智能科技有限公司 | Test method and device for simulating multiple terminals to test server, terminal and readable storage medium |
CN114500391A (en) * | 2021-12-28 | 2022-05-13 | 上海弘积信息科技有限公司 | Method for dealing with instantaneous overlarge flow |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8989002B2 (en) | System and method for controlling threshold testing within a network | |
CN101997717B (en) | Analysing communication performance of IED | |
EP2903213B1 (en) | Throughput test method and apparatus | |
CN106034051B (en) | Network monitoring data processing method and network monitoring data processing unit | |
EP2713270A1 (en) | Resource scheduling method and device | |
CN106302017B (en) | The small capaciated flow network velocity-measuring system of high concurrent and method | |
CN102404170B (en) | Detection method, device and system of message loss | |
CN101145977B (en) | A QoS monitoring system and its measuring method of IP data network | |
EP3682595B1 (en) | Obtaining local area network diagnostic test results | |
US7656796B1 (en) | Class-based detection of microcongestion on QoS-enabled links | |
CN110515782A (en) | Test method, test device and the test macro of server | |
CN106656533A (en) | Method and device for monitoring load processing of cluster system | |
CN109992473A (en) | Monitoring method, device, equipment and the storage medium of application system | |
CN105247834B (en) | The distribution method of Internet resources, composer and manager in virtual network function | |
CN108173672A (en) | The method and apparatus for detecting failure | |
CN107948157A (en) | A kind of message processing method and device | |
CN115174432A (en) | RDMA (remote direct memory Access) network state monitoring method, device, equipment and readable storage medium | |
CN117221085A (en) | Network fault early warning method and device, electronic equipment and storage medium | |
CN110460486A (en) | The monitoring method and system of service node | |
CN109963292A (en) | Complain method, apparatus, electronic equipment and the storage medium of prediction | |
US11777785B2 (en) | Alert throttling | |
US8655969B2 (en) | Statistics reporting in a network test system | |
US5778172A (en) | Enhanced real-time topology analysis system or high speed networks | |
CN112637055A (en) | Multi-link aggregation method, system and storage medium based on VPN tunnel | |
CN109995618A (en) | Network Survivability monitoring method, device, equipment and computer readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191129 |
|
RJ01 | Rejection of invention patent application after publication |