CN107315671A - Application state monitoring method, device and its equipment - Google Patents

Application state monitoring method, device and its equipment Download PDF

Info

Publication number
CN107315671A
CN107315671A CN201710458386.4A CN201710458386A CN107315671A CN 107315671 A CN107315671 A CN 107315671A CN 201710458386 A CN201710458386 A CN 201710458386A CN 107315671 A CN107315671 A CN 107315671A
Authority
CN
China
Prior art keywords
application
request data
template tree
determined
tree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710458386.4A
Other languages
Chinese (zh)
Other versions
CN107315671B (en
Inventor
石子凡
孙木鑫
许力
张霞
纪勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710458386.4A priority Critical patent/CN107315671B/en
Publication of CN107315671A publication Critical patent/CN107315671A/en
Application granted granted Critical
Publication of CN107315671B publication Critical patent/CN107315671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention proposes a kind of application state monitoring method, device and its equipment, wherein, method includes:Obtain in request data, request data comprising access parameter;According to access parameter, it is determined that To Template tree path corresponding with request data, wherein, each template tree corresponds to different access parameter sets respectively, each node in template tree corresponds to the value of an access parameter respectively, and the path of different node compositions corresponds to the response message of the different subfunctions of application respectively;According to target masterplate tree path, it is determined that historical responses information corresponding with request data;According to the responsive state of application, it is determined that real response information corresponding with request data;According to historical responses information and real response information, it is determined that the running status of application.Thereby, it is possible to carry out effectively accurately monitoring to application state, the accuracy of application state perception is improved.

Description

Application state monitoring method, device and its equipment
Technical field
The present invention relates to field of computer technology, more particularly to a kind of application state monitoring method, device and its equipment.
Background technology
Generally, Web application refer to operate on network, using browser as the application program of general purpose client, such as when Using IE in the portal websites such as Netease, Sina during surfing, what is used is exactly Web applications.Wherein, Web application performances influence is used The usage experience at family, it is therefore desirable to be managed to Web application performances.
Specifically, in Web application performance management domains, the response time of Web service and success rate are to weigh a Web to answer Key index.In correlation technique, application performance management software can be divided for the service request response time of an application Into third gear and every grade of corresponding score is provided, and Consumer's Experience index is calculated by correlation formula, so as to be referred to according to Consumer's Experience Mark determines the quality of Consumer's Experience.
However, aforesaid way weighs the situation entirely applied only by a single index, cause index right Application state has stronger perception, i.e., to inaccurate situation occurs using state aware.
The content of the invention
The purpose of the present invention is intended at least solve one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of application state monitoring method, for solving prior art It is middle to produce error by artificial experience monitoring application state, and global analysis lacks local understanding caused to be difficult to be properly positioned The problem of application error.
Second object of the present invention is to propose a kind of application state supervising device.
Third object of the present invention is to propose a kind of computer equipment.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
The 5th purpose of the present invention is to propose a kind of computer program product.
For up to above-mentioned purpose, first aspect present invention embodiment proposes a kind of application state monitoring method, including:Obtain Access parameter is included in request data, the request data;According to the access parameter, it is determined that corresponding with the request data To Template tree path, wherein, each node that each template tree is corresponded in different access parameter sets, template tree respectively is right respectively The value of an access parameter is answered, the path of different node compositions corresponds to the response message of the different subfunctions of application respectively;According to The target masterplate tree path, it is determined that historical responses information corresponding with the request data;According to the responsive state of application, really Fixed real response information corresponding with the request data;According to the historical responses information and the real response information, really The running status of the fixed application.
The application state monitoring method of the embodiment of the present invention, includes the request data of access parameter by obtaining, and according to Access parameter and determine target masterplate tree path corresponding with request data, so as to be determined according to target masterplate tree path and number of request According to corresponding historical responses information, real response information corresponding with request data is then determined according to the responsive state of application, Finally according to historical responses information and real response information, it is determined that the running status of application.Application state can be carried out effective Accurately monitoring, improves the accuracy of application state perception.
In addition, application state monitoring method according to the above embodiment of the present invention can also have technology additional as follows special Levy:
Alternatively, described method, in addition to:Statistics is described corresponding with the request data within the default period N number of response message, wherein, N is positive integer more than 1;According to N number of response message and the historical responses information, really The fixed running status applied in the preset time period.
Alternatively, after the running status for determining the application, in addition to:If the running status of the application is different Often, then root cause problems analysis is carried out to the application according to To Template tree path corresponding with the request data.
Alternatively, before determination To Template tree path corresponding with the request data, in addition to:Obtain described The history data of application, the history data includes request data and response message;According to the history run Data, build template tree set corresponding with the application, wherein, the template tree set includes at least one template tree.
Alternatively, it is described according to the history data, build before template tree set corresponding with the application, go back Including:According to the type of the application, it is determined that access parameter sets corresponding with the application;With default rule, from described Access in parameter sets, target component is chosen successively;Different values using the target component build the template tree as node Set.
Alternatively, after structure template tree set corresponding with the application, in addition to:Counted with default stroke of window Rule, the corresponding history data of every paths of any template tree is counted in gathering the template tree, it is determined that with The corresponding response message of every paths of any template tree.
Alternatively, after structure template tree set corresponding with the application, in addition to:Collected according to the template tree The corresponding history data amount of any one paths in conjunction, the template tree in gathering the template tree is carried out at beta pruning Reason;Or, the response message difference degree between two leaf nodes associated in being gathered according to the template tree with arbitrary node, Template tree in gathering the template tree carries out beta pruning processing;Or, any one paths in being gathered according to the template tree The temporal information of corresponding history data, the template tree in gathering the template tree carries out beta pruning processing.
Alternatively, after the acquisition request data, in addition to:It is corresponding to the application according to the request data Template tree set is updated.
For up to above-mentioned purpose, second aspect of the present invention embodiment proposes a kind of application state supervising device, including:First Acquisition module, for obtaining in request data, the request data comprising access parameter;First determining module, for according to institute Access parameter is stated, it is determined that To Template tree path corresponding with the request data, wherein, each template tree corresponds to different respectively Access the value that each node in parameter sets, template tree corresponds to an access parameter respectively, the path point of different node compositions The response message of different subfunctions Dui Ying not applied;Second determining module, for according to the target masterplate tree path, it is determined that with The corresponding historical responses information of the request data;3rd determining module, for the responsive state according to application, it is determined that with it is described The corresponding real response information of request data;4th determining module, for according to the historical responses information and the actual sound Information is answered, the running status of the application is determined.
The application state supervising device of the embodiment of the present invention, includes the request data of access parameter by obtaining, and according to Access parameter and determine target masterplate tree path corresponding with request data, so as to be determined according to target masterplate tree path and number of request According to corresponding historical responses information, real response information corresponding with request data is then determined according to the responsive state of application, Finally according to historical responses information and real response information, it is determined that the running status of application.Application state can be carried out effective Accurately monitoring, improves the accuracy of application state perception.
In addition, application state supervising device according to the above embodiment of the present invention can also have technology additional as follows special Levy:
Alternatively, described device, in addition to:Statistical module, for counting within the default period, it is described with it is described The corresponding N number of response message of request data, wherein, N is the positive integer more than 1;5th determining module, for according to described N number of Response message and the historical responses information, determine the running status applied in the preset time period.
Alternatively, described device, in addition to:Root cause problems analysis module, if the running status for the application is different Often, then root cause problems analysis is carried out to the application according to To Template tree path corresponding with the request data.
Alternatively, described device, in addition to:Second acquisition module, the history data for obtaining the application, The history data includes request data and response message;First builds module, for according to the history run number According to, template tree set corresponding with the application is built, wherein, the template tree set includes at least one template tree.
Alternatively, described device, in addition to:6th determining module, for the type according to the application, it is determined that and institute State using corresponding access parameter sets;Module is chosen, for default rule, from the access parameter sets, successively Choose target component;Second builds module, for using the different values of the target component as node, building the template tree collection Close.
Alternatively, described device, in addition to:7th determining module, for default stroke of window statistical rules, to described The corresponding history data of every paths of any template tree is counted in the set of template tree, it is determined that with any template tree Per the corresponding response message of paths.
Alternatively, described device, in addition to:Beta pruning processing module, for any in template tree set The corresponding history data amount of one paths, the template tree in gathering the template tree carries out beta pruning processing;Or, it is described Beta pruning processing module, for according to the response message between two leaf nodes associated in template tree set with arbitrary node Difference degree, the template tree in gathering the template tree carries out beta pruning processing;Or, the beta pruning processing module, for root According to the temporal information of the corresponding history data of any one paths in template tree set, in gathering the template tree Template tree carry out beta pruning processing.
Alternatively, described device, in addition to:Update module, for according to the request data, to application correspondence Template tree set be updated.
For up to above-mentioned purpose, third aspect present invention embodiment proposes a kind of computer equipment, including memory, processing Device and storage are on a memory and the computer program that can run on a processor, it is characterised in that the computing device institute When stating program, a kind of application state monitoring method is realized, methods described includes:Obtain in request data, the request data and wrap The parameter containing access;According to the access parameter, it is determined that To Template tree path corresponding with the request data, wherein, each mould Each node that plate tree corresponds in different access parameter sets, template tree respectively corresponds to the value of an access parameter respectively, no Correspond to the response message of the different subfunctions of application respectively with the path that node is constituted;According to the target masterplate tree path, it is determined that Historical responses information corresponding with the request data;According to the responsive state of application, it is determined that corresponding with the request data Real response information;According to the historical responses information and the real response information, the running status of the application is determined.
To achieve these goals, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory Medium, when the instruction in the storage medium is performed by the processor of server end so that server end is able to carry out one Application state monitoring method is planted, methods described includes:Obtain in request data, the request data comprising access parameter;According to The access parameter, it is determined that To Template tree path corresponding with the request data, wherein, each template tree corresponds to difference respectively Access parameter sets, each node in template tree corresponds to the value of an access parameter, the path of different nodes compositions respectively The response message of the different subfunctions of application is corresponded to respectively;According to the target masterplate tree path, it is determined that with the request data pair The historical responses information answered;According to the responsive state of application, it is determined that real response information corresponding with the request data;According to The historical responses information and the real response information, determine the running status of the application.
To achieve these goals, fifth aspect present invention embodiment proposes a kind of computer program product, when described When instruction processing unit in computer program product is performed, a kind of application state monitoring method is performed, methods described includes:Obtain Access parameter is included in request data, the request data;According to the access parameter, it is determined that corresponding with the request data To Template tree path, wherein, each node that each template tree is corresponded in different access parameter sets, template tree respectively is right respectively The value of an access parameter is answered, the path of different node compositions corresponds to the response message of the different subfunctions of application respectively;According to The target masterplate tree path, it is determined that historical responses information corresponding with the request data;According to the responsive state of application, really Fixed real response information corresponding with the request data;According to the historical responses information and the real response information, really The running status of the fixed application.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein:
Fig. 1 is the schematic flow sheet of application state monitoring method according to an embodiment of the invention;
Fig. 2 is the schematic flow sheet of application state monitoring method in accordance with another embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the application state monitoring method according to another embodiment of the invention;
Fig. 4 is the structural representation of masterplate tree according to an embodiment of the invention;
Fig. 5 is the schematic flow sheet of the application state monitoring method according to further embodiment of the present invention;
Fig. 6 is the structural representation of the application state supervising device according to first embodiment of the invention;
Fig. 7 is the structural representation of the application state supervising device according to second embodiment of the invention;
Fig. 8 is the structural representation of the application state supervising device according to third embodiment of the invention;
Fig. 9 is the structural representation of the application state supervising device according to four embodiment of the invention;
Figure 10 is the structural representation of the application state supervising device according to fifth embodiment of the invention;
Figure 11 is the structural representation of the application state supervising device according to sixth embodiment of the invention;
Figure 12 is the structural representation of the application state supervising device according to seventh embodiment of the invention;
Figure 13 is the structural representation of the application state supervising device according to eighth embodiment of the invention;
Figure 14 is the structural representation of the application state supervising device according to ninth embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
Below with reference to the accompanying drawings application state monitoring method, device and its equipment of the embodiment of the present invention described.
At present, the service request response time of an application is manually divided into third gear and provides every grade of corresponding score, Such as response time is divided into less than 200ms (satisfaction), is less than 2000ms (tolerable) and (can not more than 2000ms more than 200ms Tolerance), while three interval scores are 1,0.5,0 respectively.Meanwhile, application performance management thinks that all unsuccessful services please Ask and be all denoted as 0 point.According to being set as above, application performance proposes Consumer's Experience index (Apdex), and calculation formula is as follows:
The number of times of Apdex=(being satisfied with number of times+tolerable number of times/2)/altogether
Thus, it is possible to which it is better to find out that Apdex represents Consumer's Experience closer to 1, Consumer's Experience is represented closer to 0 poorer.Should Index simple, intuitive, computation complexity is very low, can be adapted to most application scenarios.
However, Consumer's Experience index (Apdex) is set dependent on satisfied and tolerable threshold value, therefore Apdex height It is being to be determined by initially how to set satisfied and two threshold values of tolerable to a certain degree.Specifically, artificial increase is satisfied and can The upper limit of tolerance, Apdex index will be lifted accordingly, but it is more satisfied not represent user.
Further, the situation entirely applied is weighed by a single index, although clear simple, but unavoidably Will result in index and can not possibly have stronger perception to system mode.That is when application part of service state hair When raw essential change, too big change may can't be caused on global index, the accuracy for causing application state to perceive It is not high.Even if it is understood that Apdex has change, it is also not possible to which it is which certain applications has gone out to ask actually to understand in depth Topic.
In order to solve the above problems, the present invention proposes a kind of application state monitoring method, reasonably will can entirely apply State cutting is different sub- states, improves the perception of application state details, and application state can be carried out effective accurate True monitoring, improves the accuracy of application state perception.It is specific as follows:
Fig. 1 is the schematic flow sheet of application state monitoring method according to an embodiment of the invention.As shown in figure 1, should Application state monitoring method comprises the following steps:
Step 101, obtain in request data, request data comprising access parameter.
Specifically, one or more can be chosen according to application characteristic and artificial experience in actual applications and accesses parameter To monitor application state.It is understood that access parameter have number of different types, can include browser type, access time, One or more in access path, operating system version and device type etc..Can specifically be needed according to practical application into Row selection is set.
Specifically, after request data is obtained, request data can be parsed by modes such as related algorithm, models Obtain accessing parameter.
Step 102, according to access parameter, it is determined that To Template tree path corresponding with request data, wherein, each template tree The value that each node in different access parameter sets, template tree corresponds to an access parameter respectively, difference section are corresponded to respectively The path of point composition corresponds to the response message of the different subfunctions of application respectively.
Specifically, each request data can be corresponding with one or more template tree, will be asked according to template tree Data are matched, and obtain the corresponding To Template tree path of request data.It is understood that each masterplate tree corresponds to respectively Different access parameter sets, i.e., can find corresponding masterplate tree according to access parameter, and according to the value for accessing parameter It is determined that each node in each masterplate tree, so that the path constituted according to different nodes is used as To Template tree path.
It should be noted that the path of different node compositions corresponds to the response message of the different subfunctions of application respectively, wherein, Response message has number of different types, can include response time, response time average, response time variance and return code probability point One or more in cloth etc..
Wherein, the intensity of variation of average represents the change of application service overall performance, and the intensity of variation of variance is represented The change of application service resistance to overturning.The two indexs can be well to current application state change be monitored.
Step 103, according to target masterplate tree path, it is determined that historical responses information corresponding with request data;
Step 104, according to the responsive state of application, it is determined that real response information corresponding with request data.
Step 105, according to historical responses information and real response information, it is determined that the running status of application.
Specifically, can be true according to the corresponding response message in target masterplate tree path it is determined that behind target masterplate tree path Determine the historical responses information such as request data corresponding response time, response time average, response time variance.
Further, it can determine that request data corresponding response time, response time are equal according to the responsive state of application The real response information such as value, response time variance.
And then, historical responses information and real response information are compared uniformity, so that it is determined that the operation shape of application State.It is illustrated below:
In response time average, response time variance and real response information in the first example, historical responses information Response time average, the uniformity of response time variance preferably, illustrate application running status it is normal.
In response time average, response time variance and real response information in second of example, historical responses information Response time average, response time variance comparison of coherence it is poor, illustrate abnormal using running status.
It should be noted that these are only using running status for example, choosing can also be needed according to practical application Select and set different response messages to be compared, so as to carry out running status judgement.
In summary, the application state monitoring method of the embodiment of the present invention, by obtaining the number of request for including accessing parameter According to, and target masterplate tree path corresponding with request data is determined according to parameter is accessed, so that true according to target masterplate tree path Fixed historical responses information corresponding with request data, then determines reality corresponding with request data according to the responsive state of application Response message, finally according to historical responses information and real response information, it is determined that the running status of application.Can be to application state Effectively accurately monitoring is carried out, the accuracy of application state perception is improved.
Based on above-described embodiment, it is recognised that request data is more stable, the result of its determination application running status is more accurate Really.It should be noted that single request data are not very stable, a period of time can be typically accumulated, during this period of time path is seen Under response time average, variance is historical responses time average, historical responses time variance.Detailed process is as shown in Figure 2:
Fig. 2 is the schematic flow sheet of application state monitoring method in accordance with another embodiment of the present invention.As shown in Fig. 2 The application state monitoring method comprises the following steps:
Step 201, statistics within the default period, N number of response message corresponding with request data, wherein, N be more than 1 positive integer.
Step 202, according to N number of response message and institute's historical responses information, it is determined that applying the operation in preset time period State.
Specifically, it according to the practical application function setting time can be such as one day etc. each request data pair of preset time Each response message answered, you can to obtain after N number of response time, N number of response time average and N number of response time variance again The response message averagely obtained to it respectively is compared so that it is determined that applying in preset time period with historical responses information Interior running status.Further improve the accuracy of application monitor state.
It is understood that it is determined that application running status after, it may be determined that the operation of application be it is normal or It is abnormal, if normal state can be with without any processing, but if abnormal state is, it is necessary to carry out related place Reason, to avoid mistake etc. occur using operation.As a kind of example, when the running status of application is abnormal according to request data Corresponding To Template tree path, root cause problems analysis is carried out to application, and after analyzing root, can further root According to analysis result, optimize.Improve the accuracy of application state perception.
As another example, information data under template tree path and path is sent out when the running status of application is abnormal Analyzed to operation maintenance personnel, operation maintenance personnel analyzing and positioning particular problem is helped, so as to solve the problems, such as relevant abnormalities.Improving should With the perception of Status Detail.
It is specific to combine based on above-described embodiment, it may be determined that before step 102, in addition it is also necessary to carry out the foundation of masterplate tree Fig. 3 is specifically described.
Fig. 3 is the schematic flow sheet of the application state monitoring method according to another embodiment of the invention.As shown in figure 3, Before step 102, the application state monitoring method also includes:
Step 301, the history data of application is obtained, history data includes request data and response message.
Step 302, according to history data, build and gather with the corresponding template tree of application, wherein, in the set of template tree Including at least one template tree.
Specifically, a template tree is, to the crucial tree construction combination for accessing parameter, Fig. 4 to be combined for the ease of understanding Describe in detail, as shown in figure 4, for example, it is exactly A- to state into hierarchical structure using three template tree tables for accessing parameter A, B, C>B-> C.Because accessing parameter A, B, C has multiple different values, therefore expansion is exactly multigroup tree structure.Such as define A1-> B1->C1 is such a to branch into a paths, represents A, B, C tri- access parameters difference values for A1, B1 and C1 when The application state of time.
History data is excavated by counting, multigroup such template tree can be obtained, each request of data can It is corresponding with one or more template tree.Wherein, history data includes request data and response message.
It is understood that each template tree is represented using a part of state, and the sound of each template tree Information is answered all to represent the present case and historical volatility situation of this partial status, so as to complete the perception of application state.
Thus, represented by tree-structured hierarchical, reasonably by whole application state cutting from different sub- states, improving should With the perception of Status Detail.
Based on above-mentioned analysis it is recognised that having how many parameters that access determine which access parameter is target component determine For the root node of masterplate tree, second node which is masterplate tree, the specific Fig. 5 that combines is described.
Fig. 5 is the schematic flow sheet of the application state monitoring method according to further embodiment of the present invention.As shown in figure 5, Before step 302, the application state monitoring method also includes:
Step 401, according to the type of application, it is determined that with applying corresponding access parameter sets.
Step 402, with default rule, from parameter sets are accessed, target component is chosen successively.
Step 403, the different values using target component build the set of template tree as node.
Specifically, it is first determined the type of application, such as be IE, it is determined that with apply corresponding access parameter sets, than As determined operating system corresponding with IE, access time, access path etc. accesses parameter sets.
Further, according to default rule, such as selection operation system and access time are made from parameter sets are accessed For node, i.e., two layers, it can be needed to select one or more according to practical application, in this example the explanation exemplified by two layers. Such as selection operation system carries out cutting (such as 10,000 data be divided into be window7 systems and be not window7 systems) Then the average and the variance of response time of the response time of each data is calculated again, uses the average and the Gaussian Profile of variance The probability for generating the sample is calculated, the maximum node of score is finally chosen.Specific formula is as follows:
Repeat the above steps and find the cutting node of the second level again, it is last by that analogy to reach the bottommost layer determined. So as to which a template tree is just determined, template tree is then added to known template tree intersection.
Thus, constructed each time after template tree, it is possible to history data is carried out using known template tree intersection Matching, to the data difference being matched.Then remaining data are proceeded to build template tree, continues such process Until template tree intersection can cover exhausted vast scale data.
In summary, the application state monitoring method of the embodiment of the present invention, according to the type of application, it is determined that corresponding with application Access parameter sets, with default rule, from parameter sets are accessed, target component is chosen successively, with target component not It is node with value, builds the set of template tree.Thereby, it is possible to set up the template tree intersection for covering exhausted vast scale data, so as to carry The efficiency and accuracy of application state monitoring are risen.
Based on above-described embodiment, building with being drawn after application corresponding template tree set, it is necessary to carry out a stroke window processing The total amount of response message, such as the average of response time, variance, and return code are covered under every paths of window statistical mask tree Probability distribution.
It is used as a kind of example, with default stroke of window statistical rules, every paths of any template tree in gathering template tree Corresponding history data is counted, it is determined that response message corresponding with every paths of any template tree.Such as, with every Monday window, draws 1 day every time, retains the data of last 7 windows, or with every 30 days windows, draws 10 days every time, protects Stay the data of last 3 windows.
Wherein, return code probability distribution refers to there is a return code for each request, can according to return code To determine whether application state is normal, such as return code is defined as normally for 200, and return code is 400 and is defined as exception, so that The situation of return code probability distribution in analysis a period of time.
It should be noted that can with the average and the stability bandwidth of variance between calculation window, and return code probability away from From.
Thus, by way of drawing window statistics, account of the history and present case is accurately described, application state is improved The accuracy of perception.
Based on above-described embodiment, it is to be understood that the template tree of structure may be excessively huge, it is necessary to use beta pruning skill Art is further processed to template tree.That is, beta pruning processing is exactly insufficient to some statistics, or covering data mistake Few path is cut, and exchanges the tremendous increase in efficiency in the way of losing certain precision.Through actual verification, band after beta pruning The lifting for the versatility come often can overcome the disadvantages that loss of significance, be finally reached the income of forward direction.It is illustrated below:
The first example, the corresponding history data amount of any one paths in being gathered according to template tree, to template Template tree in tree set carries out beta pruning processing.
Specifically, such as the corresponding history data amount of a paths is not abundant enough, i.e., the data volume that path is covered is not Enough certain threshold values, the template tree in gathering template tree carries out beta pruning processing.
Response message between second of example, two leaf nodes associated in being gathered according to template tree with arbitrary node is poor DRS degree, the template tree in gathering template tree carries out beta pruning processing.
Specifically, such as between two leaf nodes of arbitrary node association response time, time average, time variance Difference degree is all than larger, i.e., enough, but variance is more than certain threshold value to the data volume of path covering, in the set of template tree Template tree carries out beta pruning processing.
The third example, according to the temporal information of the corresponding history data of any one paths in the set of template tree, Template tree in gathering template tree carries out beta pruning processing.
Specifically, the temporal information of the corresponding history data of a paths is more remote, little on influence now, i.e., Path is among the model calculated before, but nearest a period of time is without data, the template tree in gathering template tree Carry out beta pruning processing.
It is understood that any one paths can have occurred and that change because of the renewal of version in the set of template tree, The template tree in gathering template tree is needed to carry out beta pruning processing.
It should be noted that these are only the illustration of beta pruning processing progress selection can be needed to set according to practical application Put.
Thus, template tree is polymerize by way of beta pruning to partial response information, is made statistics more abundant and is covered Lid more preferably, improves the robustness of application performance perception.
It should be noted that after obtaining request data, gathered according to request data the corresponding template tree of application and carried out Update.Specifically, the average and variance of response time can all support online iterative calculation, therefore the online dynamic of model supports is more Newly, i.e., each group request data input directly can be updated after coming in model data.In time to application state Change is learnt and analyzed, and improves the ageing of application performance perception.
To sum up shown, the application state monitoring method of the embodiment of the present invention can be to the sound of multiple requests with " paths " It is predicted between seasonable, provides the abnormal score of current response time, and the state change in one " path " is estimated, The variance for including the path lower response time and fluctuation ratio are assessed, and all " paths " is carried out according to different application scene Sequence, returns to the path merited attention and is estimated to operation maintenance personnel.Thereby, it is possible to carry out effectively accurately supervising to application state Control, improves the accuracy of application state perception.
In order to realize above-described embodiment, the present invention also proposes a kind of application state supervising device.
Fig. 6 is the structural representation of application state supervising device according to an embodiment of the invention.As shown in fig. 6, should Application state supervising device includes:First acquisition module 11, the first determining module 12, the second determining module the 13, the 3rd determine mould The determining module 15 of block 14 and the 4th.
Wherein, the first acquisition module 11, for obtaining in request data, request data comprising access parameter.
First determining module 12, for according to parameter is accessed, it is determined that To Template tree path corresponding with request data, its In, each node that each template tree corresponds in different access parameter sets, template tree respectively corresponds to one and accesses parameter respectively Value, the path of different node compositions corresponds to the response message of the different subfunctions of application respectively;
Second determining module 13, for according to target masterplate tree path, it is determined that historical responses corresponding with request data are believed Breath.
3rd determining module 14, for the responsive state according to application, it is determined that real response corresponding with request data is believed Breath.
4th determining module 15, for according to historical responses information and real response information, it is determined that the running status of application.
Further, as shown in fig. 7, the device also includes on the basis of Fig. 6:The determining module of statistical module 16 and the 5th 17。
Wherein, statistical module 16, for counting within the default period, N number of response message corresponding with request data, Wherein, N is the positive integer more than 1.
5th determining module 17, for according to N number of response message and historical responses information, it is determined that applying in preset time period Interior running status.
Further, as shown in figure 8, the device also includes on the basis of Fig. 6:Root cause problems analysis module 18.
Root cause problems analysis module 18, if abnormal for the running status applied, according to mesh corresponding with request data Template tree path is marked, root cause problems analysis is carried out to application.
Further, as shown in figure 9, the device also includes on the basis of Fig. 6:Second acquisition module 19 and first is built Module 110.
Second acquisition module 19, the history data for obtaining application, history data includes request data And response message.
First builds module 110, gathers for according to history data, building with the corresponding template tree of application, wherein, The set of template tree includes at least one template tree.
Further, as shown in Figure 10, the device also includes on the basis of Fig. 9:6th determining module 111, selection mould Block 112 and second builds module 113.
Wherein, the 6th determining module 111, for the type according to application, it is determined that with applying corresponding access parameter sets.
Module 112 is chosen, for default rule, from parameter sets are accessed, target component to be chosen successively.
Second builds module 113, for using the different values of target component as node, building the set of template tree.
Further, as shown in figure 11, the device also includes on the basis of Fig. 9:7th determining module 114.
Wherein, the 7th determining module 114, for default stroke of window statistical rules, to any template in the set of template tree The corresponding history data of every paths of tree is counted, it is determined that response letter corresponding with every paths of any template tree Breath.
Further, as shown in figure 12, the device also includes on the basis of Fig. 9:First beta pruning processing module 115.
Wherein, beta pruning processing module 115, for the corresponding history run of any one paths in the set of template tree Data volume, the template tree in gathering template tree carries out beta pruning processing;Or, beta pruning processing module, for being collected according to template tree Response message difference degree between two leaf nodes associated in conjunction with arbitrary node, the template tree in gathering template tree enters Row beta pruning is handled;Or, beta pruning processing module, for according to the corresponding history run number of any one paths in the set of template tree According to temporal information, to template tree gather in template tree progress beta pruning processing.
Further, as shown in figure 13, the device also includes on the basis of Fig. 9:Update module 116.
Wherein, update module 116, for according to request data, to being updated using corresponding template tree set.
In summary, the application state supervising device of the embodiment of the present invention, by obtaining the number of request for including accessing parameter According to, and target masterplate tree path corresponding with request data is determined according to parameter is accessed, so that true according to target masterplate tree path Fixed historical responses information corresponding with request data, then determines reality corresponding with request data according to the responsive state of application Response message, finally according to historical responses information and real response information, it is determined that the running status of application.Can be to application state Effectively accurately monitoring is carried out, the accuracy of application state perception is improved.
The present invention proposes a kind of application state supervising device, and Figure 14 is the application state according to ninth embodiment of the invention The structural representation of supervising device.As shown in figure 14, memory 21, processor 22 and be stored on memory 21 and can processing The computer program run on device 22.
Processor 22 realizes the application state monitoring method provided in above-described embodiment when performing described program.
Further, application state supervising device also includes:
Communication interface 23, for the communication between memory 21 and processor 22.
Memory 21, for depositing the computer program that can be run on processor 22.
Memory 21 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile Memory), for example, at least one magnetic disk storage.
Processor 22, application state monitoring method described in above-described embodiment is realized for performing during described program.
If memory 21, processor 22 and the independent realization of communication interface 23, communication interface 21, memory 21 and processing Device 22 can be connected with each other by bus and complete mutual communication.The bus can be industry standard architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of representing, only represented in Figure 14 with a thick line, it is not intended that only one bus or a type of bus.
Optionally, on implementing, if memory 21, processor 22 and communication interface 23, are integrated in chip piece Upper to realize, then memory 21, processor 22 and communication interface 23 can complete mutual communication by internal interface.
Processor 22 is probably a central processing unit (Central Processing Unit, referred to as CPU), or Specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or by with It is set to the one or more integrated circuits for implementing the embodiment of the present invention.
To achieve these goals, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory Medium, when the instruction in the storage medium is performed by the processor of server end so that server end is able to carry out one Application state monitoring method is planted, methods described includes:Obtain in request data, request data comprising access parameter;According to access Parameter, it is determined that To Template tree path corresponding with request data, wherein, each template tree corresponds to different access parameter sets respectively Close, each node in template tree corresponds to the value of an access parameter respectively, the path of different node compositions corresponds to application respectively The response message of different subfunctions;According to target masterplate tree path, it is determined that historical responses information corresponding with request data;According to The responsive state of application, it is determined that real response information corresponding with request data;Believed according to historical responses information and real response Breath, it is determined that the running status of application.
To achieve these goals, fifth aspect present invention embodiment proposes a kind of computer program product, when described When instruction processing unit in computer program product is performed, a kind of application state monitoring method is performed, methods described includes:Obtain Access parameter is included in request data, request data;According to parameter is accessed, it is determined that To Template tree road corresponding with request data Footpath, wherein, each node that each template tree corresponds in different access parameter sets, template tree respectively corresponds to one and accesses ginseng respectively Several values, the path of different node compositions corresponds to the response message of the different subfunctions of application respectively;According to target masterplate tree road Footpath, it is determined that historical responses information corresponding with request data;According to the responsive state of application, it is determined that reality corresponding with request data Border response message;According to historical responses information and real response information, it is determined that the running status of application.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the not be the same as Example or the feature of example and non-be the same as Example or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, fragment or the portion of the code of one or more executable instructions for the step of realizing custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered use In the order list for the executable instruction for realizing logic function, it may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress for combining these instruction execution systems, device or equipment and using Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wirings Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, can even is that can be in the paper of printing described program thereon or other are suitable for computer-readable medium Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Scattered logic circuit, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can be compiled Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried Rapid to can be by program to instruct the hardware of correlation to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is realized using in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and retouching above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of application state monitoring method, it is characterised in that including:
Obtain in request data, the request data comprising access parameter;
According to the access parameter, it is determined that To Template tree path corresponding with the request data, wherein, each template tree difference Each node in the different access parameter sets of correspondence, template tree corresponds to the value of an access parameter, different node groups respectively Into path correspond to the response messages of the different subfunctions of application respectively;
According to the target masterplate tree path, it is determined that historical responses information corresponding with the request data;
According to the responsive state of application, it is determined that real response information corresponding with the request data;
According to the historical responses information and the real response information, the running status of the application is determined.
2. the method as described in claim 1, it is characterised in that also include:
Statistics is within the default period, N number of response message corresponding with the request data, wherein, N is more than 1 Positive integer;
According to N number of response message and the historical responses information, the fortune applied in the preset time period is determined Row state.
3. the method as described in claim 1, it is characterised in that after the running status of the determination application, in addition to:
If the running status of the application is abnormal, according to To Template tree path corresponding with the request data, to described Using progress root cause problems analysis.
4. the method as described in claim 1-3 is any, it is characterised in that determination target corresponding with the request data Before template tree path, in addition to:
The history data of the application is obtained, the history data includes request data and response message;
According to the history data, template tree set corresponding with the application is built, wherein, in the template tree set Including at least one template tree.
5. method as claimed in claim 4, it is characterised in that described according to the history data, builds and is answered with described Before being gathered with corresponding template tree, in addition to:
According to the type of the application, it is determined that access parameter sets corresponding with the application;
With default rule, from the access parameter sets, target component is chosen successively;
Different values using the target component build the template tree set as node.
6. method as claimed in claim 4, it is characterised in that structure template tree set corresponding with the application Afterwards, in addition to:
With default stroke of window statistical rules, the corresponding history run of every paths of any template tree in gathering the template tree Data are counted, it is determined that response message corresponding with every paths of any template tree.
7. a kind of application state supervising device, it is characterised in that including:
First acquisition module, for obtaining in request data, the request data comprising access parameter;
First determining module, for according to the access parameter, it is determined that To Template tree path corresponding with the request data, Wherein, each node that each template tree corresponds in different access parameter sets, template tree respectively corresponds to an access parameter respectively Value, the path of different nodes composition corresponds to the response message of the different subfunctions of application respectively;
Second determining module, for according to the target masterplate tree path, it is determined that historical responses corresponding with the request data Information;
3rd determining module, for the responsive state according to application, it is determined that real response information corresponding with the request data;
4th determining module, for according to the historical responses information and the real response information, determining the fortune of the application Row state.
8. a kind of computer equipment, it is characterised in that including memory, processor and store on a memory and can be in processor The computer program of upper operation, it is characterised in that during the computing device described program, is realized as appointed in claim 1-6 Method described in one.
9. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the program quilt The method as any one of claim 1-6 is realized during computing device.
10. a kind of computer program product, when the instruction in the computer program product is by computing device, is performed as weighed Profit requires the method any one of 1-6.
CN201710458386.4A 2017-06-16 2017-06-16 Application state monitoring method, device and equipment Active CN107315671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710458386.4A CN107315671B (en) 2017-06-16 2017-06-16 Application state monitoring method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710458386.4A CN107315671B (en) 2017-06-16 2017-06-16 Application state monitoring method, device and equipment

