CN114756455A - Business abnormity positioning method and device, electronic equipment and storage medium - Google Patents

Business abnormity positioning method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114756455A
CN114756455A CN202210324925.6A CN202210324925A CN114756455A CN 114756455 A CN114756455 A CN 114756455A CN 202210324925 A CN202210324925 A CN 202210324925A CN 114756455 A CN114756455 A CN 114756455A
Authority
CN
China
Prior art keywords
log
service
abnormal
mark
flow
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
CN202210324925.6A
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.)
Chuangyou Digital Technology Guangdong Co Ltd
Original Assignee
Chuangyou Digital Technology Guangdong 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 Chuangyou Digital Technology Guangdong Co Ltd filed Critical Chuangyou Digital Technology Guangdong Co Ltd
Priority to CN202210324925.6A priority Critical patent/CN114756455A/en
Publication of CN114756455A publication Critical patent/CN114756455A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for positioning business abnormity, electronic equipment and a storage medium, which are used for solving the technical problem that the abnormity cannot be quickly positioned when the abnormity occurs in the business execution process. The invention includes: when abnormal alarm information is monitored in the running process of an application program, acquiring an alarm log corresponding to the abnormal alarm information; extracting a module mark and a service mark from the alarm log; determining the business operation process to which the alarm log belongs according to the module mark and the business mark; and acquiring a process log corresponding to the business operation process, and performing exception positioning according to the process log.

Description

