CN104360939A - Method, equipment and system for positioning fault - Google Patents

Method, equipment and system for positioning fault Download PDF

Info

Publication number
CN104360939A
CN104360939A CN201410593667.7A CN201410593667A CN104360939A CN 104360939 A CN104360939 A CN 104360939A CN 201410593667 A CN201410593667 A CN 201410593667A CN 104360939 A CN104360939 A CN 104360939A
Authority
CN
China
Prior art keywords
server
key point
tracking data
call relation
module
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
CN201410593667.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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201410593667.7A priority Critical patent/CN104360939A/en
Publication of CN104360939A publication Critical patent/CN104360939A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method, equipment and a system for positioning a fault. The method comprises the following steps: collecting trace data of key points of an application program by a client and sending the trace data to a server; receiving the trace data by the server, associating according to the trace data to obtain a main calling relationship among the key points, and writing the trace data and the main calling relationship into the database server to facilitate the querying of the data written in the database server for fault positioning by users. Due to the adoption of the method, the fault can be quickly positioned and the problem is solved.

Description

The method of localizing faults, equipment and system
Technical field
The present invention relates to the communications field, specifically, relate to the method for localizing faults, equipment and system.
Background technology
After transaction application programs develops complete payment O&M, operation maintenance personnel is unclear to program insider transaction logic.Fault cannot quick positioning question after occurring, often delays process and the recovery of fault.
For this problem, prior art uses the Fault Locating Method based on daily record, but whole logical transactions of fault generation time point, the input/output argument, storehouse calling logic etc. of correlation technique cannot be represented by daily record, need after fault occurs, related application daily record is supplied to developer analyze, cause depending on developer unduly, and in concerning security matters units such as banks, developer can not participate in maintenance work, therefore developer cannot directly log in production system orientation problem, and causing trouble is located, settling time is long.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of method of localizing faults, equipment and system, efficiently solving in the mode of existing localizing faults the time long problem depending on developer and localization of fault, solution unduly.
On the one hand, embodiments of the present invention provide a kind of method of localizing faults, and described method comprises:
Client collects the tracking data of the key point of application program, and described tracking data is sent to server;
Server receives described tracking data, the total call relation between described key point is associated out according to described tracking data, and by described tracking data and total call relation write into Databasce server, so that user inquires about the data in said write database server, carry out localization of fault.
Correspondingly, embodiments of the present invention provide a kind of client, and described client comprises:
Tracking module, for collecting the tracking data of the key point of application program;
Sending module, described tracking data for being collected by described tracking module is sent to server, so that described server associates out the total call relation between described key point according to described tracking data, and by described tracking data and total call relation write into Databasce server, so that user inquires about the data in said write database server, carry out localization of fault.
Correspondingly, embodiments of the present invention provide a kind of server, and described server comprises:
Receiver module, for receiving the tracking data of the key point of the application program that client sends;
First relating module, the described tracking data for receiving according to described receiver module associates out the total call relation between described key point;
First memory module, for described total call relation write into Databasce server that the described tracking data that received by described receiver module and described first relating module associate out, so that user inquires about the data in said write database server, carry out localization of fault.
On the other hand, embodiments of the present invention provide a kind of system of localizing faults, and described system comprises: client as above and server as above.
Implement the method for localizing faults provided by the invention, equipment and system can realize fast localizing faults, deal with problems.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for a kind of localizing faults according to embodiment of the present invention;
Fig. 2 be apply according to the host of embodiment of the present invention, the mutual block diagram of client, server end;
Fig. 3 shows an example of the process flow diagram of the client-side shown in Fig. 2;
Fig. 4 shows a kind of embodiment of step S5 shown in Fig. 3;
Fig. 5 is the exhibition method schematic diagram of call relation between the key point according to embodiment of the present invention;
Fig. 6 is the Organization Chart of the system of localizing faults according to embodiment of the present invention;
Fig. 7 shows the structural representation of the client in the system shown in Fig. 6;
Fig. 8 shows the structural representation of a kind of embodiment of the module 110 shown in Fig. 7;
Fig. 9 shows the structural representation of the server in the system shown in Fig. 6;
Figure 10 shows the structural representation of the data display client in the system shown in Fig. 6.
Embodiment
For making the object of embodiments of the invention, technical scheme and advantage clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is the process flow diagram of the method for a kind of localizing faults according to embodiment of the present invention, and see Fig. 1, the method comprises:
S100: client collects the tracking data of the key point of application program, and described tracking data is sent to server.
Wherein, described key point comprises certain kinds, method, the function in application program; Described tracking data comprises the title of key point, entry time, input parameter, deadline, Output rusults, extremely to report an error; The tracking data that client collects the key point of application program can be realized by following steps:
Server described in described client-access, reads described key point;
Insert before and after described key point and follow the tracks of code, collect described tracking data by described tracking code.
S200: server receives described tracking data, the total call relation between described key point is associated out according to described tracking data, and by described tracking data and total call relation write into Databasce server, so that user inquires about the data in said write database server, carry out localization of fault.
Further, described method can also comprise except above-mentioned steps:
Described server, according to described tracking data and described total call relation, associates out the first sub-call relation of each described key point;
And each described first sub-call relation is write described database server.
In addition, described method can also comprise:
Described server identifies trouble spot according to described tracking data;
The entrance of described trouble spot and the second sub-call relation between described trouble spot and entrance is followed the trail of according to described total call relation;
Described second sub-call relation is write described database server.
In addition, described method can also comprise:
Described server calculates the execution time of each described key point and described application program according to described tracking data;
The described execution time of each described key point and described application program is write described database server.
In one embodiment of the invention, described user inquires about the data in said write database server, and carrying out localization of fault can pass through, but is not limited to under type:
Described user sends interaction request to data display client, this data display client receives described interaction request, inquiry request is sent to described server according to described interaction request, receive the data that described server returns, and the data returned by described server are presented to described user to carry out localization of fault, process in the mode such as word, chart.
Provide object lesson below, method provided by the invention is described in detail.The method realizes especially by a server-side application, a database and the client be deployed in tracking target application program (host application).Wherein, host application is write based on dynamic language.
Fig. 2 is that host applies, the mutual block diagram of client, server end.See Fig. 2 be deployed in client application in host application from server end obtain target class, method, function (refer to wish to carry out to follow the tracks of, certain kinds, method, function the application program of fault diagnosis, i.e. key point), by dynamic loading, the amendment mechanism of dynamic language, insert before and after target class, method or function (key point) and follow the tracks of code, collect such, method or function call and perform data and result (i.e. tracking data), and these data are sent to server end.Wherein according to the language difference that host application is write, use corresponding client application.The dynamic language of current support comprises Java, C#.
See Fig. 3, the specific implementation step of said process comprises:
S1: host application starts;
S2: load client application;
S3: client-access server, reads target class, method, function;
S4: insert before and after target class, method, function and follow the tracks of code;
S5: collect tracking data, tracking data is sent to server.
See Fig. 4, the specific implementation process of above-mentioned steps S5 is:
S51: customer transaction request call key point;
S52: follow the tracks of code before performing, collects data;
S53: perform key point;
S54: judged whether that lower one deck calls, if then return step S52, then performs step S55 if not;
S55: follow the tracks of code after execution, collects data;
S56: judged whether that last layer calls, if then perform step S57, then performs step S58 if not;
S57: return upper strata key point and perform step S52;
S58: client sends tracking data to server end.
In front tracking code, the code logic such as record comprises the target class of host application, method, the title of function (key point), entry time, input parameter, database SOL language, paternal method are followed the tracks of number; In rear tracking code, record comprises deadline, the Output rusults of the key point of host application and extremely reports an error.Further, the method that in the present invention, data collected by forward and backward tracking code be based on routine reflection, rely on and inject, towards the programming of tangent plane and the technology of design.
Server-side application is responsible for the data receiving client application transmission, is written to after these data preparations in database server.Server end is responsible for the request receiving data exhibiting client simultaneously, and returns to data exhibiting client after corresponding data being read from database.
Server-side application number to associate following the tracks of in the data write into Databasce gathered and with key point according to the sequencing of acquisition time, a number generation " key point follows the tracks of tree " is followed the tracks of according to father's key point of following the tracks of the key point that code gathers, its each node comprises the unique numeral of an overall situation, the reference object of father node (father's key point follow the tracks of number), an array comprising all child nodes (sub-key point follow the tracks of number).Associate out the total call relation between each key point thus, namely associate out logical transaction in complete program.And can to follow the tracks of number by successively obtaining father key point for arbitrary key point, mode that sub-key point is followed the tracks of number associates out the complete call relation (namely complete transaction path) relevant to this key point, be traceable to other key points by arbitrary key point.In addition, server end can also identify trouble spot, from trouble spot track entrance and between complete call relation.Namely trouble spot points out that existing abnormal key point is called, and meeting output abnormality information after abnormal appearance, therefore can tracked codeacquisition.Identify key point according to abnormal information, and by key point follow the tracks of number traversal be namely traceable to entrance and and entrance between complete call relation.In addition, the entry time that before server end can be deducted by the deadline of collecting with rear tracking code, tracking code is collected calculates the execution time of each key point, is added up the short time consumption of just at every turn concluded the business (each executive utility) execution time of each key point.Can add up transaction and key point the longest consuming time, the shortest consuming time, on average consuming time thus, user can retrieve the transaction or the key point that are greater than certain particular value consuming time.
Technician is by data display client-access server-side application, and the data that viewing client-side is collected also carry out data analysis, localization of fault.The dimension that represents of data exhibiting client comprises in chronological order, by method, to represent the tracking results that server end collects by the dimension such as abnormal.After user selects one to conclude the business by data exhibiting client, show the entry time of this transaction, the entering of deadline and all key points, deadline, input parameter, Output rusults, extremely to report an error and logical transaction (call relation between each key point) in complete program, its detailed process is as follows: find root key point and to follow the tracks of number: what in the node of " key point follows the tracks of tree ", do not have father node is " root key point follow the tracks of number "; By the tracking number of root key point, by all sub-key point tracking number of depth-first traversal, a line shows a key point, and the form of the call relation text indentation between key point represents.Calling of all key points of once concluding the business is shown, i.e. the logical transaction of this transaction, specifically as shown in Figure 5 with this.
After host application breaks down, technician can observe the execution time performance of All Activity by data display client, abnormal conditions.Can check the transaction of appearance exception, all key points of transaction and logical transaction according to abnormal reporting an error, the key point of fault is caused in location.
Fig. 6 is the Organization Chart of the system of localizing faults according to embodiment of the present invention, and see Fig. 6, described system comprises:
Client 100, for performing following operation: the tracking data collecting the key point of application program; Described tracking data is sent to server, so that described server associates out the total call relation between described key point according to described tracking data, and by described tracking data and total call relation write into Databasce server, so that user inquires about the data in said write database server, carry out localization of fault.
Server 200, for performing following operation: the tracking data receiving the key point of the application program that client sends; The total call relation between described key point is associated out according to described tracking data; By described tracking data and total call relation write into Databasce server, so that user inquires about the data in said write database server, carry out localization of fault.
Data display client 300, for performing following operation: the interaction request receiving user, inquiry request is sent to described server according to interaction request, receive the data that described server returns, and the data returned by described server are presented to user to carry out localization of fault, process in the mode such as word, chart.
Fig. 7 shows the structural representation of the client in the system shown in Fig. 6, and see Fig. 7, described client 100 comprises:
Tracking module 110, for collecting the tracking data of the key point of application program.
Wherein, described key point comprises certain kinds, method, the function in application program; Described tracking data comprises the title of key point, entry time, input parameter, deadline, Output rusults, extremely to report an error.
Sending module 120, described tracking data for being collected by described tracking module 110 is sent to server, so that described server associates out the total call relation between described key point according to described tracking data, and by described tracking data and total call relation write into Databasce server, so that user inquires about the data in said write database server, carry out localization of fault.
Fig. 8 shows the structural representation of a kind of embodiment of the tracking module 110 shown in Fig. 7, and see Fig. 8, described tracking module 110 comprises:
Reading unit 111, for accessing described server, reads described key point.
Collector unit 112, inserts described tracking code for before and after the described key point that reads at described reading unit 111, collects described tracking data by described tracking code.
Fig. 9 shows the structural representation of the server in the system shown in Fig. 6, and see Fig. 9, described server 200 comprises:
Receiver module 210, for receiving the tracking data of the key point of the application program that client sends.
First relating module 220, the described tracking data for receiving according to described receiver module 210 associates out the total call relation between described key point.
First memory module 230, for described total call relation write into Databasce server that the described tracking data that received by described receiver module 210 and described first relating module 220 associate out, so that user inquires about the data in said write database server, carry out localization of fault.
And described server 200 can also comprise:
Second relating module, for described total call relation that the described tracking data that receives according to described receiver module and described first relating module associate out, associates out the first sub-call relation of each described key point;
Second memory module, writes described database server for each described first sub-call relation associated out by described second relating module.
In addition, described server 200 can also comprise:
Identification module, identifies trouble spot for the described tracking data received according to described receiver module;
3rd relating module, the described total call relation for associating out according to described first relating module follows the trail of the entrance of described trouble spot and the second sub-call relation between described trouble spot and entrance;
3rd memory module, writes described database server for the described second sub-call relation associated out by described 3rd relating module.
In addition, described server 200 can also comprise:
Statistical module, the described tracking data each described key point of calculating received according to described receiver module and the execution time of described application program;
4th memory module, the described execution time for each described key point that calculated by described statistical module and described application program writes described database server.
Figure 10 shows the structural representation of the data display client 300 in the system shown in Fig. 6.See Figure 10, described data display client 300 comprises:
Data display module 310, for receiving the interaction request of user, send inquiry request to described server according to interaction request, receive the data that described server returns, and the data returned by described server are presented to user to carry out localization of fault, process in the mode such as word, chart.
Implement the method for localizing faults provided by the invention, equipment and system can realize fast localizing faults, deal with problems.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode of software combined with hardware platform, can certainly all be implemented by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, smart mobile phone or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
The term used in instructions of the present invention and wording, just to illustrating, are not meaned and are formed restriction.It will be appreciated by those skilled in the art that under the prerequisite of the ultimate principle not departing from disclosed embodiment, can various change be carried out to each details in above-mentioned embodiment.Therefore, scope of the present invention is only determined by claim, and in the claims, except as otherwise noted, all terms should be understood by the most wide in range rational meaning.

