CN110362475A - A kind of information acquisition method, device, terminal device and storage medium - Google Patents

A kind of information acquisition method, device, terminal device and storage medium Download PDF

Info

Publication number
CN110362475A
CN110362475A CN201910523114.7A CN201910523114A CN110362475A CN 110362475 A CN110362475 A CN 110362475A CN 201910523114 A CN201910523114 A CN 201910523114A CN 110362475 A CN110362475 A CN 110362475A
Authority
CN
China
Prior art keywords
operation flow
node
abnormal
flow node
execution route
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
Application number
CN201910523114.7A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910523114.7A priority Critical patent/CN110362475A/en
Publication of CN110362475A publication Critical patent/CN110362475A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of information acquisition method, device, terminal device and storage mediums.The described method includes: identifying at least one operation flow node in advance for the corresponding business processing link configuration of the target service process when monitoring that target service process occurs abnormal;Pre-added pitching pile code at each operation flow node is run, determines abnormal traffic flow nodes;According to the mapping relations between thread and execution route, the corresponding abnormal execution route of subject thread is determined;Obtain the operation flow node to be processed being located on the abnormal execution route;Starting makes an addition to the target monitoring program at the operation flow node to be processed in advance, obtains the corresponding Workflow messages of the operation flow node to be processed.The present invention can according to the contextual information around abnormal nodes, promptly and accurately find out the reason of being abnormal, improve the accuracy rate checked extremely, business personnel can be made to repair in time to application software.

Description

