CN109783284A - Information acquisition method, system and server, computer readable storage medium - Google Patents
Information acquisition method, system and server, computer readable storage medium Download PDFInfo
- Publication number
- CN109783284A CN109783284A CN201811536858.4A CN201811536858A CN109783284A CN 109783284 A CN109783284 A CN 109783284A CN 201811536858 A CN201811536858 A CN 201811536858A CN 109783284 A CN109783284 A CN 109783284A
- Authority
- CN
- China
- Prior art keywords
- information
- destination server
- hardware resource
- script
- performance test
- 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
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000011056 performance test Methods 0.000 claims abstract description 85
- 238000012360 testing method Methods 0.000 claims abstract description 32
- 238000009434 installation Methods 0.000 claims description 18
- 238000004458 analytical method Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012217 deletion Methods 0.000 claims description 8
- 230000037430 deletion Effects 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 7
- 230000006870 function Effects 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention provides a kind of information acquisition method, system and servers, computer readable storage medium.The embodiment of the present invention passes through before being tested for the property to destination server, enabled instruction is sent to destination server, start the performance test to destination server, every specified time interval, acquire the performance test information of destination server and hardware resource use information that snoop agents script obtains simultaneously, the hardware resource use information of destination server and performance test information are associated according to acquisition time, obtain related information, utilize the hardware resource use information of the snoop agents script acquisition destination server in destination server, and corresponding hardware resource use information and performance test are believed, testing service device is set to directly obtain relevant hardware resource use information and performance test information, it is convenient and efficient, it is high-efficient, it solves to a certain extent and obtains information relevant to the performance bottleneck of destination server in the prior art The problem of low efficiency.
Description
Technical field
This programme is related to field of communication technology more particularly to a kind of information acquisition method, system and server, computer can
Read storage medium.
Background technique
Performance test is to simulate a variety of normal, peak values and abnormal load conditions by the testing tool of automation come to being
The performance indexes of system is tested.Performance test is most commonly that pressure test.
When being tested for the property to destination server, the hardware resource service condition of monitoring objective server is needed, with
Just find and position the performance bottleneck of destination server.Currently, if the hardware of destination server provides when obtaining performance test
Source service condition needs to log in destination server, checks that the instantaneous hardware resource of destination server uses feelings using specific command
Condition.As it can be seen that it is inconvenient to obtain hardware resource use information of the destination server in performance test.Also, in destination server
The performance test information and hardware resource use information of storage be it is mutually indepedent, irrelevant, in this way, it is also necessary to pass through other
Operation, by performance test information in destination server and the related binding of its corresponding hardware resource use information progress, so as to calmly
The performance bottleneck of position destination server.This information acquiring pattern is complicated for operation, inefficiency, increases work to staff
Amount.
Summary of the invention
In view of this, this programme embodiment provides a kind of information acquisition method, system and server, computer-readable deposits
Storage media, to solve to obtain in the prior art, information relevant to the performance bottleneck of destination server is complicated for operation to lead to efficiency
Low problem.
In a first aspect, the embodiment of the present invention provides a kind of information acquisition method, the method on testing service device is executed
Include:
Before being tested for the property to destination server, Xiang Suoshu destination server sends enabled instruction, and the starting refers to
The snoop agents script startup operation being used to indicate in the destination server is enabled, the snoop agents script is described for obtaining
The hardware resource use information of destination server;
Start the performance test to the destination server;
Every specified time interval, at the same acquire the destination server performance test information and the snoop agents foot
Originally the hardware resource use information of the destination server obtained;
The hardware resource use information and the performance test information are associated according to acquisition time, are associated with
Information.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is also
Include:
By the hardware resource use information, the performance test information and the related information storage to specified storage position
It sets;And/or
According to the hardware resource use information, the performance test information and the related information, data statistics is generated
Chart;And/or
According to the analysis model of the related information and designated hardware resource, the analysis knot of the designated hardware resource is generated
Fruit data.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described to described
Before destination server sends enabled instruction, the method also includes:
The installation kit of the snoop agents script is sent to the destination server;
The snoop agents script is installed in the destination server according to the installation kit.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is also
Include:
After the performance test to the destination server, Xiang Suoshu destination server sends halt instruction, described
It is out of service that halt instruction is used to indicate the snoop agents script in the destination server.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is also
Include:
The upgrade information of the snoop agents script is sent to the destination server;
The snoop agents script in the destination server is upgraded according to the upgrade information.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is also
Include:
The deletion for sending the snoop agents script to the destination server indicates information;
Information is indicated according to the deletion, unloads the snoop agents script in the destination server, and delete institute
State the installation kit of the snoop agents script in destination server.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the hardware money
Source use information includes CPU use information, memory usage information, exchange area use information, magnetic disc i/o use information, network I/O
Use information, transmission control protocol use information, Java administration extensions use information, at least one in EXEC function use information
Kind.
Second aspect, the embodiment of the present invention provide a kind of Information Acquisition System, are set on testing service device, the system
Include:
Enabled instruction sending module, for before being tested for the property to destination server, Xiang Suoshu destination server to be sent out
Enabled instruction is sent, the enabled instruction is used to indicate the operation of the snoop agents script startup in the destination server, the prison
Listen agent script for obtaining the hardware resource use information of the destination server;
Test starting module, for starting the performance test to the destination server;
Information acquisition module is used for every specified time interval, while acquiring the performance test letter of the destination server
The hardware resource use information for the destination server that breath and the snoop agents script obtain;
Information association module is used for the hardware resource use information and the performance test information according to acquisition time
It is associated, obtains related information.
The third aspect, the embodiment of the present invention provide a kind of server, including memory, processor and are stored in described deposit
In reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer program
The step of any one of first aspect information acquisition method.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with computer program, realizes that the information as described in any one of first aspect obtains when the computer program is executed by processor
The step of taking method.
The embodiment of the present invention has the advantages that
The embodiment of the present invention, by sending starting to destination server and referring to before being tested for the property to destination server
It enables, starts the performance test to destination server, every specified time interval, while acquiring the performance test letter of destination server
The hardware resource use information for the destination server that breath and snoop agents script obtain uses the hardware resource of destination server
Information and the performance test information of destination server are associated according to acquisition time, related information are obtained, to destination service
When device is tested for the property, letter is used using the hardware resource of the snoop agents script acquisition destination server in destination server
Breath, and it is corresponding hardware resource use information is related to the progress of performance test information, the two is bound with this, it can be with
So that testing service device is directly obtained relevant hardware resource use information and performance test information, does not need on destination server
Operation is executed, does not also need still further to carry out binding processing to hardware resource use information and performance test information, it is convenient and efficient,
It is high-efficient, alleviate the workload of staff.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow example figure of information acquisition method provided in an embodiment of the present invention.
Fig. 2 is the functional block diagram of Information Acquisition System provided in an embodiment of the present invention.
Fig. 3 is the simplified block diagram of server provided in an embodiment of the present invention.
Specific embodiment
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing
It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate
There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three
Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
Embodiment one
Fig. 1 is the flow example figure of information acquisition method provided in an embodiment of the present invention.In the present embodiment, acquisition of information side
Method executes on testing service device, as shown in Figure 1, information acquisition method may include steps of:
S101 sends enabled instruction to destination server, enabled instruction is used before being tested for the property to destination server
Snoop agents script startup operation in instruction destination server, snoop agents script are used to obtain the hardware of destination server
Resource using information.
S102 starts the performance test to destination server.
S103 every specified time interval, while acquiring the performance test information and snoop agents script of destination server
The hardware resource use information of obtained destination server.
S104, by the hardware resource use information of destination server and the performance test information of destination server according to acquisition
Time is associated, and obtains related information.
Wherein, destination server is the object of performance test.
Wherein, testing service device is the server being tested for the property to destination server.
Destination server in step S101 is the destination server for being mounted with snoop agents script.
As long as destination server before step S101, downloads the installation kit of snoop agents script and installs snoop agents foot
Originally can.
Snoop agents script obtains the hardware resource use information of destination server, but positions the performance bottle of destination server
Neck does not need the hardware resource use information of institute's having time, but uses destination server hard within the performance test period
Part resource using information can.Therefore, the snoop agents script in destination server is in destination server without performance
The period of test does not need to run, and starting can before performance test.In this way, the money of destination server can be saved
Source, because the operation of snoop agents script needs to occupy the resource of destination server.
Wherein, performance test starts after snoop agents script startup operation, in this way, when would not miss performance test
Between destination server in section hardware resource use information.
Wherein, specified time interval can rule of thumb information determine.Specified time interval is the performance of destination server
Test the collection period of information and hardware resource use information.
In step S103, destination server that the performance test information and snoop agents script of destination server obtain it is hard
Part resource using information is according to specified time interval while to collect, and therefore, performance test information and hardware resource make
Be with the temporal information of information it is corresponding, when not needing to carry out additional to performance test information and hardware resource use information again
Between matching treatment, which reduces manual handling operations, to alleviate the workload of staff.
It is operated by acquisition, the performance test information and hardware resource use information of destination server are transmitted directly to survey
It tries in server, therefore, testing service device does not need to log in destination server and checks destination server using specific command
Hardware resource service condition relevant to the performance test results.Which reduces operations, convenient and efficient, therefore improve processing
Efficiency.
Wherein, hardware resource use information may include CPU (Central Processing Unit, central processing unit)
Use information, memory usage information, exchange area use information, magnetic disc i/o (Input/Output, input/output) use information,
Network I/O use information, transmission control protocol use information, Java administration extensions use information, EXEC function be (EXEC function
Effect is to find executable file according to specified filename, and replace the content of calling process with it) in use information
It is at least one.
In step S104, the performance test information of the hardware resource use information of destination server and destination server is pressed
After being associated according to acquisition time, hardware resource use information and performance test information have just been bundled in together, convenient to mesh
Mark analysis and positioning that server carries out performance bottleneck.
By related information, hardware resource use information corresponding to a certain the performance test results can be intuitively known,
And know performance test information corresponding to a certain hardware resource service condition.Also, related information is in testing service device
Middle acquisition, related information can be stored in testing service device local by testing service device or testing service device facilitates access
Storage location on other servers, in this way, needing to obtain mesh to destination server progress performance bottleneck positioning or analysis
When marking the performance test information mutually bound and hardware resource use information of server, can it is local from testing service device or
The storage location on other servers that testing service device can be accessed quickly easily gets the association letter of destination server
Breath, without shortening the operating time, therefore improve treatment effeciency to being checked on destination server using specific command.
In embodiment illustrated in fig. 1, when being tested for the property to destination server, the monitoring generation in destination server is utilized
The hardware resource use information of script acquisition destination server is managed, and by corresponding hardware resource use information and performance test
Information carries out correlation, is bound with this to the two, and testing service device can be made to directly obtain relevant hardware resource and use letter
Breath and performance test information, do not need to execute operation on destination server, do not need still further to use letter to hardware resource yet
Breath and performance test information carry out binding processing, convenient and efficient, high-efficient, alleviate the workload of staff.
During an illustrative realization, information acquisition method can also include: by hardware resource use information, property
Information and related information storage can be tested to designated storage location.
Wherein, designated storage location can be the local disk of testing service device, testing service device facilitates the data of access
Library (such as mysql database) etc..In this way, testing service device is when needed, it can be convenient and rapidly get destination service
Hardware resource use information, performance test information and the related information of device.
One it is illustrative realize during, information acquisition method can also include: according to hardware resource use information,
Performance test information and related information generate data statistics chart.
Data statistics chart can more intuitively display data content so that destination service is located more conveniently in staff
The performance bottleneck of device.
Wherein, in data statistics chart, hardware resource of the data other than defined normal range (NR) can be used
Information and performance test information are prompted, so that staff more intuitively finds possible performance bottleneck, are reduced artificial
The time of analysis, to improve the working efficiency of staff.
During an illustrative realization, information acquisition method can also include: according to related information and to specify hard
The analysis model of part resource generates the analysis result data of designated hardware resource.
Wherein, the analysis model of designated hardware resource is analyzed designated hardware resource, to determine that specified hardware provides
Source whether be performance bottleneck algorithm model, analysis model can preset by system.
During an illustrative realization, before sending enabled instruction to destination server, information acquisition method is also
It may include: the installation kit that snoop agents script is sent to destination server;Prison is installed in destination server according to installation kit
Listen agent script.
In this way, snoop agents script can be run in destination server by ensuring that, to obtain the property of destination server
Information and hardware resource use information can be tested.
During an illustrative realization, information acquisition method can also include: in the performance to destination server
After test, halt instruction is sent to destination server, halt instruction is used to indicate the snoop agents foot in destination server
This is out of service.
This example makes after performance test, and the snoop agents script on destination server can stop transporting in time
Row reduces the wasting of resources to reduce the occupancy to destination server resource.
During an illustrative realization, information acquisition method can also include: to send to monitor to destination server
The upgrade information of agent script;The snoop agents script in destination server is upgraded according to upgrade information.
Updating operation in this example can be carried out in destination server without the period of performance test.
During an illustrative realization, information acquisition method can also include: to send to monitor to destination server
The deletion of agent script indicates information;Information is indicated according to the deletion of snoop agents script, unloads the monitoring in destination server
Agent script, the installation kit of the snoop agents script in delete target server.
This example makes after performance test, clear in time if no longer needing to be tested for the property destination server
Except the snoop agents script and its installation kit on destination server reduce resource to reduce the occupancy to destination server resource
Waste.
Information acquisition method provided in an embodiment of the present invention, by before being tested for the property to destination server, to mesh
It marks server and sends enabled instruction, start the performance test to destination server, every specified time interval, while acquiring target
The hardware resource use information for the destination server that the performance test information and snoop agents script of server obtain, target is taken
The hardware resource use information of device of being engaged in and the performance test information of destination server are associated according to acquisition time, are associated with
Information acquires destination service using the snoop agents script in destination server when being tested for the property to destination server
The hardware resource use information of device, and corresponding hardware resource use information is related to the progress of performance test information, with this
The two is bound, testing service device can be made to directly obtain relevant hardware resource use information and performance test information,
Do not need to execute operation on destination server, do not need yet still further to hardware resource use information and performance test information into
Row binding processing, it is convenient and efficient, it is high-efficient, alleviate the workload of staff.
Embodiment two
The embodiment of the invention provides a kind of Information Acquisition System, the Information Acquisition System is for executing previous embodiment one
In information acquisition method.
Fig. 2 is the functional block diagram of Information Acquisition System provided in an embodiment of the present invention.Information provided in this embodiment obtains
System is taken to can be set in testing service device, as shown in Fig. 2, Information Acquisition System may include:
Enabled instruction sending module 210, for being sent to destination server before being tested for the property to destination server
Enabled instruction, enabled instruction are used to indicate the operation of the snoop agents script startup in destination server, and snoop agents script is used for
Obtain the hardware resource use information of destination server;
Test starting module 220, for starting the performance test to destination server;
Information acquisition module 230 is used for every specified time interval, while acquiring the performance test information of destination server
The hardware resource use information of the destination server obtained with snoop agents script;
Information association module 240, for carrying out hardware resource use information and performance test information according to acquisition time
Association, obtains related information.
During an illustrative realization, the system can also include: memory module, for making hardware resource
With information, performance test information and related information storage to designated storage location.
During an illustrative realization, the system can also include: chart generating module, for according to hardware
Resource using information, performance test information and related information generate data statistics chart.
During an illustrative realization, the system can also include: analysis result-generation module, be used for basis
The analysis model of related information and designated hardware resource generates the analysis result data of designated hardware resource.
During an illustrative realization, the system can also include: installation kit sending module, be used for target
The installation kit of server transmission snoop agents script;Script installs module, for being installed in destination server according to installation kit
Snoop agents script.
During an illustrative realization, the system can also include: halt instruction sending module, for right
After the performance test of destination server, halt instruction is sent to destination server, halt instruction is used to indicate destination service
Snoop agents script in device is out of service.
During an illustrative realization, the system can also include: upgrade information sending module, be used for mesh
Mark the upgrade information that server sends snoop agents script;Upgraded module, for according to upgrade information in destination server
Snoop agents script is upgraded.
During an illustrative realization, the system can also include: to delete instruction sending module, be used for mesh
Mark the deletion instruction information that server sends snoop agents script;Unload module, for unloading target according to instruction information is deleted
Snoop agents script in server, and the installation kit of the snoop agents script in delete target server.
During an illustrative realization, hardware resource use information includes CPU use information, memory use letter
Breath, exchange area use information, magnetic disc i/o use information, network I/O use information, transmission control protocol use information, Java pipe
At least one of reason extension use information, EXEC function use information.
The information acquisition method that Information Acquisition System provided in an embodiment of the present invention and present invention one provide
Corresponding, therefore, the unspecified place of the present embodiment refers to the explanation of corresponding portion in previous embodiment one, herein
It repeats no more.
Information Acquisition System provided in an embodiment of the present invention, by before being tested for the property to destination server, to mesh
It marks server and sends enabled instruction, start the performance test to destination server, every specified time interval, while acquiring target
The hardware resource use information for the destination server that the performance test information and snoop agents script of server obtain, target is taken
The hardware resource use information of device of being engaged in and the performance test information of destination server are associated according to acquisition time, are associated with
Information acquires destination service using the snoop agents script in destination server when being tested for the property to destination server
The hardware resource use information of device, and corresponding hardware resource use information is related to the progress of performance test information, with this
The two is bound, testing service device can be made to directly obtain relevant hardware resource use information and performance test information,
Do not need to execute operation on destination server, do not need yet still further to hardware resource use information and performance test information into
Row binding processing, it is convenient and efficient, it is high-efficient, alleviate the workload of staff.
Embodiment three
The embodiment of the invention provides a kind of servers, including memory, processor and storage are in the memory
And the computer program that can be run on the processor, the processor realize such as embodiment when executing the computer program
Described in any one of one the step of information acquisition method.
The server of the embodiment of the present invention may be used as testing service device above-mentioned.
Fig. 3 is the simplified block diagram of server provided in an embodiment of the present invention.Fig. 3 is referred to, which may include
The processor 301 connecting with one or more data storage facilities, the data storage facility may include storage medium 306 and interior
Memory cell 304.Server 300 can also include input interface 305 and output interface 307, for another device or system into
Row communication.It is storable in internal storage location 304 or storage medium 306 by the CPU of processor 301 program code executed.
Processor 301 in server 300 calls the program code for being stored in internal storage location 304 or storage medium 306, holds
The following each step of row:
Before being tested for the property to destination server, enabled instruction is sent to destination server, enabled instruction is for referring to
Show the snoop agents script startup operation in destination server, snoop agents script is used to obtain the hardware resource of destination server
Use information;
Start the performance test to destination server;
Every specified time interval, while acquiring the performance test information of destination server and snoop agents script obtains
The hardware resource use information of destination server;
Hardware resource use information and performance test information are associated according to acquisition time, obtain related information.
One it is illustrative realize during, processor 301 can be additionally configured to: by hardware resource use information,
Performance test information and related information are stored to designated storage location.
During an illustrative realization, processor 301 be can be additionally configured to: use letter according to hardware resource
Breath, performance test information and the related information generate data statistics chart.
During an illustrative realization, processor 301 be can be additionally configured to: according to related information and be specified hard
The analysis model of part resource generates the analysis result data of designated hardware resource.
During an illustrative realization, processor 301 be can be additionally configured to: being sent and is monitored to destination server
The installation kit of agent script;Snoop agents script is installed in destination server according to installation kit.
During an illustrative realization, processor 301 be can be additionally configured to: in the performance to destination server
After test, halt instruction is sent to destination server, halt instruction is used to indicate the snoop agents foot in destination server
This is out of service.
During an illustrative realization, processor 301 be can be additionally configured to: being sent and is monitored to destination server
The upgrade information of agent script;The snoop agents script in destination server is upgraded according to upgrade information.
During an illustrative realization, processor 301 be can be additionally configured to: being sent and is monitored to destination server
The deletion of agent script indicates information;Information is indicated according to deleting, and unloads the snoop agents script in destination server, and delete
The installation kit of snoop agents script in destination server.
Wherein, hardware resource use information may include CPU use information, memory usage information, exchange area use information,
Magnetic disc i/o use information, network I/O use information, transmission control protocol use information, Java administration extensions use information,
At least one of EXEC function use information.
Example IV
The embodiment of the invention provides a kind of computer readable storage medium, which has meter
Calculation machine program, realizing the information acquisition method as described in any one of previous embodiment one when computer program is executed by processor
Step.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or module it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit
It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of information acquisition method, which is characterized in that execute on testing service device, which comprises
Before being tested for the property to destination server, Xiang Suoshu destination server sends enabled instruction, and the enabled instruction is used
In indicating the snoop agents script startup operation in the destination server, the snoop agents script is for obtaining the target
The hardware resource use information of server;
Start the performance test to the destination server;
Every specified time interval, while acquiring the performance test information and hardware resource use information of the destination server;
The hardware resource use information and the performance test information are associated according to acquisition time, obtain association letter
Breath.
2. the method according to claim 1, wherein the method also includes:
By the hardware resource use information, the performance test information and the related information storage to designated storage location;
And/or
According to the hardware resource use information, the performance test information and the related information, data statistics chart is generated;
And/or
According to the analysis model of the related information and designated hardware resource, the analysis number of results of the designated hardware resource is generated
According to.
3. the method according to claim 1, wherein it is described to the destination server send enabled instruction it
Before, the method also includes:
The installation kit of the snoop agents script is sent to the destination server;
The snoop agents script is installed in the destination server according to the installation kit.
4. the method according to claim 1, wherein the method also includes:
After the performance test to the destination server, Xiang Suoshu destination server sends halt instruction, the stopping
Instruct the snoop agents script being used to indicate in the destination server out of service.
5. the method according to claim 1, wherein the method also includes:
The upgrade information of the snoop agents script is sent to the destination server;
The snoop agents script in the destination server is upgraded according to the upgrade information.
6. the method according to claim 1, wherein the method also includes:
The deletion for sending the snoop agents script to the destination server indicates information;
Information is indicated according to the deletion, unloads the snoop agents script in the destination server, and delete the mesh
Mark the installation kit of the snoop agents script in server.
7. described in any item methods according to claim 1~6, which is characterized in that the hardware resource use information includes CPU
Use information, memory usage information, exchange area use information, magnetic disc i/o use information, network I/O use information, transmission control
At least one of agreement use information, Java administration extensions use information, EXEC function use information.
8. a kind of Information Acquisition System, which is characterized in that it is set on testing service device, the system comprises:
Enabled instruction sending module, for before being tested for the property to destination server, the transmission of Xiang Suoshu destination server to be opened
Dynamic instruction, the enabled instruction are used to indicate the operation of the snoop agents script startup in the destination server, the monitoring generation
Reason script is used to obtain the hardware resource use information of the destination server;
Test starting module, for starting the performance test to the destination server;
Information acquisition module, for every specified time interval, while acquire the destination server performance test information and
The hardware resource use information for the destination server that the snoop agents script obtains;
Information association module, for carrying out the hardware resource use information and the performance test information according to acquisition time
Association, obtains related information.
9. a kind of server, including memory, processor and storage can transport in the memory and on the processor
Capable computer program, which is characterized in that the processor realizes such as claim 1 to 7 times when executing the computer program
The step of one information acquisition method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the step of realization information acquisition method as described in any one of claim 1 to 7 when the computer program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536858.4A CN109783284A (en) | 2018-12-14 | 2018-12-14 | Information acquisition method, system and server, computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536858.4A CN109783284A (en) | 2018-12-14 | 2018-12-14 | Information acquisition method, system and server, computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109783284A true CN109783284A (en) | 2019-05-21 |
Family
ID=66497083
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811536858.4A Pending CN109783284A (en) | 2018-12-14 | 2018-12-14 | Information acquisition method, system and server, computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109783284A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362460A (en) * | 2019-07-12 | 2019-10-22 | 腾讯科技(深圳)有限公司 | A kind of application program capacity data processing method, device and storage medium |
CN112148559A (en) * | 2020-09-16 | 2020-12-29 | 上海中通吉网络技术有限公司 | Mobile APP power consumption test method, device and system, acquisition end and test end |
CN112527584A (en) * | 2020-12-18 | 2021-03-19 | 上海万向区块链股份公司 | Software efficiency improving method and system based on script compiling and data acquisition |
CN113868095A (en) * | 2021-10-13 | 2021-12-31 | 平安银行股份有限公司 | Data monitoring method, system, server and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229497A (en) * | 2017-05-31 | 2017-10-03 | 武汉联影医疗科技有限公司 | Server test method and server test device |
CN107423176A (en) * | 2017-06-30 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of method of testing of internal memory, control terminal, server and system |
-
2018
- 2018-12-14 CN CN201811536858.4A patent/CN109783284A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229497A (en) * | 2017-05-31 | 2017-10-03 | 武汉联影医疗科技有限公司 | Server test method and server test device |
CN107423176A (en) * | 2017-06-30 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of method of testing of internal memory, control terminal, server and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362460A (en) * | 2019-07-12 | 2019-10-22 | 腾讯科技(深圳)有限公司 | A kind of application program capacity data processing method, device and storage medium |
CN110362460B (en) * | 2019-07-12 | 2024-05-10 | 腾讯科技(深圳)有限公司 | Application program performance data processing method, device and storage medium |
CN112148559A (en) * | 2020-09-16 | 2020-12-29 | 上海中通吉网络技术有限公司 | Mobile APP power consumption test method, device and system, acquisition end and test end |
CN112527584A (en) * | 2020-12-18 | 2021-03-19 | 上海万向区块链股份公司 | Software efficiency improving method and system based on script compiling and data acquisition |
CN113868095A (en) * | 2021-10-13 | 2021-12-31 | 平安银行股份有限公司 | Data monitoring method, system, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
CN107908541B (en) | Interface testing method and device, computer equipment and storage medium | |
CN111124850A (en) | MQTT server performance testing method, system, computer equipment and storage medium | |
US7900198B2 (en) | Method and system for parameter profile compiling | |
CN109783284A (en) | Information acquisition method, system and server, computer readable storage medium | |
CN107957940B (en) | Test log processing method, system and terminal | |
CN111026601A (en) | Monitoring method and device for Java application system, electronic equipment and storage medium | |
CN110674025A (en) | Interactive behavior monitoring method and device and computer equipment | |
CN111813655B (en) | Buried point test method and device, buried point management system and storage medium | |
CN110784374A (en) | Method, device, equipment and system for monitoring operation state of service system | |
US20180159724A1 (en) | Automatic task tracking | |
CN113448854A (en) | Regression testing method and device | |
CN110134583B (en) | Software testing and data processing method and device | |
CN111654495B (en) | Method, apparatus, device and storage medium for determining traffic generation source | |
US9442818B1 (en) | System and method for dynamic data collection | |
CN116069608A (en) | Application call link tracking method, device and distributed system | |
US20180011778A1 (en) | Static code testing of active code | |
CN110674024B (en) | Electronic equipment integrated test system and method thereof | |
CN110297639B (en) | Method and apparatus for detecting code | |
KR20170122874A (en) | Apparatus for managing log of application based on data distribution service | |
CN114238130A (en) | Performance test method, device, equipment and storage medium | |
CN113806231B (en) | Code coverage rate analysis method, device, equipment and medium | |
CN114238129A (en) | Method, device and equipment for generating interface data and storage medium | |
CN113760307A (en) | Method and device for obtaining differential coverage rate of application code | |
US10203970B2 (en) | Dynamic configuration of native functions to intercept |
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 |