Claims (12)

1. a method for localizing faults, is characterized in that, described method comprises:
Client collects the tracking data of the key point of application program, and described tracking data is sent to server;
Server receives described tracking data, the total call relation between described key point is associated out according to described tracking data, and by described tracking data and total call relation write into Databasce server, so that user inquires about the data in said write database server, carry out localization of fault.
2. the method for claim 1, is characterized in that, the tracking data that described client collects the key point of application program comprises:
Server described in described client-access, reads described key point;
Insert before and after described key point and follow the tracks of code, collect described tracking data by described tracking code.
3. method as claimed in claim 1 or 2, it is characterized in that, described method also comprises:
Described server, according to described tracking data and described total call relation, associates out the first sub-call relation of each described key point;
And each described first sub-call relation is write described database server.
4. method as claimed in claim 1 or 2, it is characterized in that, described method also comprises:
Described server identifies trouble spot according to described tracking data;
The entrance of described trouble spot and the second sub-call relation between described trouble spot and entrance is followed the trail of according to described total call relation;
Described second sub-call relation is write described database server.
5. method as claimed in claim 1 or 2, it is characterized in that, described method also comprises:
Described server calculates the execution time of each described key point and described application program according to described tracking data;
The described execution time of each described key point and described application program is write described database server.
6. a client, is characterized in that, described client comprises:;
Tracking module, for collecting the tracking data of the key point of application program;
Sending module, described tracking data for being collected by described tracking module is sent to server, so that described server associates out the total call relation between described key point according to described tracking data, and by described tracking data and total call relation write into Databasce server, so that user inquires about the data in said write database server, carry out localization of fault.
7. client as claimed in claim 6, it is characterized in that, described tracking module comprises:
Reading unit, for accessing described server, reads described key point;
Collector unit, inserts described tracking code for before and after the described key point that reads at described reading unit, collects described tracking data by described tracking code.
8. a server, is characterized in that, described server comprises:
Receiver module, for receiving the tracking data of the key point of the application program that client sends;
First relating module, the described tracking data for receiving according to described receiver module associates out the total call relation between described key point;
First memory module, for described total call relation write into Databasce server that the described tracking data that received by described receiver module and described first relating module associate out, so that user inquires about the data in said write database server, carry out localization of fault.
9. server as claimed in claim 8, it is characterized in that, described server also comprises:
Second relating module, for described total call relation that the described tracking data that receives according to described receiver module and described first relating module associate out, associates out the first sub-call relation of each described key point;
Second memory module, writes described database server for each described first sub-call relation associated out by described second relating module.
10. server as claimed in claim 8 or 9, it is characterized in that, described server also comprises:
Identification module, identifies trouble spot for the described tracking data received according to described receiver module;
3rd relating module, the described total call relation for associating out according to described first relating module follows the trail of the entrance of described trouble spot and the second sub-call relation between described trouble spot and entrance;
3rd memory module, writes described database server for the described second sub-call relation associated out by described 3rd relating module.
11. servers as claimed in claim 8 or 9, it is characterized in that, described server also comprises:
Statistical module, the described tracking data each described key point of calculating received according to described receiver module and the execution time of described application program;
4th memory module, the described execution time for each described key point that calculated by described statistical module and described application program writes described database server.
The system of 12. 1 kinds of localizing faults, is characterized in that, described system comprises:
Client according to any one of claim 6 ~ 7, and, the server according to any one of claim 8 ~ 11.
CN201410593667.7A 2014-10-29 2014-10-29 Method, equipment and system for positioning fault Pending CN104360939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410593667.7A CN104360939A (en) 2014-10-29 2014-10-29 Method, equipment and system for positioning fault

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410593667.7A CN104360939A (en) 2014-10-29 2014-10-29 Method, equipment and system for positioning fault