A kind of information acquisition method, device, terminal device and storage medium
Technical field
The present invention relates to business treatment technique field, more particularly to a kind of information acquisition method, device, terminal device and Storage medium.
Background technique
With the development of internet technology, the type of service in application software gradually increases, so that user passes through one Multiple functions may be implemented in kind application software, such as user can be realized by on-line payment and give bonus, transfer accounts, hand over the function such as telephone expenses Energy.
In application software operational process, various abnormal phenomenon can usually occur, and at present in business processing mistake When occurring abnormal in journey, what is be generally concerned with is the instantaneous state in business procession sometime, i.e., to certain for exception occur The service condition at a moment carries out anomaly analysis.And sometimes, business personnel it is to be appreciated that this moment state it is upper The calling of context information, the behavioral chain of user or code triggers chain, to be used to help business personnel's detection and investigation problem, and only Instantaneous state in acquisition business procession sometime, which may result in, cannot analyze the reason of being abnormal, and lead to industry Business personnel can not in time repair application software in time.
Summary of the invention
The embodiment of the present invention the technical problem to be solved is that provide a kind of information acquisition method, device, terminal device and Storage medium may result in not with solving to only focus on the instantaneous state in business procession sometime in the prior art The technical issues of the reason of being abnormal can be analyzed, business personnel is caused not repair in time to application software in time.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of information acquisition methods, comprising: is monitoring target When operation flow occurs abnormal, identify in advance be at least the one of the corresponding business processing link configuration of the target service process A operation flow node;Pre-added pitching pile code at each operation flow node is run, determines abnormal traffic process section Point;The abnormal traffic flow nodes are an operation flow node at least one described operation flow node;According to line Mapping relations between journey and execution route determine the corresponding abnormal execution route of subject thread;The subject thread is for holding The corresponding abnormal subservice process of the row abnormal traffic flow nodes, the exception subservice process is the target service stream A sub- operation flow in journey;Obtain the operation flow node to be processed being located on the abnormal execution route;It is described wait locate Managing operation flow node includes the abnormal traffic flow nodes;Starting is made an addition in advance at the operation flow node to be processed Target monitoring program, obtain the corresponding Workflow messages of the operation flow node to be processed.
Preferably, it is described identify in advance for the corresponding business processing link configuration of the target service process at least Before one operation flow node, further includes: in the implementation procedure of the target service process, obtain the target service stream At least one subservice process that journey includes, and execute the thread of each subservice process;It is described exception subservice process be A sub- operation flow at least one described subservice process;Determining operation flow corresponding with each subservice process Node;Obtain execution route locating for each thread;It establishes and saves the mapping between each thread and each execution route Relationship;Corresponding monitoring programme is added in each operation flow node;It include the target monitoring journey in the monitoring programme Sequence.
It is preferably, described after determination operation flow node corresponding with each subservice process, further includes: Draw empty business process map corresponding with the target service process;According to the calling sequence of each thread, in the empty industry Each thread is added in business flow chart, and operation flow node corresponding with each thread, to generate operation flow topology Figure;Described the step of obtaining execution route locating for each thread, comprising: according to the operation flow topological diagram, search each described Execution route locating for thread.
Preferably, described to obtain the operation flow node to be processed being located on the abnormal execution route, comprising: when described When the number of all operation flow nodes on abnormal execution route is less than threshold value node number, by all operation flow sections Point is used as the operation flow node to be processed;When the number of all operation flow nodes is greater than or equal to the threshold value When node number, according to location information of all operation flow nodes on the abnormal execution route, select described Operation flow node to be processed.
Preferably, the location information according to all operation flow nodes on the abnormal execution route, choosing Select out the operation flow node to be processed, comprising: according to the location information, obtain and meet such as on the abnormal execution route The operation flow node to be processed of lower condition: first the first several Business Stream before the abnormal traffic flow nodes Cheng Jiedian, second the second several operation flow node after the abnormal traffic flow nodes are located at the exception The third operation flow node of third number on execution route, and the 4th number of the ending positioned at the abnormal execution route The 4th operation flow node;By the first operation flow node, the second operation flow node, the third Business Stream Cheng Jiedian and the 4th operation flow node, as the operation flow node to be processed.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of information acquisition devices, comprising: service node identification Module, for when monitoring that target service process occurs abnormal, identifying in advance as the corresponding industry of the target service process At least one operation flow node of business processing link configuration;Abnormal nodes determining module, for running each operation flow Pre-added pitching pile code, determines abnormal traffic flow nodes at node;The abnormal traffic flow nodes be it is described at least An operation flow node in one operation flow node;Off path determining module, for according to thread and execution route Between mapping relations, determine the corresponding abnormal execution route of subject thread;The subject thread is for executing the abnormal industry The corresponding abnormal subservice process of flow nodes of being engaged in, the exception subservice process are a son in the target service process Operation flow;Node to be processed obtains module, for obtaining the operation flow section to be processed being located on the abnormal execution route Point;The operation flow node to be processed includes the abnormal traffic flow nodes;Business information obtaining module, it is pre- for starting The target monitoring program at the operation flow node to be processed is first made an addition to, it is corresponding to obtain the operation flow node to be processed Workflow messages.
Preferably, further includes: process thread obtains module, for obtaining in the implementation procedure of the target service process At least one the subservice process for taking the target service process to include, and execute the thread of each subservice process;It is described Abnormal subservice process is a sub- operation flow at least one described subservice process;Service node determining module is used In determining operation flow node corresponding with each subservice process;Execution route obtains module, for obtaining each thread institute The execution route at place;Mapping relations establish module, for establishing and saving between each thread and each execution route Mapping relations;Monitoring programme adding module, for adding corresponding monitoring programme in each operation flow node;The monitoring It include the target monitoring program in program.
Preferably, further includes: empty flowchart drawing module, for drawing empty business corresponding with the target service process Flow chart;Process topological diagram generation module adds in the empty business process map for the calling sequence according to each thread Add each thread, and operation flow node corresponding with each thread, to generate operation flow topological diagram;The execution road It includes: that execution route searches submodule that diameter, which obtains module, for searching each thread institute according to the operation flow topological diagram The execution route at place.
Preferably, it includes: first node acquisition submodule that the node to be processed, which obtains module, for holding when the exception When the number of all operation flow nodes on walking along the street diameter is less than threshold value node number, all operation flow nodes are made For the operation flow node to be processed;Second node acquisition submodule, for working as the number of all operation flow nodes When more than or equal to the threshold value node number, according to position of all operation flow nodes on the abnormal execution route Confidence breath, selects the operation flow node to be processed.
Preferably, the second node acquisition submodule includes: abnormal nodes acquisition submodule, for according to the position Information obtains the operation flow node to be processed for meeting following condition on the abnormal execution route: being located at the abnormal traffic First the first several operation flow node before flow nodes, second after the abnormal traffic flow nodes The second several operation flow nodes, the third operation flow node of the third number on the abnormal execution route and position In the 4th the 4th several operation flow node of the ending of the abnormal execution route;Node acquisition submodule to be processed is used In by the first operation flow node, the second operation flow node, the third operation flow node and the described 4th Operation flow node, as the operation flow node to be processed.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of terminal devices, comprising: memory, processor and It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing Device realizes information acquisition method described in any of the above embodiments when executing.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of computer readable storage medium, the computers It is stored with computer program on readable storage medium storing program for executing, is realized described in any of the above-described when the computer program is executed by processor Information acquisition method.
Compared with prior art, the embodiment of the present invention includes following advantages:
In the embodiment of the present invention, by when monitoring that target service process occurs abnormal, identifying in advance as target industry At least one operation flow node of the corresponding service link configuration of process of being engaged in, runs pre-added at each operation flow node Pitching pile code determines that abnormal traffic flow nodes, abnormal traffic flow nodes are one at least one operation flow node Operation flow node determines the corresponding abnormal execution route of subject thread according to the mapping relations between thread and execution route, For subject thread for executing the corresponding abnormal subservice process of abnormal traffic flow nodes, abnormal subservice process is target service A sub- operation flow in process obtains the operation flow node to be processed being located on abnormal execution route, business to be processed Flow nodes include abnormal traffic flow nodes, and start the target monitoring journey made an addition at operation flow node to be processed in advance Sequence obtains the corresponding Workflow messages of operation flow node to be processed.The embodiment of the present invention is by obtaining abnormal execution route On operation flow node to be processed, and the corresponding Workflow messages of operation flow node to be processed are obtained, so as to obtain The contextual information around abnormal nodes is taken, it, can be quasi- in time in order to carry out detailed analysis to the service node for exception occur True finds out the reason of being abnormal, and improves the accuracy rate checked extremely, and business personnel can be made in time to application software It is repaired.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of information acquisition method provided in an embodiment of the present invention;
Fig. 2 is a kind of step flow chart of information acquisition method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of operation flow topological diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of information acquisition device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of information acquisition device provided in an embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of information acquisition method provided in an embodiment of the present invention is shown, it specifically can be with Include the following steps:
Step 101: when monitoring that target service process occurs abnormal, identifying in advance as the target service process pair At least one the operation flow node for the business processing link configuration answered.
In embodiments of the present invention, target service process refers to the operation flow that terminal is currently running, and such as pays industry Business process, shopping service process etc..
Operation flow node refers to that in the treatment process of target service process, extending for operation flow is other occurring When branch's operation flow (the subservice process referred in following step), an operation flow section is added at extended position Point, for example, sub- commodity shopping operation flow, payment transaction process etc. can be extended for shopping service process, One operation flow node of addition at the position of sub- commodity shopping operation flow has just been started to extend out, payment is just being started to extend out An operation flow node is added at the position of operation flow.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as the sole limitation to the embodiment of the present invention.
Business processing link refers to the business processing link formed in the treatment process of target service process, i.e., with The operation of target service process can add an operation flow node when monitoring new branch's operation flow, So as to form the corresponding business processing link of target service process.
The exception of target service process refers to the exception occurred in the operational process of target service process.Target service The exception of process may include the abnormal conditions such as page exception, network connection exception.
Operation flow abnormal monitoring program can be preset in terminal system, it can be in real time to currently running target Operation flow carries out real-time monitoring, to determine whether target service process exception occurs in the process of running.
Certainly, in the concrete realization, can also using other way monitoring objective operation flow in the process of running whether Occur it is abnormal, specifically, can according to the actual situation depending on, the embodiments of the present invention are not limited thereto.
When monitoring that target service process occurs abnormal, can identify in advance as the corresponding business of target service process At least one operation flow node of link configuration is handled, specifically, identification method can be with are as follows: for target service process correspondence Business processing link configuration operation flow node during, can be with pre-recorded each operation flow node in business processing chain The location of in road, the corresponding relationship of different location Yu operation flow node is established, in turn, in identification operation flow node When, the operation flow node in business processing link can be identified according to above-mentioned corresponding relationship.
It is of course also possible to draw corresponding operation flow topological diagram according to business processing link, can know from topological diagram It Chu not preconfigured operation flow node.
In the concrete realization, those skilled in the art can also be identified using identification method and be matched in business processing link The operation flow node set, the embodiment of the present invention are no longer repeated one by one herein.
And the mode for adding operation flow node can be and monitoring target service process in the process of implementation, out When existing branch's operation flow, a segment mark code can be added at this location, target can be identified by the marker code The branch's operation flow occurred in operation flow, and using the segment mark code as operation flow node.
It is to be appreciated that the marker code of addition is only used for identifying the subservice process occurred in target service process, Physical meaning is had no, running this section of code can't have any impact to the implementation procedure of target service process.
Certainly, in the concrete realization, can also add operation flow node using other way specifically can basis Depending on business demand, the embodiments of the present invention are not limited thereto.
Identifying at least one operation flow section for the corresponding business processing link configuration of target service process in advance After point, step 102 is executed.
Step 102: pre-added pitching pile code at each operation flow node of operation determines abnormal traffic process section Point.
Pitching pile code refers to the code added at operation flow node, in the corresponding operation flow of operation flow node In operational process, pitching pile code can automatically record the log information that operation generates, and believe the log of each pitching pile code record Breath is saved.
Abnormal traffic flow nodes refer to the operation flow node that target service process is abnormal in the process of running, different Normal operation flow node is an operation flow node at least one operation flow node, for example, target service process packet Tri- operation flow nodes of a, b, c are included, when a node is abnormal, then a node is abnormal traffic flow nodes.
Identifying at least one operation flow section for the corresponding business processing link configuration of target service process in advance After point, the pitching pile code made an addition at each operation flow node in advance can be run, is divided with the log information to record Analysis, so that it is determined that going out the abnormal traffic flow nodes at least one operation flow node.
It is held after determining abnormal traffic flow nodes running pre-added pitching pile code at each operation flow node Row step 103.
Step 103: according to the mapping relations between thread and execution route, determining the corresponding abnormal execution road of subject thread Diameter.
In the present invention, by the operation flow node of above-mentioned addition, target service distance can be divided into multiple sons Operation flow, each subservice process in target service process both correspond to an operation flow node, i.e. subservice process It is one-to-one relationship with operation flow node, different subservice processes has unique corresponding operation flow node, example Such as, subservice process includes a, b, c, and operation flow node includes 1,2,3, corresponding relationship are as follows: a-2, b-1, c-3, i.e., sub- industry Business process a and operation flow node 2 have corresponding relationship, and subservice process b and operation flow node 1 have corresponding relationship, sub Operation flow c and operation flow node 3 have corresponding relationship.
Abnormal subservice process is a sub- operation flow in multiple subservice processes, for example, subservice process packet A, b, c are included, in a exception, then a is abnormal subservice process.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as the sole limitation to the embodiment of the present invention.
Thread (thread) refer to operating system be able to carry out operation scheduling minimum unit, it be encompassed within process it In, it is the actual operation unit in stroke.In the present invention, per thread can execute the subservice process on a paths, At some operation flow node, when there are two subservice processes arranged side by side, it can be executed using the thread called In a sub- operation flow, and other threads is called to execute another subservice stream in two subservice processes arranged side by side Journey.
Subject thread is the thread for being used to execute the corresponding abnormal subservice process of abnormal traffic flow nodes.
Execution route refers to go to end since target service process during, road included in implementation procedure Diameter for a target service process, may only include an execution route, also may include a plurality of execution road certainly Diameter, specifically, can according to the actual situation depending on.
Abnormal execution route refers to execution route locating for the corresponding abnormal traffic process of abnormal traffic flow nodes.
After the completion of target service flow processing, it can establish the mapping relations between thread and execution route, pass through The mapping relationship searching goes out the corresponding execution route of subject thread, i.e., abnormal execution route.
According to the mapping relations between thread and execution route, determine the corresponding abnormal execution route of subject thread it Afterwards, step 104 is executed.
Step 104: obtaining the operation flow node to be processed being located on the abnormal execution route;The business to be processed Flow nodes include the abnormal traffic flow nodes.
Operation flow node to be processed refers to the operation flow node being located on abnormal execution route, it is possible to understand that ground, When only having an operation flow node on abnormal execution route, i.e. abnormal traffic flow nodes can be by the abnormal traffic process Node is as operation flow node to be processed.And when there is multiple operation flow nodes on abnormal execution route, it can be by exception Certain several operation flow node in multiple operation flow nodes on execution route are as operation flow node to be processed, specifically Ground, can be from the one or more operation flow nodes work selected around abnormal traffic flow nodes in multiple operation flow nodes For operation flow node to be processed.
Certainly, necessarily include abnormal traffic flow nodes in operation flow node to be processed, obtain and be located at exception Operation flow node to be processed on execution route can be used for carrying out comprehensive analysis to abnormal.
After obtaining the operation flow node to be processed being located on abnormal execution route, step 105 is executed.
Step 105: starting makes an addition to target monitoring program at the operation flow node to be processed in advance, described in acquisition The corresponding Workflow messages of operation flow node to be processed.
After the division for carrying out subservice process according to operation flow node for target service process, in advance in each business Monitoring programme is added at flow nodes, by the procedure information of the available corresponding subservice process of monitoring programme, in turn Subsequent analytic process can be carried out according to the procedure information of acquisition, to determine the reason of being abnormal.
Target monitoring program refers to the monitoring programme for making an addition to operation flow node to be processed.
After obtaining the operation flow node to be processed being located on abnormal execution route, can star make an addition in advance to Target monitoring program at processing business process node, by target monitoring program, so as to get Business Stream to be processed The corresponding Workflow messages of Cheng Jiedian, i.e., the Workflow messages of the corresponding subservice process of operation flow node to be processed, It in turn, can be with outgoing traffic procedure information (Workflow messages be showed in terminal interface), by business personnel according to output Workflow messages analyzed, with determination be abnormal reason for it.
The embodiment of the present invention is by obtaining the one or more Business Stream to be processed on the execution route for abnormal nodes occur (namely there is the upper of abnormal node in the corresponding Workflow messages of Cheng Jiedian, i.e., the Workflow messages around abnormal nodes Context information), it is former can accurately can to find out abnormal generation by business personnel by analyzing contextual information Cause.Information acquisition method provided in an embodiment of the present invention, by identifying pre- when monitoring that target service process occurs abnormal It is first at least one operation flow node of the corresponding service link configuration of target service process, runs at each operation flow node Pre-added pitching pile code determines that abnormal traffic flow nodes, abnormal traffic flow nodes are at least one operation flow section An operation flow node in point determines that subject thread is corresponding different according to the mapping relations between thread and execution route Normal execution route, subject thread is for executing the corresponding abnormal subservice process of abnormal traffic flow nodes, abnormal subservice stream Journey is a sub- operation flow in target service process, obtains the operation flow section to be processed being located on abnormal execution route Point, operation flow node to be processed include abnormal traffic flow nodes, and start and make an addition to operation flow node to be processed in advance The target monitoring program at place obtains the corresponding Workflow messages of operation flow node to be processed.The embodiment of the present invention is by obtaining The operation flow node to be processed on abnormal execution route is taken, and obtains the corresponding operation flow letter of operation flow node to be processed Breath, so as to obtain the contextual information around abnormal nodes, in order to be divided in detail the service node for exception occur Analysis, promptly and accurately can find out the reason of being abnormal, improve the accuracy rate checked extremely, can make business personnel and When application software is repaired.
Referring to Fig. 2, a kind of step flow chart of information acquisition method provided in an embodiment of the present invention is shown, it specifically can be with Include the following steps:
Step 201: in the implementation procedure of the target service process, obtaining the target service process includes at least One sub- operation flow, and execute the thread of each subservice process.
In embodiments of the present invention, target service process refers to the operation flow that terminal is currently running, and such as pays industry Business process, shopping service process etc..
In target service process the division of at least one subservice process be after target service process starts execution, Division conducted in the implementation procedure of target service process, for example, when starting to execute, then being drawn for target service process A It is divided into a sub- operation flow, such as the 1st subservice process, the as trunk of target service process, and is held in the 1st subservice process When row extends two other operation flow to some position, then the two strip operation flows that would extend out are respectively divided into the 2nd Subservice process and the 3rd subservice process, and extend other sub- industry when the 2nd or 3 subservice processes go to some position When process of being engaged in, in the division for carrying out subservice process, i.e. the n-th subservice process, n is the positive integer more than or equal to 4, in extended spot Operation flow node can be added, and adds corresponding monitoring programme at operation flow node, is obtained and is corresponded to real time monitoring Subservice process on procedure information, will be described in following step, and so on, as target service process is real-time Ground carry out subservice process division, and for subservice process divide number, can according to the actual situation depending on, the present invention Embodiment is without restriction to this.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as the sole limitation to the embodiment of the present invention.
It may include at least one subservice process, certainly, the exception referred in following step in target service process Subservice process is a sub- operation flow at least one subservice process.
Thread (thread) refer to operating system be able to carry out operation scheduling minimum unit, it be encompassed within process it In, it is the actual operation unit in stroke.
In the present invention, in the implementation procedure of target service process, due to occurring two at same operation flow node It is that different threads is called to execute, for example, the corresponding operation flow node of subservice process A when a subservice process arranged side by side There are three subservice processes arranged side by side in place, including process 1, process 2 and process 3, process 1 are executed by thread a, process 2 It is to be executed by thread b, process 3 is executed by thread c, wherein thread a is the thread for executing subservice process A.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as the sole limitation to the embodiment of the present invention.
And in the implementation procedure of target service process, the available thread for executing each execution route.Specifically obtain Take process can be with are as follows: when executing a certain subservice process, called thread can be monitored, thus the line that record is called Journey, to determine the thread for executing a certain subservice process.
Certainly, in the concrete realization, the graticule journey for executing each subservice process, this hair can also be obtained using other way Bright embodiment is without restriction to this.
It, can be according to each subservice stream after obtaining at least one subservice process that target service process includes Journey obtains the thread for executing each subservice process.
In the implementation procedure of target service process, at least one subservice process that target service process includes is obtained, And after executing the thread of each subservice process, step 202 is executed.
Step 202: determining operation flow node corresponding with each subservice process.
In the implementation procedure of target service process, subservice process can be extended, and extending subservice process When, can using extended position as operation flow node, in turn, target service process extend multiple subservice processes it Afterwards, it can determine that corresponding extended position, i.e., each operation flow node obtain in the implementation procedure of target service process After at least one subservice process that target service process includes, at least one subservice stream can be determined according to extended position The corresponding operation flow node of journey.
And the mode for adding operation flow node can be and monitoring target service process in the process of implementation, out When existing branch's operation flow, a segment mark code can be added at this location, target can be identified by the marker code The branch's operation flow occurred in operation flow, and using the segment mark code as operation flow node.
It is to be appreciated that the marker code of addition is only used for identifying the subservice process occurred in target service process, Physical meaning is had no, running this section of code can't have any impact to the implementation procedure of target service process.
Certainly, in the concrete realization, can also add operation flow node using other way specifically can basis Depending on business demand, the embodiments of the present invention are not limited thereto.
Obtaining target service process at least one subservice process for including, and execute each subservice process thread it Afterwards, the operation flow node for the addition of each subservice process can also be got.
Step 203: drawing empty business process map corresponding with the target service process.
Empty business process map refers to the blank sheet drawn for the implementation procedure to target service process, i.e., to mesh Before the corresponding chain graph of implementation procedure drafting for marking operation flow, the blank sheet being pre-created, and in the follow-up process, according to The implementation procedure of target service process draws business in blank sheet and executes link.
Before the execution of target service process or in implementation procedure, or after the completion of execution, it can draw and target service stream The corresponding empty business process map of journey, can be depending on business demand for the drafting time of specific empty business process map, this Inventive embodiments are without restriction to this.
The process of empty operation flow is drawn, can be drawn, that is, created using installed drafting instrument in terminal The drawing interface of one blank, and the drawing interface and target service process are associated.
It is of course also possible in the implementation procedure of target service process, by calling the program code on backstage to draw automatically One empty business process map, to add corresponding contents according to the implementation procedure of target service process.
For the drafting mode of empty business process map can according to the actual situation depending on, the embodiment of the present invention is not subject to this Limitation.
Step 204: according to the calling sequence of each thread, each thread is added in the empty business process map, And operation flow node corresponding with each thread, to generate operation flow topological diagram.
Operation flow topological diagram refers to the implementation procedure according to target service process, the industry that will be added in target service process Business flow nodes and the thread for executing the corresponding subservice process of each operation flow make an addition to after sky business process map, generation The execution chain graph of operation flow, i.e. operation flow topological diagram are according to the implementation procedure of target service process, by each thread, industry Business flow nodes make an addition to what sky business process map generated later.
After drawing empty business process map corresponding with target service process, can according to each thread calling sequentially, Multiple square boxes can be added in empty operation flow, and assign corresponding number mark for each square box, pass through digital table The thread and the corresponding operation flow node of each thread for showing the subservice process in processing square box, it is thus possible to generate business Process topological diagram.For example, referring to Fig. 3, a kind of schematic diagram of operation flow topological diagram provided in an embodiment of the present invention is shown, such as Shown in Fig. 3, circle indicates that an operation flow node, each operation flow node correspond to a sub- operation flow, use step It indicates, as shown, can add phase when there is new subservice process with the implementation procedure of target service process The operation flow node answered, arrow as shown in the figure is the sequence that executes for representing operation flow, such as in the corresponding subservice stream of step3 After Cheng Zhihang is completed, two sub- operation flows, i.e. step4 and the corresponding subservice process of step5 are derived, then is added Two operation flow nodes of step4 and step5.Rectangle frame indicates a business, is indicated with Biz, assigns for each square box Number mark can indicate corresponding thread, as shown, square box it is corresponding label include 1,2,3,4, respectively indicate line Journey 1, thread 2, thread 3 and thread 4, for example, thread 1 executes two sub- operation flows starting of Root Biz: step1 and The corresponding subservice process of step2, and a sub- operation flow of ending: the corresponding subservice process of step9, and hold Two sub- operation flows in row sub_Biz1: the corresponding subservice process of step3 and step4;And thread 2 executes The corresponding subservice process of step1 and step2;Thread 3 executes the corresponding subservice process of step8;Thread 4 executes The corresponding subservice process of step7.One business may include several operation flow nodes, and Root Biz indicates target service Process contains two operation flow nodes, i.e. step1 and step2 in rectangle frame Root Biz in Root Biz. Sub_Biz1 is emerging operation flow after the completion of step2 is executed, and two operation flow sections are contained in sub_Biz1 Point, i.e. step1 and step2 in rectangle sub_Biz1, the corresponding subservice process of step1 in sub_Biz1 execute completion Later, two sub- operation flows have been split out, i.e. step2 in sub_Biz1 and the step2 in another rectangle;With Sub_biz1 can also continue to split out new subservice process sub_sub_biz and sub_sub_biz_otherthread.And After the completion of final execution, after the corresponding subservice process of step3 in Root Biz executes completion, target service process is indicated Completion is all executed.
By Fig. 3 it is known that the subservice process on same execution route can be executed by same thread, and a certain When occurring two subservice processes arranged side by side at operation flow node, then the other threads of one of subservice process invocation execute.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as the sole limitation to the embodiment of the present invention.
In turn, in the present invention it is possible to according to the calling sequence of each thread, each thread is added in empty business process map, And operation flow node corresponding with each thread, to generate operation flow topological diagram.
After generating operation flow topological diagram, step 204 is executed.
Step 205: obtaining execution route locating for each thread.
After generating operation flow topological diagram, execution road locating for each thread can be obtained according to operation flow topological diagram Diameter is specifically described with embodiments discussed below.
In one preferred embodiment of the invention, above-mentioned steps 205 may include:
Sub-step A: according to the operation flow topological diagram, execution route locating for each thread is searched.
In embodiments of the present invention, execution route locating for each thread, such as Fig. 3 can be searched according to business distance topological diagram It is shown, after mistake occurs for some subservice process, it can recorde business corresponding to the lower subservice process that mistake occurs Flow nodes pass through operation flow node (the abnormal traffic process section i.e. in the embodiment of the present invention of mistake before finally reporting Point) path for setting gradually lookup is recalled upwards, merge the operation flow node of different threads, to get abnormal traffic stream Path locating for Cheng Jiedian.
By the above-mentioned means, execution route locating for available each thread, it is possible to understand that ground, a thread are likely to be at On one execution route, it is also possible on a plurality of execution route, specifically, can according to the actual situation depending on.
After obtaining execution route locating for each thread, step 206 is executed.
Step 206: establishing and save the mapping relations between each thread and each execution route.
After obtaining execution route locating for each thread, the mapping that can establish between each thread and each execution route is closed System, and the mapping relations are saved.
Specifically, when an execution route corresponds to two or more threads, it can establish the execution route With the mapping relations between multiple threads, and records on execution route and specifically which operation flow node others occur at Thread, consequently facilitating searching execution route locating for abnormal traffic flow nodes in such a way that thread merges in subsequent process.
Step 207: adding corresponding monitoring programme in each operation flow node;Comprising described in the monitoring programme Target monitoring program.
After the division for carrying out subservice process according to operation flow node for target service process, in advance in each business Monitoring programme is added at flow nodes, by the procedure information of the available corresponding subservice process of monitoring programme, in turn Subsequent analytic process can be carried out according to the procedure information of acquisition, to determine the reason of being abnormal.
It include the target monitoring program referred in following step in multiple monitoring programmes, target monitoring program, which refers to, to be added It is added on the monitoring programme of operation flow node to be processed.
After the corresponding monitoring programme of addition at each operation flow node, step 208 is executed.
Step 208: when monitoring that target service process occurs abnormal, identifying in advance as the target service process pair At least one the operation flow node for the business processing link configuration answered.
When monitoring that target service process occurs abnormal, can identify in advance as the corresponding business of target service process At least one operation flow node of link configuration is handled, specifically, identification method can be with are as follows: pre- at the node of operation flow It is first added with pitching pile code, the operation flow node configured in business processing link can be identified according to pitching pile code;When So, corresponding operation flow topological diagram can also be drawn according to business processing link, can identifies from topological diagram and matches in advance The operation flow node set.
In the concrete realization, those skilled in the art can also be identified using identification method and be matched in business processing link The operation flow node set, the embodiment of the present invention are no longer repeated one by one herein.
Identifying at least one operation flow section for the corresponding business processing link configuration of target service process in advance After point, step 209 is executed.
Step 209: pre-added pitching pile code at each operation flow node of operation determines abnormal traffic process section Point.
Pitching pile code refers to the code added at operation flow node, in the corresponding operation flow of operation flow node In operational process, pitching pile code can automatically record the log information that operation generates, and believe the log of each pitching pile code record Breath is saved.
Abnormal traffic flow nodes refer to the operation flow node that target service process is abnormal in the process of running, different Normal operation flow node is an operation flow node at least one operation flow node, for example, target service process packet Tri- operation flow nodes of a, b, c are included, when a node is abnormal, then a node is abnormal traffic flow nodes.
Identifying at least one operation flow section for the corresponding business processing link configuration of target service process in advance After point, the pitching pile code made an addition at each operation flow node in advance can be run, is divided with the log information to record Analysis, so that it is determined that going out the abnormal traffic flow nodes at least one operation flow node.
It is held after determining abnormal traffic flow nodes running pre-added pitching pile code at each operation flow node Row step 210.
Step 210: according to the mapping relations between thread and execution route, determining the corresponding abnormal execution road of subject thread Diameter.
Subject thread refers to for executing the corresponding abnormal subservice process of abnormal traffic flow nodes.
Abnormal execution route refers to execution route locating for the corresponding abnormal traffic process of abnormal traffic flow nodes.
After the completion of target service flow processing, it can establish the mapping relations between thread and execution route, pass through The mapping relationship searching goes out the corresponding execution route of subject thread, i.e., abnormal execution route.
It certainly, can be using the side for merging thread in the case where for that may include multiple threads on an execution route Formula determines abnormal execution route locating for abnormal traffic flow nodes, specifically, it is possible, firstly, to obtain the abnormal sub- industry of execution The thread for process of being engaged in, and the thread of first sub- operation flow in performance objective operation flow is obtained, pass through the calling of thread Mode gradually merges from the thread for executing first sub- operation flow, to the thread for executing abnormal subservice process and in exception Whether occur executing the thread of other branch's operation flows after subservice process, so as to form a complete execution road Diameter, i.e., abnormal execution route.
According to the mapping relations between thread and execution route, determine the corresponding abnormal execution route of subject thread it Afterwards, step 211 is executed, or executes step 212.
Step 211: when the number of all operation flow nodes on the abnormal execution route is less than threshold value node number When, it regard all operation flow nodes as the operation flow node to be processed.
Threshold value node number refers to preset by business personnel with all service nodes on abnormal execution route The corresponding threshold value of number, threshold value node number can be 8,10,15 etc., specifically, can be depending on business demand, the present invention Embodiment is without restriction to this.
Operation flow node to be processed refers to the operation flow node being located on abnormal execution route, it is possible to understand that ground, When only having an operation flow node on abnormal execution route, i.e. abnormal traffic flow nodes can be by the abnormal traffic process Node is as operation flow node to be processed.And when there is multiple operation flow nodes on abnormal execution route, it can be by exception Certain several operation flow node in multiple operation flow nodes on execution route are as operation flow node to be processed, specifically Ground, can be from the one or more operation flow nodes work selected around abnormal traffic flow nodes in multiple operation flow nodes For operation flow node to be processed.
Specifically, when the number of all operation flow nodes on abnormal execution route is less than threshold value node number, then It regard all operation flow nodes on abnormal execution route as operation flow node to be processed.
Step 212: when the number of all operation flow nodes is greater than or equal to the threshold value node number, according to Location information of all operation flow nodes on the abnormal execution route, selects the operation flow section to be processed Point.
It, can be with when the number of all operation flow nodes on abnormal execution route is greater than or equal to threshold value node number According to location information of all operation flow nodes on abnormal execution route, operation flow node to be processed is selected, specifically Ground is described in detail with embodiments discussed below.
In one preferred embodiment of the invention, above-mentioned steps 212 may include:
Sub-step B1: it according to the location information, obtains and meets the to be processed of following condition on the abnormal execution route Operation flow node: first the first several operation flow node before the abnormal traffic flow nodes is located at institute Second the second several operation flow node after abnormal traffic flow nodes is stated, positioned at the beginning of the abnormal execution route Third number third operation flow node, and the 4th the 4th several business of the ending positioned at the abnormal execution route Flow nodes;
Sub-step B2: by the first operation flow node, the second operation flow node, the third operation flow Node and the 4th operation flow node, as the operation flow node to be processed.
In embodiments of the present invention, the first operation flow node refers to is located at abnormal traffic process on abnormal execution route First several operation flow node before node.
Second operation flow node refers to second be located at after abnormal traffic flow nodes on abnormal execution route Several operation flow nodes.
Third operation flow node refers on abnormal execution route, according to the corresponding subservice process of operation flow node Execution sequencing, the operation flow node of execution sequence third number at first.
4th operation flow node refers on abnormal execution route, according to the corresponding subservice stream of operation flow node The execution sequencing of journey, the 4th last several operation flow node of execution sequence.
Above-mentioned first number, second number, third number, the corresponding numerical value of the 4th number can be all identical, Can part it is identical, can also be all different, specifically, can according to the actual situation depending on, this is not added in the embodiment of the present invention With limitation.
It, can be with when the number of all operation flow nodes on abnormal execution route is greater than or equal to threshold value node number According to location information of all operation flow nodes on abnormal execution route, obtain before being located at abnormal traffic flow nodes First the first several operation flow node, second after abnormal traffic flow nodes the second several operation flow section Point, positioned at abnormal execution route beginning third number third operation flow node and positioned at the ending of abnormal execution route The 4th the 4th several operation flow node, for example, when threshold value node number be 11, when all industry on abnormal execution route 2 operation flows when the number for flow nodes of being engaged in is greater than 11, before can choose 3 operation flow node+abnormal nodes of beginning 2 operation flow nodes+operation flow node of ending 3 after node+abnormal traffic flow nodes+abnormal nodes, as to Processing business process node.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating Example, not as the sole limitation to the embodiment of the present invention.
After obtaining operation flow node to be processed, step 213 is executed.
Step 213: starting makes an addition to target monitoring program at the operation flow node to be processed in advance, described in acquisition The corresponding Workflow messages of operation flow node to be processed.
After the division for carrying out subservice process according to operation flow node for target service process, in advance in each business Monitoring programme is added at flow nodes, by the procedure information of the available corresponding subservice process of monitoring programme, in turn Subsequent analytic process can be carried out according to the procedure information of acquisition, to determine the reason of being abnormal.
Target monitoring program refers to the monitoring programme for making an addition to operation flow node to be processed.
After obtaining the operation flow node to be processed being located on abnormal execution route, can star make an addition in advance to Target monitoring program at processing business process node, by target monitoring program, so as to get Business Stream to be processed The corresponding Workflow messages of Cheng Jiedian, i.e., the Workflow messages of the corresponding subservice process of operation flow node to be processed, In turn, it can be analyzed according to the Workflow messages of acquisition, reason for it is abnormal with determination.
The embodiment of the present invention occurs the contextual information of abnormal node by obtaining, in order to the business abnormal to appearance Node carries out detailed analysis, promptly and accurately can find out the reason of being abnormal, improve the accuracy rate checked extremely.
Information acquisition method provided in an embodiment of the present invention, by knowing when monitoring that target service process occurs abnormal It Chu be not in advance at least one operation flow node of the corresponding service link configuration of target service process, run each operation flow Pre-added pitching pile code at node determines that abnormal traffic flow nodes, abnormal traffic flow nodes are at least one business An operation flow node in flow nodes determines subject thread pair according to the mapping relations between thread and execution route The abnormal execution route answered, subject thread are abnormal sub for executing the corresponding abnormal subservice process of abnormal traffic flow nodes Operation flow is a sub- operation flow in target service process, obtains the Business Stream to be processed being located on abnormal execution route Cheng Jiedian, operation flow node to be processed include abnormal traffic flow nodes, and start and make an addition to operation flow to be processed in advance Target monitoring program at node obtains the corresponding Workflow messages of operation flow node to be processed.The embodiment of the present invention is logical The operation flow node to be processed obtained on abnormal execution route is crossed, and obtains the corresponding Business Stream of operation flow node to be processed Journey information, so as to obtain the contextual information around abnormal nodes, in order to detailed to there is abnormal service node progress Subdivision analysis, promptly and accurately can find out the reason of being abnormal, improve the accuracy rate checked extremely, can make business people Member in time repairs application software.
Referring to Fig. 4, a kind of structural schematic diagram of information acquisition device provided in an embodiment of the present invention is shown, it specifically can be with Including following module:
Service node identification module 301, for when monitoring that target service process occurs abnormal, identifying in advance as institute State at least one operation flow node of the corresponding business processing link configuration of target service process;
Abnormal nodes determining module 302, for running pre-added pitching pile code at each operation flow node, really Determine abnormal traffic flow nodes;The abnormal traffic flow nodes are a business at least one described operation flow node Flow nodes;
Off path determining module 303, for determining subject thread according to the mapping relations between thread and execution route Corresponding exception execution route;The subject thread is for executing the corresponding abnormal subservice stream of the abnormal traffic flow nodes Journey, the exception subservice process are a sub- operation flow in the target service process;
Node to be processed obtains module 304, for obtaining the operation flow to be processed being located on the abnormal execution route Node;The operation flow node to be processed includes the abnormal traffic flow nodes;
Business information obtaining module 305, for starting the target made an addition at the operation flow node to be processed in advance Monitoring programme obtains the corresponding Workflow messages of the operation flow node to be processed.
Information acquisition device provided in an embodiment of the present invention, by knowing when monitoring that target service process occurs abnormal It Chu be not in advance at least one operation flow node of the corresponding service link configuration of target service process, run each operation flow Pre-added pitching pile code at node determines that abnormal traffic flow nodes, abnormal traffic flow nodes are at least one business An operation flow node in flow nodes determines subject thread pair according to the mapping relations between thread and execution route The abnormal execution route answered, subject thread are abnormal sub for executing the corresponding abnormal subservice process of abnormal traffic flow nodes Operation flow is a sub- operation flow in target service process, obtains the Business Stream to be processed being located on abnormal execution route Cheng Jiedian, operation flow node to be processed include abnormal traffic flow nodes, and start and make an addition to operation flow to be processed in advance Target monitoring program at node obtains the corresponding Workflow messages of operation flow node to be processed.The embodiment of the present invention is logical The operation flow node to be processed obtained on abnormal execution route is crossed, and obtains the corresponding Business Stream of operation flow node to be processed Journey information, so as to obtain the contextual information around abnormal nodes, in order to detailed to there is abnormal service node progress Subdivision analysis, promptly and accurately can find out the reason of being abnormal, improve the accuracy rate checked extremely, can make business people Member in time repairs application software.
Referring to Fig. 5, a kind of structural schematic diagram of information acquisition device provided in an embodiment of the present invention is shown, it specifically can be with Including following module:
Process thread obtains module 401, for obtaining the target industry in the implementation procedure of the target service process At least one subservice process that business process includes, and execute the thread of each subservice process;The exception subservice stream Journey is a sub- operation flow at least one described subservice process;
Service node determining module 402, for determining operation flow node corresponding with each subservice process;
Empty flowchart drawing module 403, for drawing empty business process map corresponding with the target service process;
Process topological diagram generation module 404, for the calling sequence according to each thread, in the empty business process map Each thread of middle addition, and operation flow node corresponding with each thread, to generate operation flow topological diagram;
Execution route obtains module 405, for obtaining execution route locating for each thread;
Mapping relations establish module 406, for establishing and saving reflecting between each thread and each execution route Penetrate relationship;
Monitoring programme adding module 407, for adding corresponding monitoring programme in each operation flow node;The prison Controlling includes the target monitoring program in program;
Service node identification module 408, for when monitoring that target service process occurs abnormal, identifying in advance as institute State at least one operation flow node of the corresponding business processing link configuration of target service process;
Abnormal nodes determining module 409, for running pre-added pitching pile code at each operation flow node, really Determine abnormal traffic flow nodes;The abnormal traffic flow nodes are a business at least one described operation flow node Flow nodes;
Off path determining module 410, for determining subject thread according to the mapping relations between thread and execution route Corresponding exception execution route;The subject thread is for executing the corresponding abnormal subservice stream of the abnormal traffic flow nodes Journey, the exception subservice process are a sub- operation flow in the target service process;
Node to be processed obtains module 411, for obtaining the operation flow to be processed being located on the abnormal execution route Node;The operation flow node to be processed includes the abnormal traffic flow nodes;
Business information obtaining module 412, for starting the target made an addition at the operation flow node to be processed in advance Monitoring programme obtains the corresponding Workflow messages of the operation flow node to be processed.
Preferably, the execution route acquisition module 405 includes:
Execution route searches submodule, for searching and holding locating for each thread according to the operation flow topological diagram Walking along the street diameter.
Preferably, the node acquisition module 411 to be processed includes:
First node acquisition submodule 4111, for when all operation flow nodes on the abnormal execution route When number is less than threshold value node number, it regard all operation flow nodes as the operation flow node to be processed;
Second node acquisition submodule 4112 is greater than or equal to described for the number when all operation flow nodes When threshold value node number, according to location information of all operation flow nodes on the abnormal execution route, select The operation flow node to be processed.
Preferably, the second node acquisition submodule 4112 includes:
Abnormal nodes acquisition submodule, for obtaining and meeting such as on the abnormal execution route according to the location information The operation flow node to be processed of lower condition: first the first several Business Stream before the abnormal traffic flow nodes Cheng Jiedian, second the second several operation flow node after the abnormal traffic flow nodes are located at the exception The third operation flow node of third number on execution route, and the 4th number of the ending positioned at the abnormal execution route The 4th operation flow node;
Node acquisition submodule to be processed, for by the first operation flow node, the second operation flow node, The third operation flow node and the 4th operation flow node, as the operation flow node to be processed.
Information acquisition device provided in an embodiment of the present invention, by knowing when monitoring that target service process occurs abnormal It Chu be not in advance at least one operation flow node of the corresponding service link configuration of target service process, run each operation flow Pre-added pitching pile code at node determines that abnormal traffic flow nodes, abnormal traffic flow nodes are at least one business An operation flow node in flow nodes determines subject thread pair according to the mapping relations between thread and execution route The abnormal execution route answered, subject thread are abnormal sub for executing the corresponding abnormal subservice process of abnormal traffic flow nodes Operation flow is a sub- operation flow in target service process, obtains the Business Stream to be processed being located on abnormal execution route Cheng Jiedian, operation flow node to be processed include abnormal traffic flow nodes, and start and make an addition to operation flow to be processed in advance Target monitoring program at node obtains the corresponding Workflow messages of operation flow node to be processed.The embodiment of the present invention is logical The operation flow node to be processed obtained on abnormal execution route is crossed, and obtains the corresponding Business Stream of operation flow node to be processed Journey information, so as to obtain the contextual information around abnormal nodes, in order to detailed to there is abnormal service node progress Subdivision analysis, promptly and accurately can find out the reason of being abnormal, improve the accuracy rate checked extremely, can make business people Member in time repairs application software.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Optionally, the present invention also provides a kind of terminal devices, comprising: memory, processor and is stored in the memory Computer program that is upper and can running on the processor, the computer program is realized above-mentioned when being executed by the processor Each process of information acquisition method embodiment, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
Optionally, it the present invention also provides a kind of computer readable storage medium, is deposited on the computer readable storage medium Computer program is contained, the computer program realizes the step in information acquisition method as described above when being executed by processor Suddenly.Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), at random Access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
In the embodiment of the present invention, by when monitoring that target service process occurs abnormal, identifying in advance as target industry At least one operation flow node of the corresponding service link configuration of process of being engaged in, runs pre-added at each operation flow node Pitching pile code determines that abnormal traffic flow nodes, abnormal traffic flow nodes are one at least one operation flow node Operation flow node determines the corresponding abnormal execution route of subject thread according to the mapping relations between thread and execution route, For subject thread for executing the corresponding abnormal subservice process of abnormal traffic flow nodes, abnormal subservice process is target service A sub- operation flow in process obtains the operation flow node to be processed being located on abnormal execution route, business to be processed Flow nodes include abnormal traffic flow nodes, and start the target monitoring journey made an addition at operation flow node to be processed in advance Sequence obtains the corresponding Workflow messages of operation flow node to be processed.The embodiment of the present invention is by obtaining abnormal execution route On operation flow node to be processed, and the corresponding Workflow messages of operation flow node to be processed are obtained, so as to obtain The contextual information around abnormal nodes is taken, it, can be quasi- in time in order to carry out detailed analysis to the service node for exception occur True finds out the reason of being abnormal, and improves the accuracy rate checked extremely, and business personnel can be made in time to application software It is repaired.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of information acquisition method provided by the present invention, a kind of information acquisition device, a kind of terminal device and A kind of computer readable storage medium, is described in detail, and specific case used herein is to the principle of the present invention and reality The mode of applying is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Together When, for those of ordinary skill in the art, according to the thought of the present invention, have in specific embodiments and applications Change place, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (12)