Business abnormity positioning method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of exception handling technologies, and in particular, to a method and an apparatus for locating a service exception, an electronic device, and a storage medium.
Background
In the operation flow of the service, due to various situations such as data loss, interaction error, network failure, etc., the service may be affected during the execution process, thereby generating various exceptions.
In practical application, when a service prompts an exception, a node prompting the exception is not necessarily the root of the exception. The reason for generating the abnormal prompt may be that the deviation caused by the node where the actual abnormality occurs is continuously accumulated in the service execution process, thereby affecting the normal operation of a certain node.
In the prior art, the logs can be screened so as to locate the abnormality.
However, the logs generated during the service execution process are numerous, and if each log is screened, the time cost is too high, and the abnormality cannot be quickly located.
Disclosure of Invention
The invention provides a method and a device for positioning business abnormity, electronic equipment and a storage medium, which are used for solving the technical problem that the abnormity cannot be quickly positioned when the abnormity occurs in the business execution process.
The invention provides a service abnormity positioning method, which comprises the following steps:
when abnormal alarm information is monitored in the running process of an application program, acquiring an alarm log corresponding to the abnormal alarm information;
extracting a module mark and a service mark from the alarm log;
determining the business operation process to which the alarm log belongs according to the module mark and the business mark;
And acquiring a process log corresponding to the business operation process, and performing exception positioning according to the process log.
Optionally, the business operation process has a plurality of process nodes; the step of obtaining the process log corresponding to the business operation process and performing exception positioning according to the process log comprises the following steps:
acquiring all service logs of the application program;
screening the service log through the module mark and the service mark to obtain a process log;
judging whether the process logs correspond to the process nodes one by one;
and if so, carrying out abnormal positioning in the flow log.
Optionally, the method further comprises:
and if the process nodes which cannot be matched with the process logs exist, determining the process nodes which cannot be matched with the process logs as abnormal process nodes.
Optionally, the method further comprises:
and respectively carrying out code aggregation on the codes in each flow log to obtain a service logic code block and a UI code block.
Optionally, the step of performing exception positioning in the flow log includes:
judging whether the abnormal alarm information is page jamming;
if yes, judging whether a network request is recorded in the flow log;
And if so, performing exception positioning in the service logic code block in the flow log.
Optionally, the step of performing exception positioning in the flow log further includes:
and if the network request is not recorded in the flow log, performing exception positioning in the UI code block of the flow log.
Optionally, the step of determining whether the abnormal alarm information is a page stuck includes:
acquiring a plurality of FPS data of a page generating the abnormal alarm information in the alarm log, wherein the plurality of FPS data are acquired according to a preset time interval;
calculating an average of the plurality of FPS data;
judging whether the average value is smaller than a preset threshold value or not;
if yes, judging that the abnormal alarm information is page jamming.
The invention also provides a device for positioning the service exception, which comprises:
the alarm log obtaining module is used for obtaining an alarm log corresponding to the abnormal alarm information when the abnormal alarm information is monitored in the running process of the application program;
the mark extraction module is used for extracting a module mark and a service mark from the alarm log;
the business operation flow determining module is used for determining the business operation flow to which the alarm log belongs according to the module mark and the business mark;
And the abnormity positioning module is used for acquiring a process log corresponding to the business operation process and performing abnormity positioning according to the process log.
Optionally, the business operation process has a plurality of process nodes; the anomaly locating module comprises:
the service log obtaining submodule is used for obtaining all service logs of the application program;
the flow log screening submodule is used for screening the service log through the module mark and the service mark to obtain the flow log;
the judging submodule is used for judging whether the process logs correspond to the process nodes one by one;
and the abnormal positioning sub-module is used for carrying out abnormal positioning in the process log if the abnormal positioning sub-module is in the positive state.
The invention also provides an electronic device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the service exception positioning method according to instructions in the program code.
The present invention also provides a computer-readable storage medium for storing a program code for performing the method for locating a business anomaly as described in any one of the above.
According to the technical scheme, the invention has the following advantages: the invention configures the module mark and the service mark belonging to each log generated in the service execution process, so that when abnormal alarm information is monitored in the service execution process, the module mark and the service mark can be extracted from the alarm log corresponding to the abnormal alarm information to realize the quick search of the service operation process to which the abnormality belongs, thereby quickly positioning the abnormality only by carrying out abnormal screening on the process log corresponding to the service operation process to which the abnormality belongs, without screening all logs related to the service, reducing the time cost of abnormal positioning and improving the efficiency of abnormal positioning.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a method for locating a service anomaly according to an embodiment of the present invention;
Fig. 2 is a flowchart illustrating steps of a method for locating a service anomaly according to another embodiment of the present invention;
fig. 3 is a block diagram of a service anomaly positioning apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for positioning a business exception, electronic equipment and a storage medium, which are used for solving the technical problem that the exception cannot be quickly positioned when the exception occurs in the business execution process.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for locating a service anomaly according to an embodiment of the present invention.
The method for positioning the service exception specifically comprises the following steps:
Step 101, when abnormal alarm information is monitored in the running process of an application program, an alarm log corresponding to the abnormal alarm information is obtained;
in the embodiment of the invention, the abnormal alarm information refers to alarm information triggered when the application program generates an abnormality which influences the normal operation of any service of the application program in the operation process. The exception may be page stuck, data missing, etc. The alert means may include, but is not limited to, beeping, pop-up information, voice broadcast, etc.
The alarm log refers to a log corresponding to a service node which generates abnormal alarm information.
In the embodiment of the present invention, an application may include multiple services, each service may be controlled by a different service operation, each service operation is equal to a different network request, each network request corresponds to a process node that controls the service, and the network request and the execution process of each process node are stored through corresponding logs. When abnormal alarm information is monitored in the execution process of the service, the alarm log can be determined according to the binding relationship between the process node generating the abnormal alarm information and the corresponding log.
Step 102, extracting a module mark and a service mark from an alarm log;
In the embodiment of the present invention, one service may have a plurality of service operation flows, each service operation flow may include a plurality of flow nodes, and the same flow node may participate in different service operation flows at different times. Therefore, when the alarm log corresponding to the abnormal alarm information is obtained, the service operation process to which the alarm log belongs cannot be directly obtained. And the attribution of the business operation process of the alarm log is determined, which is beneficial to reducing the number of screened logs.
For example, when a user enters a certain application program to access a product detail page, a network requests to access a product detail page module, and in the access process, the product detail page module generates many unordered logs (the logs are generated by multiple business operation flows in the module), and for any one log in the product detail page module, only the log belonging to the product detail page module can be known, but which business operation flow the log is generated by cannot be known. Thereby affecting the quick look-up of the anomaly.
In view of this, the embodiment of the present invention sets a flag for each module of the application program and the service under the module, so as to add the module flag and the service flag to each log.
In one example, any number/letter/symbol or the like may be set as a module identifier for the product detail page module (the module identifier of each module is unique), and simultaneously, a unique service identifier (which may be a number/letter/symbol) is set for all service flows under the product detail page module respectively and added into the corresponding log. For example, if the alarm log is generated by the purchase business process under the product detail page module, the module flag of the product detail page module and the business flag of the purchase business process may be added to the alarm log. For example, if the module flag of the product detail page module is set to "1", and the service flag of the purchase adding service flow under the product detail page module is set to "a", the module flag "1" and the service flag "a" are added to the alarm log.
103, determining a service operation process to which the alarm log belongs according to the module mark and the service mark;
after the module mark and the service mark in the alarm log are obtained, the service operation process to which the alarm log belongs can be determined according to the module mark and the service mark. And if the module identifier and the service identifier which are acquired from the alarm log are respectively '1' and 'A', representing that the alarm log belongs to the purchase adding service under the commodity detail page.
And step 104, acquiring a flow log corresponding to the business operation flow, and performing exception positioning according to the flow log.
After the service operation process corresponding to the alarm log is determined, the process log corresponding to the service operation process can be obtained according to the module mark and the service mark corresponding to the service operation process to perform abnormal positioning.
In an example, the exception may be located according to the number of the flow logs, or whether the actual execution flow, parameter configuration, and data filling of the service in the flow logs meet the execution specification corresponding to the flow node corresponding to the flow logs.
The invention configures the module mark and the service mark which belong to each log generated in the service execution process, so that when abnormal alarm information is monitored in the service execution process, the module mark and the service mark can be extracted from the alarm log corresponding to the abnormal alarm information to realize the quick search of the service operation process which the abnormality belongs to, thereby quickly positioning the abnormality only by carrying out the abnormality screening on the process log corresponding to the service operation process which the abnormality belongs to, and not needing to screen all logs related to the service, thereby reducing the time cost of the abnormality positioning and improving the efficiency of the abnormality positioning.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for locating a service anomaly according to another embodiment of the present invention. The method specifically comprises the following steps:
step 201, when monitoring abnormal alarm information in the running process of an application program, acquiring an alarm log corresponding to the abnormal alarm information;
in the embodiment of the present invention, an application may include multiple services, each service may be controlled by a different service operation, each service operation is equal to a different network request, each network request corresponds to a process node that controls the service, and the network request and the execution process of each process node are stored through corresponding logs. When abnormal alarm information is monitored in the execution process of the service, the alarm log can be determined according to the binding relationship between the process node generating the abnormal alarm information and the corresponding log.
Step 202, extracting a module mark and a service mark from an alarm log;
in the embodiment of the invention, after the alarm log corresponding to the abnormal alarm information is obtained, the module mark and the service mark can be extracted from the alarm log so as to determine the service operation process in which the abnormal alarm information is generated.
Step 203, determining a business operation process to which the alarm log belongs according to the module mark and the business mark;
in the embodiment of the invention, after the module mark and the service mark are extracted from the alarm log, the service operation process to which the alarm log belongs can be determined, so that the log can be screened preliminarily, and the log which needs to be subjected to abnormal investigation can be determined.
Step 204, acquiring all service logs of the application program;
step 205, screening the service log through the module mark and the service mark to obtain a process log;
in the embodiment of the present invention, each log of the application program records the module flag and the service flag related to each log, and all logs generated by any one service operation flow should have the same module flag and service flag. Therefore, the log which has the same module mark and the same service log as the alarm log can be matched in all the service logs of the application program to serve as the process log of the service operation flow corresponding to the alarm log. The process logs are screened through the module marks and the service marks, so that the searching range of the abnormal generation source can be reduced, all logs of an application program do not need to be checked, the time cost of abnormal positioning is reduced, and the efficiency of the abnormal positioning is improved.
Step 206, judging whether the flow logs correspond to the flow nodes one by one;
and step 207, if yes, performing exception positioning in the flow log.
In one example, a business operational flow has a plurality of flow nodes; the exception may be caused by a breakpoint of the business operation flow due to an unresponsiveness of the flow node in the business operation flow. Therefore, after determining the process logs of the business operation process corresponding to the alarm logs, it can be firstly determined whether the process nodes of the business operation process all generate the process logs. If so, each process node is represented to respond normally, and the cause of the abnormality may be related to the execution process of the process node.
Otherwise, if the process node which cannot be matched with the process log exists, the process node which cannot be matched with the process log is determined as an abnormal process node.
In the embodiment of the present invention, the method further includes:
and respectively carrying out code aggregation on the codes in each flow log to obtain a service logic code block and a UI code block.
If the generation of the exception is related to the execution process of the process node, the process log can be screened for exception positioning. In order to facilitate quick positioning of abnormal problems in the flow log and improve the encoding efficiency, codes related to the UI can be aggregated by adopting a code aggregation mode to obtain a UI code block. The specific process can be as follows: and when the UIView is operated, replacing the UIView method, and when the frame of the UIView is changed, throwing out the notification in a Block mode, and unifying UI style codes to be inserted into service logic codes into control lazy loading. Through the process, the codes related to the UI can be separated from the business logic codes, and each control of the UI only needs to manage the change of the control, so that code coupling is reduced, code readability is enhanced, and the cost of problem finding is reduced.
Wherein, Block is the minimum storage and processing unit in the database, and contains the header information data or PL/SQL code of the Block itself. Block allows developers to pass arbitrary statements as data between two objects, which is often more intuitive than referencing functions defined elsewhere. In addition, the Block implementation has the closure, and the relevant state information of the context can be easily acquired. Block uses the same mechanism as the function: a Block variable can be declared like a declaration function; a Block may be defined by a method of defining a function; block may also be called as a function.
Lazy loading is also called delayed loading, namely, the object is unloaded when needed. Its advantages include: a. instantiations of the objects do not need to be written into the viewDidLoad completely, so that the codes can be simplified, and the readability of the codes can be enhanced; b. the instantiation of the object in the getter method takes the role of each other, and the coupling is low; c. the memory occupancy rate of the system is low.
In this embodiment of the present invention, the step of performing exception positioning in the flow log may include the following sub-steps:
s71, judging whether the abnormal alarm information is page jamming;
S72, if yes, judging whether a network request is recorded in the process log;
s73, if yes, carrying out abnormal positioning in the service logic code block in the flow log;
and S74, if the network request is not recorded in the flow log, carrying out abnormal positioning in the UI code block of the flow log.
In an actual scenario, the service abnormality may be page stuck, data loss, or the like, and taking page stuck as an example, when it is monitored that the abnormality warning information is page stuck, it may be determined whether the abnormality is caused by the UI or the service logic by determining whether a network request exists in the flow log. If the flow log does not have the network request and the blockage of the representation page is caused by the UI abnormality, the abnormality can be positioned in the UI code block of the flow log. If the flow log has a network request, the blockage of the representation page is caused by service logic, and abnormal positioning can be carried out in a service logic code block of the flow log.
It should be noted that, the exception location performed in the UI code block and the service logic code block includes, but is not limited to, a mode of matching parameters, and the like, and the present invention is not limited to this.
In one example, the step of determining whether the abnormal alarm information is page stuck may include the following sub-steps:
S711, acquiring a plurality of FPS data of a page generating the abnormal alarm information in the alarm log, wherein the plurality of FPS data are acquired according to a preset time interval;
s712, calculating an average of the plurality of FPS data;
s713, judging whether the average value is smaller than a preset threshold value;
and S714, if yes, judging that the abnormal alarm information is page jamming.
FPS is a definition in the field of images, and refers to the number of frames transmitted per second of a picture, and colloquially, the number of pictures of animation or video. The FPS measures the amount of information used to store and display the motion video. The greater the number of frames per second, the more fluid the displayed motion will be. Typically, the lowest FPS value to avoid motion disfluency is 30. FPS can also be understood as "refresh rate", in Hz, for example: a refresh rate of 75Hz means that the screen is scanned only 75 times in one second, i.e. 75 frames/second. When the refresh rate is too low, the naked eye can intuitively feel the flicker and incoherence of the screen, thereby having bad influence on the image display effect and the visual perception.
In practical application, page stuck detection can be performed through FPS (Frames Per Second), when the FPS value of one page in an application program is lower than a preset threshold (for example, when 50, a user can obviously feel that page operation is not smooth), it can be determined that page stuck occurs, and at this time, abnormal alarm information can be output.
In one example, the FPS value for a page may be derived by: the class name of the current page (such as the shopping cart page is ShoppingCartViewController) is used as a key, FPS data recording is carried out once according to a preset time interval (such as every 0.25 second), and when the page exits, the average value of the data is stored as the FPS of the page. When the abnormal alarm information is generated, whether the generated abnormal alarm information is page stuck can be judged by acquiring the recorded FPS data from the alarm log and calculating the average value of the acquired FPS data.
By adopting the mode to calculate the page FPS value, the influence of the error detection of the FPS value on the accuracy of the page FPS value at a certain moment can be reduced, so that the error alarm probability is reduced.
Furthermore, the embodiment of the invention can also grade the service logs of the application program so as to facilitate the subsequent targeted search of the logs. For example, service logs of an application program can be divided into levels of Default, Info, Network, and warming, where Default is a common log; the Info is used for printing information; the Network is used for Network request correlation; warning is used for Warning and error log.
The invention configures the module mark and the service mark which belong to each log generated in the service execution process, so that when abnormal alarm information is monitored in the service execution process, the module mark and the service mark can be extracted from the alarm log corresponding to the abnormal alarm information to realize the quick search of the service operation process which the abnormality belongs to, thereby quickly positioning the abnormality only by carrying out the abnormality screening on the process log corresponding to the service operation process which the abnormality belongs to, and not needing to screen all logs related to the service, thereby reducing the time cost of the abnormality positioning and improving the efficiency of the abnormality positioning. In addition, codes in the flow logs are aggregated, so that the codes related to the UI can be separated from the service logic codes, and each control of the UI only needs to manage the change of the control, so that the code coupling is reduced, the code readability is enhanced, and the problem searching cost is reduced.
Referring to fig. 3, fig. 3 is a block diagram of a service anomaly positioning apparatus according to an embodiment of the present invention.
The embodiment of the invention provides a service abnormity positioning device, which comprises:
the alarm log obtaining module 301 is configured to obtain an alarm log corresponding to the abnormal alarm information when the abnormal alarm information is monitored in the running process of the application program;
a flag extraction module 302, configured to extract a module flag and a service flag from the alarm log;
a service operation flow determining module 303, configured to determine, according to the module flag and the service flag, a service operation flow to which the alarm log belongs;
and the exception positioning module 304 is configured to obtain a process log corresponding to the service operation process, and perform exception positioning according to the process log.
In the embodiment of the invention, the business operation process is provided with a plurality of process nodes; an anomaly location module 304 comprising:
the service log obtaining submodule is used for obtaining all service logs of the application program;
the flow log screening submodule is used for screening the service logs through the module marks and the service marks to obtain the flow logs;
the judging submodule is used for judging whether the process logs correspond to the process nodes one by one;
And the abnormal positioning sub-module is used for carrying out abnormal positioning in the flow log if the abnormal positioning sub-module is in the positive state.
In this embodiment of the present invention, the exception location module 304 further includes:
and the abnormal process node determining submodule is used for determining the process node which cannot be matched with the process log as the abnormal process node if the process node which cannot be matched with the process log exists.
In the embodiment of the present invention, the method further includes:
and the code aggregation module is used for respectively carrying out code aggregation on the codes in each flow log to obtain a service logic code block and a UI code block.
In an embodiment of the present invention, the anomaly locating sub-module includes:
the page jamming judgment unit is used for judging whether the abnormal alarm information is page jamming;
the network request judging unit is used for judging whether a network request is recorded in the flow log if the network request is recorded in the flow log;
and the first exception positioning unit is used for carrying out exception positioning in the service logic code block in the flow log if the exception positioning is positive.
In the embodiment of the present invention, the exception positioning sub-module further includes:
and the second exception positioning unit is used for performing exception positioning in the UI code block of the flow log if the network request is not recorded in the flow log.
In an embodiment of the present invention, the page stuck determination unit includes:
the FPS data acquisition subunit is used for acquiring a plurality of FPS data of a page generating the abnormal alarm information in the alarm log, wherein the plurality of FPS data are acquired according to a preset time interval;
an average value operator unit for calculating an average value of the plurality of FPS data;
a threshold judgment subunit, configured to judge whether the average value is smaller than a preset threshold;
and the page jam judging subunit is used for judging that the abnormal alarm information is the page jam if the abnormal alarm information is the page jam.
An embodiment of the present invention further provides an electronic device, where the device includes a processor and a memory:
the memory is used for storing the program codes and transmitting the program codes to the processor;
the processor is used for executing the business exception positioning method according to the instruction in the program code.
The embodiment of the invention also provides a computer-readable storage medium, wherein the computer-readable storage medium is used for storing program codes, and the program codes are used for executing the service exception positioning method provided by the embodiment of the invention.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or terminal equipment comprising the element.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for positioning a service exception is characterized by comprising the following steps:
when abnormal alarm information is monitored in the running process of an application program, an alarm log corresponding to the abnormal alarm information is obtained;
extracting a module mark and a service mark from the alarm log;
determining the business operation process to which the alarm log belongs according to the module mark and the business mark;
and acquiring a process log corresponding to the business operation process, and performing exception positioning according to the process log.
2. The method of claim 1, wherein the business operation process has a plurality of process nodes; the step of obtaining the flow log corresponding to the business operation flow and performing exception positioning according to the flow log comprises the following steps:
acquiring all service logs of the application program;
screening the service log through the module mark and the service mark to obtain a process log;
judging whether the process logs correspond to the process nodes one by one;
and if so, performing abnormal positioning in the flow log.
3. The method of claim 2, further comprising:
And if the process nodes which cannot be matched with the process logs exist, determining the process nodes which cannot be matched with the process logs as abnormal process nodes.
4. The method of claim 1, 2 or 3, further comprising:
and respectively carrying out code aggregation on the codes in each flow log to obtain a service logic code block and a UI code block.
5. The method of claim 4, wherein the step of locating anomalies in the flow log comprises:
judging whether the abnormal alarm information is page jamming;
if yes, judging whether a network request is recorded in the flow log;
and if so, carrying out abnormal positioning in the service logic code block in the flow log.
6. The method of claim 5, wherein the step of locating anomalies in the flow log further comprises:
and if no network request is recorded in the flow log, performing abnormal positioning in a UI code block of the flow log.
7. The method of claim 5, wherein the step of determining whether the abnormal alarm information is page stuck comprises:
Acquiring a plurality of FPS data of a page generating the abnormal alarm information in the alarm log, wherein the plurality of FPS data are acquired according to a preset time interval;
calculating an average of the plurality of FPS data;
judging whether the average value is smaller than a preset threshold value or not;
if so, judging that the abnormal alarm information is page jamming.
8. A service anomaly locating device, comprising:
the alarm log obtaining module is used for obtaining an alarm log corresponding to the abnormal alarm information when the abnormal alarm information is monitored in the running process of the application program;
the mark extraction module is used for extracting a module mark and a service mark from the alarm log;
the business operation flow determining module is used for determining the business operation flow to which the alarm log belongs according to the module mark and the business mark;
and the abnormal positioning module is used for acquiring the process log corresponding to the business operation process and performing abnormal positioning according to the process log.
9. An electronic device, comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
The processor is configured to execute the method for locating a business anomaly according to any one of claims 1-7 according to instructions in the program code.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium is configured to store a program code for performing the method of locating a traffic anomaly according to any one of claims 1-7.
CN202210324925.6A 2022-03-30 2022-03-30 Business abnormity positioning method and device, electronic equipment and storage medium Pending CN114756455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210324925.6A CN114756455A (en) 2022-03-30 2022-03-30 Business abnormity positioning method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210324925.6A CN114756455A (en) 2022-03-30 2022-03-30 Business abnormity positioning method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114756455A true CN114756455A (en) 2022-07-15