Publications (1)

Publication Number Publication Date
CN104360939A true CN104360939A (en) 2015-02-18

Family

ID=52528203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410593667.7A Pending CN104360939A (en) 2014-10-29 2014-10-29 Method, equipment and system for positioning fault

Country Status (1)

Country Link
CN (1) CN104360939A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681909A (en) * 2016-12-02 2017-05-17 中国工商银行股份有限公司 Online transaction fault locating method and device
CN107506484A (en) * 2017-09-18 2017-12-22 携程旅游信息技术(上海)有限公司 Operation/maintenance data related auditing method, system, equipment and storage medium
CN108549691A (en) * 2018-04-13 2018-09-18 郑州云海信息技术有限公司 A kind of tracking of database session and analysis method and its device
CN109388537A (en) * 2018-08-31 2019-02-26 阿里巴巴集团控股有限公司 Operation information tracking, device and computer readable storage medium
CN111158945A (en) * 2019-12-31 2020-05-15 奇安信科技集团股份有限公司 Kernel fault processing method and device, network security equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539883A (en) * 2009-05-05 2009-09-23 北京和利时系统工程有限公司 Error tracking method of embedded system and device thereof
US7620938B2 (en) * 2005-10-31 2009-11-17 Microsoft Corporation Compressed program recording
CN101876938A (en) * 2009-11-11 2010-11-03 北京神州泰岳软件股份有限公司 Message queue-based application software response time measuring method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620938B2 (en) * 2005-10-31 2009-11-17 Microsoft Corporation Compressed program recording
CN101539883A (en) * 2009-05-05 2009-09-23 北京和利时系统工程有限公司 Error tracking method of embedded system and device thereof
CN101876938A (en) * 2009-11-11 2010-11-03 北京神州泰岳软件股份有限公司 Message queue-based application software response time measuring method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681909A (en) * 2016-12-02 2017-05-17 中国工商银行股份有限公司 Online transaction fault locating method and device
CN107506484A (en) * 2017-09-18 2017-12-22 携程旅游信息技术(上海)有限公司 Operation/maintenance data related auditing method, system, equipment and storage medium
CN108549691A (en) * 2018-04-13 2018-09-18 郑州云海信息技术有限公司 A kind of tracking of database session and analysis method and its device
CN108549691B (en) * 2018-04-13 2021-09-17 郑州云海信息技术有限公司 Database session tracking and analyzing method and device
CN109388537A (en) * 2018-08-31 2019-02-26 阿里巴巴集团控股有限公司 Operation information tracking, device and computer readable storage medium
CN111158945A (en) * 2019-12-31 2020-05-15 奇安信科技集团股份有限公司 Kernel fault processing method and device, network security equipment and readable storage medium
CN111158945B (en) * 2019-12-31 2023-12-22 奇安信科技集团股份有限公司 Kernel fault processing method, device, network security equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN106656536B (en) Method and equipment for processing service calling information
US10452625B2 (en) Data lineage analysis
CN110321113B (en) Integrated assembly line system taking project batches as standards and working method thereof
CN106951369A (en) The management method and device of a kind of joint debugging test
US9116973B2 (en) Method and apparatus for monitoring an in-memory computer system
CN110489699B (en) Asynchronous data acquisition method and system
CN104360939A (en) Method, equipment and system for positioning fault
CN106062719A (en) Service metric analysis from structured logging schema of usage data
CN112100052B (en) Playback method and device of interface test scene
CN103631713A (en) ERP software automated testing system and method
CN108111364B (en) Service system testing method and device
CN105095059A (en) Method and device for automated testing
CN111061696B (en) Method and device for analyzing transaction message log
CN105405221A (en) Method and device for automated test
CN114356692A (en) Visual processing method and device for application monitoring link and storage medium
Gonultas et al. Run-time calculation of COSMIC functional size via automatic installment of measurement code into Java business applications
CN109711849B (en) Ether house address portrait generation method and device, electronic equipment and storage medium
CN111723004B (en) Measurement method for agile software development, measurement data output method and device
CN104123104B (en) Daily record control system and method
CN102855300A (en) Method and device for quick viewing of report
CN113835965B (en) Parameter track mark-keeping method and device
US20220019566A1 (en) System and method for integrating systems to implement data quality processing
CN115599621A (en) Micro-service abnormity diagnosis method, device, equipment and storage medium
CN111861537A (en) Operation analysis method and system
CN111240981A (en) Interface testing method, system and platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150218

WD01 Invention patent application deemed withdrawn after publication