1. a kind of information acquisition method characterized by comprising
When monitoring that target service process occurs abnormal, identify in advance as the corresponding business processing of the target service process At least one operation flow node of link configuration;
Pre-added pitching pile code at each operation flow node is run, determines abnormal traffic flow nodes;The exception Operation flow node is an operation flow node at least one described operation flow node;
According to the mapping relations between thread and execution route, the corresponding abnormal execution route of subject thread is determined;The target For thread for executing the corresponding abnormal subservice process of the abnormal traffic flow nodes, the exception subservice process is described A sub- operation flow in target service process;
Obtain the operation flow node to be processed being located on the abnormal execution route;The operation flow node to be processed includes The abnormal traffic flow nodes;
Starting makes an addition to the target monitoring program at the operation flow node to be processed in advance, obtains the Business Stream to be processed The corresponding Workflow messages of Cheng Jiedian.
2. the method according to claim 1, wherein identifying in advance described as the target service process pair Before at least one the operation flow node for the business processing link configuration answered, further includes:
In the implementation procedure of the target service process, at least one subservice stream that the target service process includes is obtained Journey, and execute the thread of each subservice process;The exception subservice process is at least one described subservice process A sub- operation flow;
Determining operation flow node corresponding with each subservice process;
Obtain execution route locating for each thread;
It establishes and saves the mapping relations between each thread and each execution route;
Corresponding monitoring programme is added in each operation flow node;It include the target monitoring journey in the monitoring programme Sequence.
3. according to the method described in claim 2, it is characterized in that, described corresponding with each subservice process in the determination Operation flow node after, further includes:
Draw empty business process map corresponding with the target service process;
According to the calling sequence of each thread, add each thread in the empty business process map, and with each line The corresponding operation flow node of journey, to generate operation flow topological diagram;
Described the step of obtaining execution route locating for each thread, comprising:
According to the operation flow topological diagram, execution route locating for each thread is searched.
4. the method according to claim 1, wherein it is described obtain be located on the abnormal execution route wait locate Manage operation flow node, comprising:
It, will be described all when the number of all operation flow nodes on the abnormal execution route is less than threshold value node number Operation flow node is used as the operation flow node to be processed;
When the number of all operation flow nodes is greater than or equal to the threshold value node number, according to all business Location information of the flow nodes on the abnormal execution route, selects the operation flow node to be processed.
5. according to the method described in claim 4, it is characterized in that, it is described according to all operation flow nodes described different Location information on normal execution route, selects the operation flow node to be processed, comprising:
According to the location information, the operation flow node to be processed for meeting following condition on the abnormal execution route is obtained: First the first several operation flow node before the abnormal traffic flow nodes is located at the abnormal traffic process Second the second several operation flow node after node, the third industry of the third number on the abnormal execution route Business flow nodes, and the 4th the 4th several operation flow node of the ending positioned at the abnormal execution route;
By the first operation flow node, the second operation flow node, the third operation flow node and described Four operation flow nodes, as the operation flow node to be processed.
6. a kind of information acquisition device characterized by comprising
Service node identification module, for when monitoring that target service process occurs abnormal, identifying in advance as the target At least one operation flow node of the corresponding business processing link configuration of operation flow;
Abnormal nodes determining module determines abnormal for running pre-added pitching pile code at each operation flow node Operation flow node;The abnormal traffic flow nodes are an operation flow section at least one described operation flow node Point;
Off path determining module, for determining that subject thread is corresponding according to the mapping relations between thread and execution route Abnormal execution route;The subject thread is for executing the corresponding abnormal subservice process of the abnormal traffic flow nodes, institute Stating abnormal subservice process is a sub- operation flow in the target service process;
Node to be processed obtains module, for obtaining the operation flow node to be processed being located on the abnormal execution route;Institute Stating operation flow node to be processed includes the abnormal traffic flow nodes;
Business information obtaining module, for starting the target monitoring journey made an addition at the operation flow node to be processed in advance Sequence obtains the corresponding Workflow messages of the operation flow node to be processed.
7. device according to claim 6, which is characterized in that further include:
Process thread obtains module, for obtaining the target service process in the implementation procedure of the target service process At least one the subservice process for including, and execute the thread of each subservice process;The exception subservice process is institute State a sub- operation flow at least one subservice process;
Service node determining module, for determining operation flow node corresponding with each subservice process;
Execution route obtains module, for obtaining execution route locating for each thread;
Mapping relations establish module, for establishing and saving the mapping relations between each thread and each execution route;
Monitoring programme adding module, for adding corresponding monitoring programme in each operation flow node;The monitoring programme In include the target monitoring program.
8. device according to claim 7, which is characterized in that further include:
Empty flowchart drawing module, for drawing empty business process map corresponding with the target service process;
Process topological diagram generation module adds in the empty business process map for the calling sequence according to each thread Each thread, and operation flow node corresponding with each thread, to generate operation flow topological diagram;
The execution route obtains module
Execution route searches submodule, for searching execution road locating for each thread according to the operation flow topological diagram Diameter.
9. device according to claim 6, which is characterized in that the node to be processed obtains module and includes:
First node acquisition submodule, for being less than threshold when the number of all operation flow nodes on the abnormal execution route When value node number, it regard all operation flow nodes as the operation flow node to be processed;
Second node acquisition submodule is greater than or equal to the threshold value node for the number when all operation flow nodes When number, according to location information of all operation flow nodes on the abnormal execution route, select described wait locate Manage operation flow node.
10. device according to claim 9, which is characterized in that the second node acquisition submodule includes:
Abnormal nodes acquisition submodule, for obtaining and meeting following item on the abnormal execution route according to the location information The operation flow node to be processed of part: first the first several operation flow section before the abnormal traffic flow nodes Point, second the second several operation flow node after the abnormal traffic flow nodes are located at the abnormal execution The third operation flow node of third number on path, and positioned at the 4th of ending of the abnormal execution route several the Four operation flow nodes;
Node acquisition submodule to be processed, for by the first operation flow node, the second operation flow node, described Third operation flow node and the 4th operation flow node, as the operation flow node to be processed.
11. a kind of terminal device characterized by comprising memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in information acquisition method.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the acquisition of information side as described in any one of claims 1 to 5 when the computer program is executed by processor Method.
CN201910523114.7A 2019-06-17 2019-06-17 A kind of information acquisition method, device, terminal device and storage medium Pending CN110362475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910523114.7A CN110362475A (en) 2019-06-17 2019-06-17 A kind of information acquisition method, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910523114.7A CN110362475A (en) 2019-06-17 2019-06-17 A kind of information acquisition method, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN110362475A true CN110362475A (en) 2019-10-22

