CN104216825A - Problem locating method and system - Google Patents

Problem locating method and system Download PDF

Info

Publication number
CN104216825A
CN104216825A CN201310219214.3A CN201310219214A CN104216825A CN 104216825 A CN104216825 A CN 104216825A CN 201310219214 A CN201310219214 A CN 201310219214A CN 104216825 A CN104216825 A CN 104216825A
Authority
CN
China
Prior art keywords
module
data
software
state parameter
running state
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
CN201310219214.3A
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 Shenzhou Taiyue Software Co Ltd
Original Assignee
Beijing Shenzhou Taiyue Software 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 Shenzhou Taiyue Software Co Ltd filed Critical Beijing Shenzhou Taiyue Software Co Ltd
Priority to CN201310219214.3A priority Critical patent/CN104216825A/en
Publication of CN104216825A publication Critical patent/CN104216825A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a software problem locating method and system and relates to the field of computer software. By real-time monitoring of state parameters of a software module running in a current software system, when a fault happens, fault coefficients of currently-running modules can be analyzed and computed according to the running states of the modules during the fault, problems are subjected to checking according to the sequence of the fault coefficients from high to low, the software fault can be located quickly and efficiently, an achieving mode is simple, universality is high, and the locating efficiency of the software fault is greatly improved. What is more, when software is subjected to fault detecting, data correctness is subjected to verifying, due to the fact that faults are often caused by data errors other than code running, data correctness is verified first, code detecting can be avoided, and software fault locating efficiency and accuracy can be further improved.

Description