Family

ID=82329563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210324925.6A Pending CN114756455A (en) 2022-03-30 2022-03-30 Business abnormity positioning method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114756455A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225470A (en) * 2022-07-28 2022-10-21 天翼云科技有限公司 Business abnormity monitoring method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225470A (en) * 2022-07-28 2022-10-21 天翼云科技有限公司 Business abnormity monitoring method and device, electronic equipment and storage medium
CN115225470B (en) * 2022-07-28 2023-10-13 天翼云科技有限公司 Business abnormality monitoring method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3373516B1 (en) Method and device for processing service calling information
JP6780655B2 (en) Log analysis system, method and program
US11153144B2 (en) System and method of automated fault correction in a network environment
CN109728969B (en) Abnormal user detection method of application software, monitoring server and storage medium
US10437695B2 (en) Fault information providing server and fault information providing method for users of in-vehicle terminals
CN112751711B (en) Alarm information processing method and device, storage medium and electronic equipment
US11587337B2 (en) Intelligent image segmentation prior to optical character recognition (OCR)
CN113190401B (en) Abnormality monitoring method for fast game, electronic device, mobile terminal and storage medium
CN110275992A (en) Emergency processing method, device, server and computer readable storage medium
CN114756455A (en) Business abnormity positioning method and device, electronic equipment and storage medium
CN112069043A (en) Terminal equipment state detection method, model generation method and device
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN112769615B (en) Anomaly analysis method and device
US11914466B2 (en) Systems and methods for pause-correct-replay workflow customization
CN113835961B (en) Alarm information monitoring method, device, server and storage medium
US11868441B2 (en) Duplicate frames detection
CN112134723A (en) Network anomaly monitoring method and device, computer equipment and storage medium
US20220342788A1 (en) Anomaly location estimating apparatus, method, and program
CN112465569A (en) Data processing method, advertising system, electronic device and computer storage medium
CN111694715A (en) Abnormity warning method, device, equipment and machine readable storage medium
CN111343422B (en) Method and device for monitoring recommendation
CN112351293B (en) Method, device and medium for detecting state signaling loss
US20240064353A1 (en) Media monitoring method, apparatus and system
CN110750418B (en) Information processing method, electronic equipment and information processing system
CN110018946B (en) Performance data display method, device, equipment and computer readable storage medium

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