Family

ID=68216269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910523114.7A Pending CN110362475A (en) 2019-06-17 2019-06-17 A kind of information acquisition method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN110362475A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928799A (en) * 2019-12-05 2020-03-27 锐捷网络股份有限公司 Software fault positioning method and device
CN110932910A (en) * 2019-12-05 2020-03-27 锐捷网络股份有限公司 Method and device for recording logs of software faults
CN111897723A (en) * 2020-07-20 2020-11-06 腾讯科技(深圳)有限公司 Method and device for testing application
CN112099768A (en) * 2020-08-04 2020-12-18 北京奇艺世纪科技有限公司 Business process processing method and device and computer readable storage medium
CN112363860A (en) * 2020-11-11 2021-02-12 中国建设银行股份有限公司 Batch processing operation abnormal interruption detection method and device
CN117724891A (en) * 2024-02-07 2024-03-19 荣耀终端有限公司 Service data processing method and service data processing system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040117478A1 (en) * 2000-09-13 2004-06-17 Triulzi Arrigo G.B. Monitoring network activity
CN101242320A (en) * 2008-03-13 2008-08-13 华为技术有限公司 Method and device for monitoring network path
CN103617486A (en) * 2013-11-21 2014-03-05 中国电子科技集团公司第十五研究所 Method and system for conducting dynamic graphical monitoring on complex service processes
CN107015901A (en) * 2016-01-28 2017-08-04 苏宁云商集团股份有限公司 A kind of log analysis method and device
CN107784404A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Alarm method and device are carried out in business procession
CN108255585A (en) * 2016-12-28 2018-07-06 北京奇虎科技有限公司 SDK exception controls and application program operation method, device and its equipment
CN108733563A (en) * 2018-05-18 2018-11-02 平安普惠企业管理有限公司 Business fault treatment method, server-side and the storage medium of application software
CN108833184A (en) * 2018-06-29 2018-11-16 腾讯科技(深圳)有限公司 Service fault localization method, device, computer equipment and storage medium
CN109359949A (en) * 2018-10-30 2019-02-19 中国建设银行股份有限公司 Process methods of exhibiting and device
CN109800098A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Service exception node positioning method, device, computer equipment and storage medium
CN109862379A (en) * 2018-12-29 2019-06-07 北京奇艺世纪科技有限公司 A kind of log processing method, device, mobile terminal and storage medium
CN109873717A (en) * 2019-01-18 2019-06-11 深圳壹账通智能科技有限公司 Monitoring method, device, computer equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040117478A1 (en) * 2000-09-13 2004-06-17 Triulzi Arrigo G.B. Monitoring network activity
CN101242320A (en) * 2008-03-13 2008-08-13 华为技术有限公司 Method and device for monitoring network path
CN103617486A (en) * 2013-11-21 2014-03-05 中国电子科技集团公司第十五研究所 Method and system for conducting dynamic graphical monitoring on complex service processes
CN107015901A (en) * 2016-01-28 2017-08-04 苏宁云商集团股份有限公司 A kind of log analysis method and device
CN107784404A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Alarm method and device are carried out in business procession
CN108255585A (en) * 2016-12-28 2018-07-06 北京奇虎科技有限公司 SDK exception controls and application program operation method, device and its equipment
CN108733563A (en) * 2018-05-18 2018-11-02 平安普惠企业管理有限公司 Business fault treatment method, server-side and the storage medium of application software
CN108833184A (en) * 2018-06-29 2018-11-16 腾讯科技(深圳)有限公司 Service fault localization method, device, computer equipment and storage medium
CN109359949A (en) * 2018-10-30 2019-02-19 中国建设银行股份有限公司 Process methods of exhibiting and device
CN109800098A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Service exception node positioning method, device, computer equipment and storage medium
CN109862379A (en) * 2018-12-29 2019-06-07 北京奇艺世纪科技有限公司 A kind of log processing method, device, mobile terminal and storage medium
CN109873717A (en) * 2019-01-18 2019-06-11 深圳壹账通智能科技有限公司 Monitoring method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
薛海龙等: "Android应用异步编程模型性能分析", 《计算机科学与探索》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928799A (en) * 2019-12-05 2020-03-27 锐捷网络股份有限公司 Software fault positioning method and device
CN110932910A (en) * 2019-12-05 2020-03-27 锐捷网络股份有限公司 Method and device for recording logs of software faults
CN110932910B (en) * 2019-12-05 2022-08-16 锐捷网络股份有限公司 Method and device for recording logs of software faults
CN111897723A (en) * 2020-07-20 2020-11-06 腾讯科技(深圳)有限公司 Method and device for testing application
CN112099768A (en) * 2020-08-04 2020-12-18 北京奇艺世纪科技有限公司 Business process processing method and device and computer readable storage medium
CN112099768B (en) * 2020-08-04 2024-02-23 北京奇艺世纪科技有限公司 Business process processing method and device and computer readable storage medium
CN112363860A (en) * 2020-11-11 2021-02-12 中国建设银行股份有限公司 Batch processing operation abnormal interruption detection method and device
CN117724891A (en) * 2024-02-07 2024-03-19 荣耀终端有限公司 Service data processing method and service data processing system