Positioning problems method and system
Technical field
The present invention relates to computer software technical field, particularly a kind of positioning problems method and system.
Background technology
In recent years, after software development completes, safeguard for each company, also seem particularly important.When software goes wrong, user wishes to find problem as early as possible.And field maintenance person is not special understanding to the performance history of software, can not solve in time after causing going wrong, cause user to produce this discontented.
Summary of the invention
In view of the above problems, the embodiment of the present invention provides a kind of positioning problems method and system, can when data problem appears in running software for field maintenance person, targetedly, orientation problem fast, improves software maintenance efficiency.
The embodiment of the present invention have employed following technical scheme:
One embodiment of the invention provides a kind of positioning problems method, and described method comprises:
The running state parameter of each module of real-time monitoring record software inhouse; Described running state parameter comprise each module in software systems running process, data input and data export;
When running software goes wrong, obtain the running state parameter of current record;
Probability of malfunction value and the correlation coefficient of each module is calculated according to described running state parameter;
Described probability of malfunction value and correlation coefficient is utilized to calculate the failure coefficient of each module;
According to failure coefficient order from high to low, carry out the detection of software issue, realize the quick position of software issue.
Described calculate each module according to described running state parameter probability of malfunction value and correlation coefficient before, described method also comprises:
According to described running state parameter, the correctness of each module data of coupling verification in preset template; The corresponding relation of data attribute title and data span is previously stored with in described preset template;
If find that there is error in data, then orientate this error in data as software issue place; If find no error in data, then perform described the probability of malfunction value and the correlation coefficient step that calculate each module according to described running state parameter.
Described according to described running state parameter, before in preset template, coupling verifies the correctness of each module data, described method also comprises:
Read content caching in described preset template in internal memory.
Described according to described running state parameter, the correctness of each module data of coupling verification in preset template, is specially:
Data input in running state parameter and data are exported, according to the data attribute title of its correspondence, verify whether its numerical value meets described data span in described preset template, if meet, then check results is correct, otherwise check results is incorrect.
Described according to described running state parameter, in preset template, the correctness of each module data of coupling verification also comprises:
According to the running process in described running state parameter, according to from trouble spot by close to order far away, the correctness of each module data is verified.
Describedly calculate the probability of malfunction value of each module according to described running state parameter and correlation coefficient comprises:
According to the running process of module, according to from trouble spot by close to obtain the probability of malfunction value of each module to the lower method of corresponding probability of malfunction value far away; According to data transmission and shared relationship between current block and other each module, determine the correlation coefficient matrix of current block;
The described failure coefficient utilizing described probability of malfunction value and correlation coefficient to calculate each module comprises:
For each module, calculate the sum of products of each coefficient and probability of malfunction value in the correlation coefficient matrix of this module, obtain the failure coefficient of each module.
Another embodiment of the present invention provides a kind of positioning problems system, and described system comprises:
Monitoring module, for the running state parameter of each module of real-time monitoring record software inhouse; Described running state parameter comprise each module in software systems running process, data input and data export;
Acquisition module, for when running software goes wrong, obtains the current operating conditions parameter of described monitoring module record;
Analysis module, for calculating probability of malfunction value and the correlation coefficient of each module according to described running state parameter;
Computing module, for the failure coefficient utilizing described probability of malfunction value and correlation coefficient to calculate each module; With
Locating module, for according to failure coefficient order from high to low, carries out the detection of software issue, realizes the quick position of software issue.
Described system also comprises:
Data Verification module, for the running state parameter obtained according to described acquisition module, the correctness of each module data of coupling verification in preset template; The corresponding relation of data attribute title and data span is previously stored with in described preset template;
Described locating module also for, judge whether the result of described Data Verification module has error in data, has, and orientates this error in data as software issue place; Otherwise start described analysis module.
Described Data Verification module specifically for: by running state parameter data input and data export, according to the data attribute title of its correspondence, in described preset template, verify whether its numerical value meets described data span, if meet, then check results is correct, otherwise check results is incorrect;
Described Data Verification module also comprises:
Buffer unit, for the running state parameter obtained according to described acquisition module, in preset template each module data of coupling verification correctness before, read content caching in described preset template in internal memory; And/or
Sequence control unit, for according to the running process in described running state parameter, according to from trouble spot by close to order far away, the correctness of each module data is verified.
Described analysis module specifically for: according to the running process of module, according to from trouble spot by close to obtain the probability of malfunction value of each module to the lower method of corresponding probability of malfunction value far away; According to data transmission and shared relationship between current block and other each module, determine the correlation coefficient matrix of current block;
Described computing module specifically for: for each module, calculate the sum of products of each coefficient and probability of malfunction value in the correlation coefficient matrix of this module, obtain the failure coefficient of each module.
Visible, in the embodiment of the present invention, by monitoring in real time the software module state parameter of Current software system cloud gray model, when fault occurs, can according to the operation conditions of module each during fault, analyze and calculate the failure coefficient of each module of current operation, according to failure coefficient order from high to low, problem is investigated, can positioning fault of software place rapidly and efficiently, implementation is simple, versatility is high, substantially increases the location efficiency of software fault.
Further, the embodiment of the present invention, before the probability of malfunction value calculating each module according to described running state parameter and correlation coefficient, can also first according to running state parameter, the correctness of each module data of coupling verification in preset template; The corresponding relation of data attribute title and data span is previously stored with in preset template; If find that there is error in data, then orientate this error in data as software issue place; If find no error in data, then perform and calculate the probability of malfunction value of each module and the step of correlation coefficient according to running state parameter.Like this, can before fault detect be carried out to software itself, can first verify data correctness, because having is many times the fault caused because of error in data, but not there is fault in code operation, first data correctness is verified, can code detection be avoided, efficiency and the accuracy of software fault location can be improved further.
Accompanying drawing explanation
A kind of positioning problems method flow diagram that Fig. 1 provides for one embodiment of the invention;
A kind of positioning problems method flow diagram that Fig. 2 provides for another embodiment of the present invention;
Fig. 3 is the schematic diagram adopting browser to realize in the inventive method embodiment;
A kind of positioning problems system architecture diagram that Fig. 4 provides for one embodiment of the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
One abnormal internal state that software occurs in operational process is referred to during software fault.Software fault is likely introduce in the design process of software, such as software design approach, programming language and instrument, and software developer can not ensure not introduce fault in Software for Design and program coding process.
When software breaks down, need to carry out localization of fault, malfunctioning module and failure code are found out in the inside going deep into code.Fault Locating Method conventional at present has original method, backtracking method and exclusive method etc.Original method is confused in the program limit broken down by computing machine, and the method is complicated and efficiency is low.Backtracking method is that the break down control flow of sign place eye program is back followed the trail of, until find the root of makeing mistakes, the method defect has certain limitation, when program limit is larger, because backtracking route sharply increases, cannot realize recalling completely.Exclusive method, based on induction and deduction reasoning, according to fault data, supposes error reason, is got rid of one by one by test, and the method requires extremely to understand general design of software and code effect.
Due to software fault the complex nature of the problem, there is process complexity, dependence is strong and versatility is not high defect in existing Fault Locating Method, can not meet the requirement of software fault diagnosis.
Based on this, the embodiment of the present invention provides a kind of software issue localization method, the software fault positioning method overall design philosophy that the embodiment of the present invention provides is: first obtain module running process when software breaks down by monitoring, therefrom analyze and calculate the failure coefficient of each module of current operation, according to failure coefficient order from high to low, problem is investigated, with quick position software fault place.
Shown in Figure 1, the software issue localization method that the embodiment of the present invention provides specifically comprises:
S101: the running state parameter of each module of monitoring record software inhouse in real time.
Above-mentioned running state parameter comprises the running process of each module in software systems, data input and data output etc.
The operation of software fault and software has close contacting, therefore, want positioning fault of software, first need to analyze the operational process of software, in the embodiment of the present invention, in software systems, embed monitoring module, for the running status of monitoring software, the running state parameter of each module of real time record software inhouse, comprises the running process of each module of current operation in software systems, data input and data output etc.
S102: when running software goes wrong, obtains the running state parameter of current record.
S103: the probability of malfunction value and the correlation coefficient that calculate each module according to running state parameter.
Wherein, the probability of malfunction value calculating each module according to running state parameter specifically comprises:
According to the running process of module, according to from trouble spot by close to obtain the probability of malfunction value of each module to the lower method of corresponding probability of malfunction value far away.
Suppose total n software module in these software systems, m 1, m 2, m 3m n.
When software fault occurs, the module running process M={m run in Current software system i, m i+1, m i+2m i+k.Wherein k is larger, represent from trouble spot more close to.
Software module running process when namely breaking down is:
m i→m i+1,m i+2……→m i+k
Use U irepresent the probability broken down of i-th module in running software series, then the probability of malfunction value obtaining sequence of modules is:
U={U i,U i+1,U i+2……U i+k}
Wherein, U i+kvalue, increase with the increase of K value, namely the closer to software fault point, the failure rate of the module run is larger.
According to running status U i+kthe correlation coefficient that parameter calculates each module specifically comprises:
According to data transmission and shared relationship between current block and other each module, determine the correlation coefficient matrix of current block.
May there is data exchange and sharing between modules due to software, software fault also may have the data of multiple module transmission and cause, and therefore, sets up the degree of correlation between correlation matrix E representation module.
E = e 11 , e 12 , · · · · · · e 1 n e 21 , e 22 , · · · · · · e 2 n · · · · · · , e ij , · · · · · · e n 1 e n 2 , · · · · · · e nn
Wherein, e ijrepresent at m irear operation m jrelated coefficient, this coefficient depends on that the data and module transmitted between module are to the process of data.
S104: utilize described probability of malfunction value and correlation coefficient to calculate the failure coefficient of each module.
Concrete, the failure coefficient utilizing probability of malfunction value and correlation coefficient to calculate each module specifically comprises:
For each module, calculate the sum of products of each coefficient and probability of malfunction value in the correlation coefficient matrix of this module, obtain the failure coefficient of each module.
Such as, for module m i, its failure coefficient w icircular is:
wherein, module m is supposed inumber of run is t time.
S105: according to failure coefficient order from high to low, carry out the detection of software issue, realize the quick position of software issue.
Visible, in the embodiment of the present invention, by monitoring in real time the software module state parameter of Current software system cloud gray model, when fault occurs, can according to the operation conditions of module each during fault, analyze and calculate the failure coefficient of each module of current operation, according to failure coefficient order from high to low, problem is investigated, can positioning fault of software place rapidly and efficiently, implementation is simple, versatility is high, substantially increases the location efficiency of software fault.
See Fig. 2, the embodiment of the present invention additionally provides another kind of software issue Fault Locating Method, wherein, before basis carries out code detection to software systems, first data correctness is verified, because having is many times the fault caused because of error in data, but not there is fault in code operation, first data correctness is verified, can code detection be avoided, efficiency and the accuracy of software fault location can be improved further.
See Fig. 2, concrete steps are as follows:
S201: the running state parameter of each module of monitoring record software inhouse in real time.
Above-mentioned running state parameter comprises the running process of each module in software systems, data input and data output etc.
The operation of software fault and software has close contacting, therefore, want positioning fault of software, first need to analyze the operational process of software, in the embodiment of the present invention, in software systems, embed monitoring module, for the running status of monitoring software, the running state parameter of each module of real time record software inhouse, comprises the running process of each module of current operation in software systems, data input and data output etc.
S202: when running software goes wrong, obtains the running state parameter of current record.
S203: according to running state parameter, the correctness of each module data of coupling verification in preset template.If find that there is error in data, perform step S204, if find no error in data, then perform step S205.
Wherein, the corresponding relation of data attribute title and data span is previously stored with in preset template.
According to demand, in advance each module can be had the attribute of fixing span, its Property Name and data span corresponding relation are stored in advance in preset template, for the verification of data correctness.
Such as, user gradation this have the attribute of fixing span, the corresponding relation of Property Name and span can be stored in advance in preset template:
Property Name: user gradation customerlevel, the span of its correspondence: category-A, category-B, C class, D class.
In specific implementation, the form recorded in preset template can be:
According to following form, pieces of data is saved in in the module_XX.properties of modules name:
Form: Property Name=attribute span.(value separates with ", ")
Such as: customerlevel=A class, category-B, C class, D class
Above-mentioned according to running state parameter, the correctness of each module data of coupling verification in preset template, is specially:
Data input in running state parameter and data are exported, according to the data attribute title of its correspondence, verify whether its numerical value meets described data span in described preset template, if meet, then check results is correct, otherwise check results is incorrect.
When carrying out correctness verification to data, when carrying out correctness verification to these data of user gradation, to run the current value of user gradation customerlevel in module, match with the span in preset template, if the current value of customerlevel is category-A, category-B, one of C class or D class, then illustrate that these data are correct, if the current value of customerlevel is A, not category-A, then can not match with the span in preset template, this error in data is now described, namely can positioning fault of software be that these data of user gradation there occurs mistake fast.
This preset template is stored in advance in web server, before correctness verification is carried out to data, namely before mate the correctness verifying each module data in preset template according to running state parameter, preferably, also comprise: read content caching in described preset template in internal memory, to improve the matching speed in data check, improve location efficiency further.
In specific implementation, can be, what preserve in template module_XX.properties file is with " Property Name " for key, and attribute span is the key-value pair of value, stores in the collection class Map of data so the content read out be kept at the form that button/numerical value is right.The process of specifically reading in internal memory is as follows:
S01: read properties file content.
S02: obtain key all in properties file.
S03: circulation key value, is saved in the value value of key and correspondence in collection class Map.Wherein, collection class Map is kept in internal memory.
The data that acquisition will verify, namely obtain the operational factor of each module when fault occurs, comprise following sub-step:
S04: the data from database required for acquisition module.
S05: data are saved in module data set.
Specifically the process that data correctness verifies is specially:
Loop module data acquisition, using Property Name as key, searches corresponding span value from collection class Map, if property value mates with span, then represents that verification is correct, otherwise mistake, and by check results assignment to current data object.
In the embodiment of the present invention, preferably, browser mode can be adopted to realize, by process and the result of data check, show in browser interface, improve Consumer's Experience further.Concrete signal is shown in Figure 3.
Further, above-mentioned according to running state parameter, in preset template, the correctness of each module data of coupling verification also comprises:
According to the running process in running state parameter, according to from trouble spot by close to order far away, the correctness of each module data is verified.Because from trouble spot more close to, the possibility broken down is larger, thus according to from trouble spot by close to order far away, data correctness is verified, the speed of troubleshooting can be accelerated further, improve the efficiency of localization of fault.
S204: orientate this error in data as software issue place, terminates.
S205: the probability of malfunction value and the correlation coefficient that calculate each module according to running state parameter.
Wherein, the probability of malfunction value calculating each module according to running state parameter specifically comprises:
According to the running process of module, according to from trouble spot by close to obtain the probability of malfunction value of each module to the lower method of corresponding probability of malfunction value far away.
Suppose total n software module in these software systems, m 1, m 2, m 3m n.
When software fault occurs, the module running process M={m run in Current software system i, m i+1, m i+2m i+k.Wherein k is larger, represent from trouble spot more close to.
Software module running process when namely breaking down is:
m i→m i+1,m i+2……→m i+k
Use U irepresent the probability broken down of i-th module in running software series, then the probability of malfunction value obtaining sequence of modules is:
U={U i,U i+1,U i+2……U i+k}
Wherein, U i+kvalue, increase with the increase of K value, namely the closer to software fault point, the failure rate of the module run is larger.
According to running status U i+kthe correlation coefficient that parameter calculates each module specifically comprises:
According to data transmission and shared relationship between current block and other each module, determine the correlation coefficient matrix of current block.
May there is data exchange and sharing between modules due to software, software fault also may have the data of multiple module transmission and cause, and therefore, sets up the degree of correlation between correlation matrix E representation module.
E = e 11 , e 12 , · · · · · · e 1 n e 21 , e 22 , · · · · · · e 2 n · · · · · · , e ij , · · · · · · e n 1 e n 2 , · · · · · · e nn
Wherein, e ijrepresent at m irear operation m jrelated coefficient, this coefficient depends on that the data and module transmitted between module are to the process of data.
S206: utilize described probability of malfunction value and correlation coefficient to calculate the failure coefficient of each module.
Concrete, the failure coefficient utilizing probability of malfunction value and correlation coefficient to calculate each module specifically comprises:
For each module, calculate the sum of products of each coefficient and probability of malfunction value in the correlation coefficient matrix of this module, obtain the failure coefficient of each module.
Such as, for module m i, its failure coefficient w icircular is:
wherein, module m is supposed inumber of run is t time.
S207: according to failure coefficient order from high to low, carry out the detection of software issue, realize the quick position of software issue.
Visible, in the embodiment of the present invention, by monitoring in real time the software module state parameter of Current software system cloud gray model, when fault occurs, can according to the operation conditions of module each during fault, analyze and calculate the failure coefficient of each module of current operation, according to failure coefficient order from high to low, problem is investigated, can positioning fault of software place rapidly and efficiently, implementation is simple, versatility is high, substantially increases the location efficiency of software fault.
Further, the embodiment of the present invention, before the probability of malfunction value calculating each module according to described running state parameter and correlation coefficient, can also first according to running state parameter, the correctness of each module data of coupling verification in preset template; The corresponding relation of data attribute title and data span is previously stored with in preset template; If find that there is error in data, then orientate this error in data as software issue place; If find no error in data, then perform and calculate the probability of malfunction value of each module and the step of correlation coefficient according to running state parameter.Like this, can before fault detect be carried out to software itself, can first verify data correctness, because having is many times the fault caused because of error in data, but not there is fault in code operation, first data correctness is verified, can code detection be avoided, efficiency and the accuracy of software fault location can be improved further.
See Fig. 3, the embodiment of the present invention additionally provides a kind of software issue positioning system, comprising:
Monitoring module 301, for the running state parameter of each module of real-time monitoring record software inhouse.
Described running state parameter comprises the running process of each module in software systems, data input and data output etc.
Acquisition module 302, for when running software goes wrong, obtains the current operating conditions parameter that monitoring module 301 records.
Analysis module 304, for calculating probability of malfunction value and the correlation coefficient of each module according to running state parameter.
Computing module 305, for the failure coefficient utilizing probability of malfunction value and correlation coefficient to calculate each module.
With, locating module 306, for according to failure coefficient order from high to low, carries out the detection of software issue, realizes the quick position of software issue.
Preferably, this system also comprises:
Data Verification module 303, for the running state parameter obtained according to acquisition module 302, the correctness of each module data of coupling verification in preset template.
The corresponding relation of data attribute title and data span is previously stored with in described preset template.
Accordingly, locating module 306 also for, judge whether the result of Data Verification module 303 has error in data, has, and orientates this error in data as software issue place; Otherwise startup analysis module 304.
Wherein, Data Verification module 303 specifically for: by running state parameter data input and data export, according to the data attribute title of its correspondence, in described preset template, verify whether its numerical value meets described data span, if meet, then check results is correct, otherwise check results is incorrect.
Preferably, Data Verification module 303 also comprises:
Buffer unit, for the running state parameter obtained according to described acquisition module, in preset template each module data of coupling verification correctness before, read content caching in described preset template in internal memory.And/or, sequence control unit, for according to the running process in described running state parameter, according to from trouble spot by close to order far away, the correctness of each module data is verified.
Described analysis module specifically for: according to the running process of module, according to from trouble spot by close to obtain the probability of malfunction value of each module to the lower method of corresponding probability of malfunction value far away; According to data transmission and shared relationship between current block and other each module, determine the correlation coefficient matrix of current block.
Described computing module specifically for: for each module, calculate the sum of products of each coefficient and probability of malfunction value in the correlation coefficient matrix of this module, obtain the failure coefficient of each module.
It should be noted that, the modules in present system embodiment or the principle of work of submodule and processing procedure see the associated description in embodiment of the method shown in above-mentioned Fig. 1 and Tu, can repeat no more herein.
Visible, in the embodiment of the present invention, by monitoring in real time the software module state parameter of Current software system cloud gray model, when fault occurs, can according to the operation conditions of module each during fault, analyze and calculate the failure coefficient of each module of current operation, according to failure coefficient order from high to low, problem is investigated, can positioning fault of software place rapidly and efficiently, implementation is simple, versatility is high, substantially increases the location efficiency of software fault.
Further, the embodiment of the present invention, before the probability of malfunction value calculating each module according to described running state parameter and correlation coefficient, can also first according to running state parameter, the correctness of each module data of coupling verification in preset template; The corresponding relation of data attribute title and data span is previously stored with in preset template; If find that there is error in data, then orientate this error in data as software issue place; If find no error in data, then perform and calculate the probability of malfunction value of each module and the step of correlation coefficient according to running state parameter.Like this, can before fault detect be carried out to software itself, can first verify data correctness, because having is many times the fault caused because of error in data, but not there is fault in code operation, first data correctness is verified, can code detection be avoided, efficiency and the accuracy of software fault location can be improved further.
For the ease of the technical scheme of the clear description embodiment of the present invention, in inventive embodiment, have employed the printed words such as " first ", " second " to distinguish the substantially identical identical entry of function and efficacy or similar item, it will be appreciated by those skilled in the art that the printed words such as " first ", " second " do not limit quantity and execution order.
One of ordinary skill in the art will appreciate that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, this program is when performing, comprise the steps: (step of method), described storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a positioning problems method, is characterized in that, described method comprises:
The running state parameter of each module of real-time monitoring record software inhouse; Described running state parameter comprise each module in software systems running process, data input and data export;
When running software goes wrong, obtain the running state parameter of current record;
Probability of malfunction value and the correlation coefficient of each module is calculated according to described running state parameter;
Described probability of malfunction value and correlation coefficient is utilized to calculate the failure coefficient of each module;
According to failure coefficient order from high to low, carry out the detection of software issue, realize the quick position of software issue.
2. positioning problems method according to claim 1, is characterized in that, described calculate each module according to described running state parameter probability of malfunction value and correlation coefficient before, described method also comprises:
According to described running state parameter, the correctness of each module data of coupling verification in preset template; The corresponding relation of data attribute title and data span is previously stored with in described preset template;
If find that there is error in data, then orientate this error in data as software issue place; If find no error in data, then perform described the probability of malfunction value and the correlation coefficient step that calculate each module according to described running state parameter.
3. positioning problems method according to claim 2, is characterized in that, described according to described running state parameter, and before in preset template, coupling verifies the correctness of each module data, described method also comprises:
Read content caching in described preset template in internal memory.
4. positioning problems method according to claim 3, is characterized in that, described according to described running state parameter, and the correctness of each module data of coupling verification in preset template, is specially:
Data input in running state parameter and data are exported, according to the data attribute title of its correspondence, verify whether its numerical value meets described data span in described preset template, if meet, then check results is correct, otherwise check results is incorrect.
5. positioning problems method according to claim 4, is characterized in that, described according to described running state parameter, and in preset template, the correctness of each module data of coupling verification also comprises:
According to the running process in described running state parameter, according to from trouble spot by close to order far away, the correctness of each module data is verified.
6. the positioning problems method according to any one of claim 1-5, is characterized in that, describedly calculates the probability of malfunction value of each module according to described running state parameter and correlation coefficient comprises:
According to the running process of module, according to from trouble spot by close to obtain the probability of malfunction value of each module to the lower method of corresponding probability of malfunction value far away; According to data transmission and shared relationship between current block and other each module, determine the correlation coefficient matrix of current block;
The described failure coefficient utilizing described probability of malfunction value and correlation coefficient to calculate each module comprises:
For each module, calculate the sum of products of each coefficient and probability of malfunction value in the correlation coefficient matrix of this module, obtain the failure coefficient of each module.
7. a positioning problems system, is characterized in that, described system comprises:
Monitoring module, for the running state parameter of each module of real-time monitoring record software inhouse; Described running state parameter comprise each module in software systems running process, data input and data export;
Acquisition module, for when running software goes wrong, obtains the current operating conditions parameter of described monitoring module record;
Analysis module, for calculating probability of malfunction value and the correlation coefficient of each module according to described running state parameter;
Computing module, for the failure coefficient utilizing described probability of malfunction value and correlation coefficient to calculate each module; With
Locating module, for according to failure coefficient order from high to low, carries out the detection of software issue, realizes the quick position of software issue.
8. positioning problems system according to claim 7, is characterized in that, described system also comprises:
Data Verification module, for the running state parameter obtained according to described acquisition module, the correctness of each module data of coupling verification in preset template; The corresponding relation of data attribute title and data span is previously stored with in described preset template;
Described locating module also for, judge whether the result of described Data Verification module has error in data, has, and orientates this error in data as software issue place; Otherwise start described analysis module.
9. positioning problems system according to claim 8, it is characterized in that, described Data Verification module specifically for: by running state parameter data input and data export, according to the data attribute title of its correspondence, in described preset template, verify whether its numerical value meets described data span, if meet, then check results is correct, otherwise check results is incorrect;
Described Data Verification module also comprises:
Buffer unit, for the running state parameter obtained according to described acquisition module, in preset template each module data of coupling verification correctness before, read content caching in described preset template in internal memory; And/or
Sequence control unit, for according to the running process in described running state parameter, according to from trouble spot by close to order far away, the correctness of each module data is verified.
10. the positioning problems system according to any one of claim 7-9, is characterized in that,
Described analysis module specifically for: according to the running process of module, according to from trouble spot by close to obtain the probability of malfunction value of each module to the lower method of corresponding probability of malfunction value far away; According to data transmission and shared relationship between current block and other each module, determine the correlation coefficient matrix of current block;
Described computing module specifically for: for each module, calculate the sum of products of each coefficient and probability of malfunction value in the correlation coefficient matrix of this module, obtain the failure coefficient of each module.
CN201310219214.3A 2013-06-04 2013-06-04 Problem locating method and system Pending CN104216825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310219214.3A CN104216825A (en) 2013-06-04 2013-06-04 Problem locating method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310219214.3A CN104216825A (en) 2013-06-04 2013-06-04 Problem locating method and system

Publications (1)

Publication Number Publication Date
CN104216825A true CN104216825A (en) 2014-12-17

Family

ID=52098341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310219214.3A Pending CN104216825A (en) 2013-06-04 2013-06-04 Problem locating method and system

Country Status (1)

Country Link
CN (1) CN104216825A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405218A (en) * 2015-10-26 2016-03-16 深圳怡化电脑股份有限公司 Method and device for obtaining problems of self-service terminal
CN105405219A (en) * 2015-10-26 2016-03-16 深圳怡化电脑股份有限公司 Method and device for obtaining problems of self-service terminal
CN106407113A (en) * 2016-09-09 2017-02-15 扬州大学 Bug positioning method based on Stack Overflow and commit libraries
CN107608837A (en) * 2017-09-21 2018-01-19 浪潮软件集团有限公司 Method, device, readable medium and storage controller for positioning fault environment equipment
CN109522206A (en) * 2018-09-26 2019-03-26 平安科技(深圳)有限公司 Abnormal data localization method, device, computer equipment and storage medium
CN110609257A (en) * 2019-08-01 2019-12-24 中国科学院电子学研究所 SAR transceiving link phase jitter problem positioning method
CN112732520A (en) * 2020-12-30 2021-04-30 中国人民解放军32181部队 Fault processing method and system for equipment operation monitoring software
CN114372445A (en) * 2022-03-21 2022-04-19 奇安信科技集团股份有限公司 Document generation method and device, electronic equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
易昭湘等: "基于代码检测的软件故障定位方法", 《计算机工程》 *
赵鹏等: "软件密集型装备软件故障诊断技术研究", 《计算机工程》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405219A (en) * 2015-10-26 2016-03-16 深圳怡化电脑股份有限公司 Method and device for obtaining problems of self-service terminal
CN105405218A (en) * 2015-10-26 2016-03-16 深圳怡化电脑股份有限公司 Method and device for obtaining problems of self-service terminal
CN105405218B (en) * 2015-10-26 2018-03-02 深圳怡化电脑股份有限公司 A kind of method and device for obtaining self-service terminal problem
CN105405219B (en) * 2015-10-26 2018-03-02 深圳怡化电脑股份有限公司 A kind of method and device for obtaining self-service terminal problem
CN106407113B (en) * 2016-09-09 2018-12-11 扬州大学 A kind of bug localization method based on the library Stack Overflow and commit
CN106407113A (en) * 2016-09-09 2017-02-15 扬州大学 Bug positioning method based on Stack Overflow and commit libraries
CN107608837A (en) * 2017-09-21 2018-01-19 浪潮软件集团有限公司 Method, device, readable medium and storage controller for positioning fault environment equipment
CN109522206A (en) * 2018-09-26 2019-03-26 平安科技(深圳)有限公司 Abnormal data localization method, device, computer equipment and storage medium
CN109522206B (en) * 2018-09-26 2023-09-26 平安科技(深圳)有限公司 Abnormal data positioning method, device, computer equipment and storage medium
CN110609257A (en) * 2019-08-01 2019-12-24 中国科学院电子学研究所 SAR transceiving link phase jitter problem positioning method
CN112732520A (en) * 2020-12-30 2021-04-30 中国人民解放军32181部队 Fault processing method and system for equipment operation monitoring software
CN112732520B (en) * 2020-12-30 2024-04-12 中国人民解放军32181部队 Fault processing method and system for equipment operation monitoring software
CN114372445A (en) * 2022-03-21 2022-04-19 奇安信科技集团股份有限公司 Document generation method and device, electronic equipment and medium
CN114372445B (en) * 2022-03-21 2022-08-12 奇安信科技集团股份有限公司 Document generation method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN104216825A (en) Problem locating method and system
CN108427632B (en) Automatic test method and device
Li et al. Deeplv: Suggesting log levels using ordinal based neural networks
US9569345B2 (en) Architectural failure analysis
US8892493B2 (en) Compatibility testing using traces, linear temporal rules, and behavioral models
US20200143292A1 (en) Signature enhancement for deviation measurement-based classification of a detected anomaly in an industrial asset
CN104137078A (en) Operation management device, operation management method, and program
CN110245085B (en) Embedded real-time operating system verification method and system by using online model inspection
US20150186251A1 (en) Control flow error localization
CN102055604B (en) Fault location method and system thereof
US20180095861A1 (en) Automated Test Generation for Structural Coverage for Temporal Logic Falsification of Cyber-Physical Systems
CN111694687A (en) Vehicle software fault detection method, device, equipment and storage medium
CN106776208A (en) Fault Locating Method during a kind of running software
US11243835B1 (en) Message-based problem diagnosis and root cause analysis
CN110018954A (en) Code quality detection, the appraisal procedure of code detection quality, device and equipment
CN115168868B (en) Business vulnerability analysis method and server applied to artificial intelligence
CN110337640B (en) Methods, systems, and media for problem alert aggregation and identification of suboptimal behavior
CN103197663A (en) Method and system of failure prediction
CN114691403A (en) Server fault diagnosis method and device, electronic equipment and storage medium
Bharathi et al. A machine learning approach for quantifying the design error propagation in safety critical software system
WO2022033224A1 (en) Human reliability evaluation method and system, and computer device and storage medium
Singh et al. Specification-guided automated debugging of CPS models
Bhattacharyya et al. A discrete event systems approach to network fault management: detection and diagnosis of faults
CN115617696B (en) Software testing method, device, equipment and computer readable storage medium
CN104572470B (en) A kind of integer overflow fault detection method based on transformation relation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141217