Publications (2)

Publication Number Publication Date
CN107315671A true CN107315671A (en) 2017-11-03
CN107315671B CN107315671B (en) 2020-09-04

Family

ID=60183236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710458386.4A Active CN107315671B (en) 2017-06-16 2017-06-16 Application state monitoring method, device and equipment

Country Status (1)

Country Link
CN (1) CN107315671B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920326A (en) * 2018-06-14 2018-11-30 阿里巴巴集团控股有限公司 Determine system time-consuming abnormal method, apparatus and electronic equipment
CN109240893A (en) * 2018-07-18 2019-01-18 平安科技(深圳)有限公司 Using operating status querying method and terminal device
CN111897703A (en) * 2019-05-05 2020-11-06 北京神州泰岳软件股份有限公司 Website performance evaluation method and device
CN112988542A (en) * 2021-04-08 2021-06-18 马上消费金融股份有限公司 Application scoring method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882105A (en) * 2010-06-01 2010-11-10 华南理工大学 Method for testing response time of Web page under concurrent environment
CN103297291A (en) * 2013-05-08 2013-09-11 携程计算机技术(上海)有限公司 Method and system for monitoring website real-time statuses
CN104618132A (en) * 2014-12-16 2015-05-13 北京神州绿盟信息安全科技股份有限公司 Generation method and generation device for application program recognition rule
US20170041197A1 (en) * 2011-11-08 2017-02-09 Microsoft Technology Licensing, Llc Context-Aware Model-Driven Hierarchical Monitoring Metadata

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882105A (en) * 2010-06-01 2010-11-10 华南理工大学 Method for testing response time of Web page under concurrent environment
US20170041197A1 (en) * 2011-11-08 2017-02-09 Microsoft Technology Licensing, Llc Context-Aware Model-Driven Hierarchical Monitoring Metadata
CN103297291A (en) * 2013-05-08 2013-09-11 携程计算机技术(上海)有限公司 Method and system for monitoring website real-time statuses
CN104618132A (en) * 2014-12-16 2015-05-13 北京神州绿盟信息安全科技股份有限公司 Generation method and generation device for application program recognition rule

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920326A (en) * 2018-06-14 2018-11-30 阿里巴巴集团控股有限公司 Determine system time-consuming abnormal method, apparatus and electronic equipment
CN108920326B (en) * 2018-06-14 2022-04-29 创新先进技术有限公司 Method and device for determining time-consuming abnormity of system and electronic equipment
CN109240893A (en) * 2018-07-18 2019-01-18 平安科技(深圳)有限公司 Using operating status querying method and terminal device
CN109240893B (en) * 2018-07-18 2021-06-25 平安科技(深圳)有限公司 Application running state query method and terminal equipment
CN111897703A (en) * 2019-05-05 2020-11-06 北京神州泰岳软件股份有限公司 Website performance evaluation method and device
CN112988542A (en) * 2021-04-08 2021-06-18 马上消费金融股份有限公司 Application scoring method, device, equipment and readable storage medium
CN112988542B (en) * 2021-04-08 2021-11-30 马上消费金融股份有限公司 Application scoring method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN107315671B (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN107315671A (en) Application state monitoring method, device and its equipment
US20190207869A1 (en) Intelligent Placement within a Data Center
EP2273431B1 (en) Model determination system
CN107608862A (en) Monitoring alarm method, monitoring alarm device and computer-readable recording medium
CN107229518A (en) A kind of distributed type assemblies training method and device
DE10393080T5 (en) service portal
CN108765149B (en) Cluster-based quantization strategy retest system and method
DE112020002684T5 (en) A multi-process system for optimal predictive model selection
DE112021000370T5 (en) DATA MONITORING BASED ON MACHINE LEARNING
CN107944005B (en) Data display method and device
CN106407305A (en) Data mining system and method
DE112020002344T5 (en) FEATURE ENGINEERING FOR THE OPTIMIZATION OF NEURAL NETWORKS
DE112021004234T5 (en) USING METALERN TO OPTIMIZE AUTOMATIC SELECTION OF MACHINE LEARNING PIPELINES
CN107633294A (en) A kind of improvement Sobol Sensitivity Analysis applied to RBF neutral nets
Gupta et al. Long range dependence in cloud servers: a statistical analysis based on google workload trace
CN109359874A (en) A kind of multidimensional index monitoring and early warning method and device
CN112200360A (en) Plant growth weight prediction method, model training method and device
GB2503786A (en) Optimisation of web pages, e.g. for marketing campaign or commercial activity
CN114385403A (en) Distributed cooperative fault diagnosis method based on double-layer knowledge graph framework
CN107291616A (en) A kind of online generating platform of project report
CN107093092A (en) Data analysing method and device
CN106789163A (en) A kind of network equipment power information monitoring method, device and system
CN108665090B (en) Urban power grid saturation load prediction method based on principal component analysis and Verhulst model
CN115865617A (en) VPN remote diagnosis and maintenance system
CN112800089B (en) Intermediate data storage level adjusting method, storage medium and computer equipment

Legal Events

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