Similar Documents

Publication Publication Date Title
CN110362475A (en) A kind of information acquisition method, device, terminal device and storage medium
CN104423961B (en) A kind of method and system for generating test script
CN107067163A (en) A kind of breakdown maintenance work dispatching method and device
CN104240496B (en) A kind of determination method and apparatus of trip route
CN108345485A (en) identification method and device for interface view
CN109697500A (en) Data processing method, device, electronic equipment and storage medium
CN106407768B (en) A kind of determination of device-fingerprint, the method and apparatus that target device is identified
CN110609830A (en) Decision engine system based on auditing strategy
CN109710708A (en) A kind of electronic map mapping method and device
CN109063433A (en) Recognition methods, device and the readable storage medium storing program for executing of fictitious users
CN109284180A (en) A kind of method for scheduling task, device, electronic equipment and storage medium
CN112152826A (en) Asset management method, device, system and medium
CN108712428A (en) A kind of method and device carrying out device type identification to terminal
CN114219373A (en) Method, system, device and medium for generating digital process visual flow chart
CN108959374A (en) Date storage method, device and electronic equipment
CN102546235B (en) Performance diagnosis method and system of web-oriented application under cloud computing environment
CA3138761A1 (en) Method, device, computer equipment and storage medium for verifying inter-system data admission
CN109978380A (en) A kind of workflow processing method and device
CN105205062B (en) Date storage method, method for reading data and device
CN112532643A (en) Deep learning-based traffic anomaly detection method, system, terminal and medium
CN108133116A (en) CAD floor plan wall thickness automatic identifying methods and system
CN111325366A (en) Method and device for searching map breakpoint of automatic guided vehicle
CN115098362A (en) Page testing method and device, electronic equipment and storage medium
CN109547252A (en) The method, apparatus and server of instantiated nodes
CN107133391A (en) The generation method and system of construction drawing

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