CN113407406B - Abnormality monitoring method and abnormality monitoring system - Google Patents

Abnormality monitoring method and abnormality monitoring system Download PDF

Info

Publication number
CN113407406B
CN113407406B CN202110576592.1A CN202110576592A CN113407406B CN 113407406 B CN113407406 B CN 113407406B CN 202110576592 A CN202110576592 A CN 202110576592A CN 113407406 B CN113407406 B CN 113407406B
Authority
CN
China
Prior art keywords
target application
application
request
abnormal
function control
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.)
Active
Application number
CN202110576592.1A
Other languages
Chinese (zh)
Other versions
CN113407406A (en
Inventor
翟京卿
袁晓静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110576592.1A priority Critical patent/CN113407406B/en
Publication of CN113407406A publication Critical patent/CN113407406A/en
Application granted granted Critical
Publication of CN113407406B publication Critical patent/CN113407406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention discloses an anomaly monitoring method and an anomaly monitoring system. The method comprises the following steps: determining a target application corresponding to the abnormal input request, and determining a target application function control corresponding to the request position on an application display page based on the request position corresponding to the abnormal input request and the application display page of the target application; and then, tracking response conditions of the target application and the target application function control aiming at the abnormal input request to obtain a tracking response result, and finally, determining an abnormal object according to the tracking response result. The invention can improve the exception handling efficiency.

Description

Abnormality monitoring method and abnormality monitoring system
Technical Field
The invention relates to the technical field of communication, in particular to an anomaly monitoring method and an anomaly monitoring system.
Background
Currently, users need to install various applications on terminals to meet the demands of various business services in work and life. However, as applications installed on terminals increase, terminal resources are continuously consumed, and the terminals are prone to problems such as abnormal operation of the applications.
There are two modes for handling the problems of abnormal running of the application at present, one is that the application judges whether to restart by itself, and the other is that the terminal directly restarts the whole application. The former has high application requirements, the covered application scene is not comprehensive, and the application is difficult to actively and intelligently identify the operation of the user, so that the user repeatedly performs invalid operation, thereby causing resource fragments to be generated by the terminal and increasing the resource expense of the terminal; the latter processing means solidifies, often affecting normal running sub-processes in the application, reducing exception handling efficiency.
Disclosure of Invention
Accordingly, the present invention provides an anomaly monitoring method and an anomaly monitoring system to solve at least one of the problems in the prior art.
In order to achieve the above object, a first aspect of the present invention provides an anomaly monitoring method, including:
determining a target application corresponding to the abnormal input request;
determining a target application function control corresponding to the request position on the application display page based on the request position corresponding to the abnormal input request and the application display page of the target application;
tracking response conditions of the target application and the target application function control aiming at the abnormal input request so as to obtain a tracking response result;
and determining an abnormal object according to the tracking response result, wherein the abnormal object is the target application or the target application function control.
Optionally, after determining the abnormal object according to the tracking response result, the method further comprises:
restarting an application process corresponding to the target application under the condition that the abnormal object is the target application;
and sending application subprocess restarting activating information corresponding to the target application function control to the target application under the condition that the abnormal object is the target application function control so as to enable the target application to restart the application subprocess.
Optionally, before determining the target application corresponding to the abnormal input request, the method further includes:
acquiring request positions corresponding to the first input requests under the condition that the number of the first input requests received in the first preset time exceeds a first preset value; each first input request is an input request with the same preset request type;
and when the request positions corresponding to the first input requests are the same request position, judging that the first input requests corresponding to the same request position are abnormal input requests.
Optionally, the step of determining the target application corresponding to the abnormal input request includes:
acquiring current front-end application ordering information;
acquiring application positions and application display page ranges of all current front-end applications in the current front-end application sequencing information;
and determining a target application corresponding to the abnormal input request from each current front-end application based on the application position and the application display page range of each current front-end application and the request position corresponding to the abnormal input request.
Optionally, the step of determining, from each current front-end application, the target application corresponding to the abnormal input request based on the application location and the application display page range of each current front-end application and the request location corresponding to the abnormal input request includes:
Determining at least one candidate current front-end application from the current front-end applications based on the application position and the application display page range of the current front-end applications and the request position corresponding to the abnormal input request;
under the condition that the candidate current front-end application is one, determining that the candidate current front-end application is a target application corresponding to the abnormal input request;
and under the condition that the plurality of candidate current front-end applications are provided, determining the highest-ranking current front-end application in the plurality of candidate current front-end applications as the target application corresponding to the abnormal input request based on the current front-end application ordered list.
Optionally, the step of determining, based on the request location corresponding to the abnormal input request and the application display page of the target application, a target application function control corresponding to the request location on the application display page includes:
acquiring the positions of all target application function controls in an application display page according to the application position of the target application, the relative position of all target application function controls in the application display page of the target application and the application display page range of the target application, wherein the positions are acquired in advance;
And determining the target application function control corresponding to the request position based on the position of each target application function control in the application display page and the request position corresponding to the abnormal input request.
Optionally, the tracking response result includes a response result of the target application to a plurality of the abnormal input requests and a response result of the target application function control to a plurality of the abnormal input requests, and the step of determining the abnormal object according to the tracking response result includes:
judging whether the target application is abnormal or not according to response results of the target application to a plurality of abnormal input requests;
under the condition that the target application is judged to be abnormal, determining that the abnormal object is the target application;
judging whether the target application function control is abnormal or not according to response results of the target application function control to a plurality of abnormal input requests under the condition that the target application is judged to be normal;
and under the condition that the target application function control is judged to be abnormal, determining the abnormal object as the target application function control.
A second aspect of the present invention provides an anomaly monitoring system, comprising:
The positioning module is used for determining a target application corresponding to an abnormal input request, and determining a target application function control corresponding to the request position on an application display page based on the request position corresponding to the abnormal input request and the application display page of the target application;
the tracking module is used for tracking the response conditions of the target application and the target application function control aiming at the abnormal input request so as to obtain a tracking response result;
and the analysis module is used for determining an abnormal object according to the tracking response result, wherein the abnormal object is the target application or the target application function control.
Optionally, the anomaly monitoring system further includes:
the processing module is used for restarting an application process corresponding to the target application under the condition that the abnormal object is the target application; and the method is also used for sending the application subprocess restarting activating information corresponding to the target application function control to the target application under the condition that the abnormal object is the target application function control so as to restart the application subprocess by the target application.
Optionally, the anomaly monitoring system further includes:
The monitoring module is used for acquiring the request position corresponding to each first input request under the condition that the number of the first input requests received in the first preset time exceeds a first preset value; each first input request is an input request with the same preset request type; and the method is also used for judging that the first input request corresponding to the same request position is an abnormal input request when the request position corresponding to each first input request is the same request position.
The invention has the following advantages:
the invention provides an anomaly monitoring method and an anomaly monitoring system. Wherein the method comprises the following steps: determining a target application corresponding to the abnormal input request, and determining a target application function control corresponding to the request position on an application display page based on the request position corresponding to the abnormal input request and the application display page of the target application; and then, tracking response conditions of the target application and the target application function control aiming at the abnormal input request to obtain a tracking response result, and finally, determining an abnormal object according to the tracking response result. Compared with the current method for processing the running abnormality of the application, the abnormality monitoring method provided by the invention does not need the application on the terminal to automatically monitor the abnormality, can timely determine the target application and the target application function control corresponding to the abnormal input request, avoids the repeated invalid operation of a user, saves resources, can accurately determine the abnormal object, avoids influencing the normal running subprocess in the application when the abnormality is processed later, and improves the abnormality processing efficiency.
Drawings
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate the invention and together with the description serve to explain, without limitation, the invention.
FIG. 1 is a flowchart of an anomaly monitoring method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for determining a target application corresponding to an abnormal input request according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an anomaly monitoring system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another abnormality monitoring system according to an embodiment of the present invention;
fig. 5 is a flowchart of another anomaly monitoring method according to an embodiment of the present invention.
Detailed Description
The following describes specific embodiments of the present invention in detail with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
Currently, users need to install various applications on terminals to meet the demands of various business services in work and life. However, as applications installed on terminals increase, terminal resources are continuously consumed, and the terminals are prone to problems such as abnormal operation of the applications.
There are two modes for handling the problems of abnormal running of the application at present, one is that the application judges whether to restart by itself, and the other is that the terminal directly restarts the whole application. The former has high application requirements, the covered application scene is not comprehensive, and the application is difficult to actively and intelligently identify the operation of the user, so that the user repeatedly performs invalid operation, thereby causing resource fragments to be generated by the terminal and increasing the resource expense of the terminal; the latter processing means solidifies, often affecting normal running sub-processes in the application, reducing exception handling efficiency.
In order to solve the above problems, an embodiment of the present invention provides an anomaly monitoring method. Fig. 1 is a flowchart of an anomaly monitoring method according to an embodiment of the present invention, which is applied to an anomaly monitoring system. As shown in fig. 1, the method comprises the steps of:
step S101, determining a target application corresponding to the abnormal input request.
Wherein the abnormal input request is an input request in which the abnormality monitoring system determines in advance that an abnormality exists. The input request is a request requiring to click on a terminal screen to be effective, and the request is required to click on a specified function control, and common input requests are, for example, mouse click, carriage return input, touch screen click and the like. The terminal refers to a visual intelligent terminal with an operating system and processing capability, such as a computer, a mobile phone, a tablet or a service terminal, and the service terminal is such as an automatic teller machine, an automatic ordering terminal, and the like.
The target application corresponding to the abnormal input request is the front-end application of the uppermost layer covering the request position when the abnormal input request occurs.
Step S102, determining a target application function control corresponding to the request position on the application display page based on the request position corresponding to the abnormal input request and the application display page of the target application.
The request position corresponding to the abnormal input request is the clicking position corresponding to the abnormal input request on the terminal screen.
The target application functionality control is an operable functionality control on an application display page corresponding to the target application. The operable means that the operation response can be obtained by inputting a request. The target application function control may be a plain text function key, such as submitting, completing, logging in, editing, etc., or a function page, such as a document editing page capable of performing a carriage return operation, such as a word editing page.
And step S103, tracking response conditions of the target application and the target application function control aiming at the abnormal input request so as to obtain a tracking response result.
Step S104, determining an abnormal object according to the tracking response result.
The abnormal object is a target application or a target application function control.
In one embodiment, after determining the abnormal object according to the tracking response result (step S104), it further includes:
restarting an application process corresponding to the target application under the condition that the abnormal object is the target application; and under the condition that the abnormal object is the target application function control, sending the application subprocess restarting activation information corresponding to the target application function control to the target application so as to restart the application subprocess by the target application.
The method for monitoring the abnormality provided by the embodiment of the invention comprises the steps of firstly, determining a target application corresponding to an abnormal input request, and determining a target application function control corresponding to a request position on an application display page based on the request position corresponding to the abnormal input request and the application display page of the target application; and then, tracking response conditions of the target application and the target application function control aiming at the abnormal input request to obtain a tracking response result, and finally, determining an abnormal object according to the tracking response result. Compared with the method for processing the running exception of the application at present, the exception monitoring method provided by the embodiment of the invention does not need the application on the terminal to automatically monitor the exception, can timely determine the target application and the target application function control corresponding to the exception input request, avoids the repeated invalid operation of the user, saves resources, can accurately determine the exception object, avoids the influence on the normal running subprocess in the application when the exception is processed later, and improves the exception processing efficiency.
In one embodiment, in order to relatively isolate the user' S rapid continuous input operation from the abnormal input request, and avoid unnecessary system resource occupation caused by repeated location analysis, before the step S101, that is, before determining the target application corresponding to the abnormal input request, each input request needs to be monitored to determine whether each input request is an abnormal input request.
Specifically, the step of monitoring each input request to determine whether each input request is an abnormal input request includes:
it is determined whether the number of first input requests received within a first preset time exceeds a first preset value. And under the condition that the number of the first input requests received in the first preset time does not exceed a first preset value, judging that the first input requests received in the first preset time are not abnormal input requests, resetting a counter for counting the number of the input requests, and ending the monitoring of the first input requests in the first preset time.
And acquiring the request position corresponding to each first input request under the condition that the number of the first input requests received in the first preset time exceeds a first preset value. Judging whether the request positions corresponding to the first input requests are the same request positions or not, and judging that the first input requests corresponding to the same request positions are abnormal input requests when the request positions corresponding to the first input requests are the same request positions. When the request positions corresponding to the first input requests are the same request position, the first input requests corresponding to the same request position are judged to be abnormal input requests, and an abnormality processing mechanism is started. And under the condition that the request positions corresponding to the first input requests are not the same request position, judging that the first input requests are the quick continuous input operation of the user with high probability, starting an exception handling mechanism is not needed, and resetting a counter for counting the number of the first input requests. The exception handling mechanism comprises the steps S101-S104, and restarting an application process corresponding to the target application under the condition that the exception object is the target application; and sending the application subprocess restarting activating information corresponding to the target application function control to the target application under the condition that the abnormal object is the target application function control, so that the target application restarts the application subprocess.
The first preset time and the first preset value may be set according to a specific implementation scenario, for example, the first preset time may be set to 10 seconds, and the first preset value may be set to 6. The first input request is an input request with the same preset request type. The preset request type is a request type allowed by the terminal operating system, and may be a request type in which clicking is effective, for example, a mouse click request type, a carriage return input request type, or a touch click request type. It should be noted that, in the embodiment of the present invention, the preset request types do not include an zoom-in request, a zoom-out request, and a sliding effective operation request type.
The request position corresponding to the first input request is the click position corresponding to the first input request on the terminal screen. In one embodiment, the request position and the request type corresponding to the first input request are pre-stored in the terminal. The terminal may identify a request type of the input request and capture a request location of the input request, and then store the request type and the request location of the input request. For example, the first input request is a mouse click input, that is, the type of the first input request is a mouse click request type, and the mouse position capturing tool in the terminal can obtain the position of the mouse click input on the current display page of the terminal, so as to determine the request position corresponding to the first input request; for example, the first input request is a carriage return input, that is, the type of the first input request is a carriage return input request type, and the terminal can capture the position of the cursor through the display page tool, so as to determine the request position corresponding to the first input request; for example, for a first input request being a touch screen click request, the terminal may capture a touch screen click location through the display page tool, thereby determining a request location corresponding to the first input request.
In one implementation scenario, for example, the first input request received by the terminal in the first preset time is a mouse input request, and the number is 8. The anomaly monitoring system determines whether the number of first input requests received within a first preset time exceeds a first preset value, such as greater than 5. Since the number of the first input requests exceeds 5, the corresponding request positions of the respective first input requests are acquired, respectively. Judging whether the request positions corresponding to the first input requests are the same request positions or not, and judging that the first input requests corresponding to the same request positions are abnormal input requests when the request positions corresponding to the first input requests are the same request positions. When the request positions corresponding to the first input requests are the same request position, it is determined that the first input requests corresponding to the same request position are abnormal input requests. When the request positions corresponding to the first input requests are not identical, it is determined that the first input requests are not abnormal input requests, and a counter for counting the number of the first input requests is cleared.
Fig. 2 is a flowchart of a method for determining a target application corresponding to an abnormal input request according to an embodiment of the present invention. As shown in fig. 2, in one embodiment, the step S101 of determining the target application corresponding to the abnormal input request includes the following steps:
Step S201, acquiring current front-end application ordering information.
It should be noted that applications on the terminal may be divided into front-end applications and background applications. The front-end application is an application with a display interface and an operable functional control, namely a visual application capable of being displayed on a screen of the terminal; the background application is an application running in the background of the terminal and not displayed on the screen of the terminal, namely, an application without front-end page display, without operable functions and embedded in the background.
The current front-end application is an application which can be displayed on a screen of the terminal currently, and in the current front-end application sequencing information, each front-end application is sequenced according to the execution sequence of an application process and an application subprocess corresponding to each front-end application. It should be noted that, based on the current front-end application ranking information, the anomaly monitoring system may obtain a ranking of application display pages corresponding to the current front-end application, for example, in the current front-end application ranking information, if the front-end application a is ranked before the front-end application B, it is described that the application display page corresponding to the current front-end application a runs on an upper layer of the application display page corresponding to the front-end application B.
In one embodiment, the step of obtaining the current front-end application ranking information includes: acquiring a currently running application list and a process ordering list corresponding to the currently running application list; and acquiring current front-end application ordering information based on the current running application list, the process ordering list and the running types of the current running applications.
The current running application list comprises all applications currently running on the terminal, and the running types of all the applications currently running comprise a front-end running type and a background running type. The process sequencing list corresponding to the current running application list comprises the sequencing of the application processes and the application subprocesses corresponding to all the applications currently running on the terminal, and the process sequencing list is sequenced according to the execution sequence of each current application process and each application subprocess.
It should be noted that, the current running application list and the process sorting list corresponding to the current running application list are both stored in the terminal, and the anomaly monitoring system can obtain the current running application list and the process sorting list corresponding to the current running application list through the terminal.
Step S202, acquiring application positions and application display page ranges of all current front-end applications in the current front-end application ranking information.
The application positions and the application display page ranges of the current front-end applications are pre-stored in the terminal, and the abnormality monitoring system can acquire the application positions and the application display page ranges of the current front-end applications in the current front-end application sequencing information through the terminal.
Step 203, determining a target application corresponding to the abnormal input request from the current front-end applications based on the application position of the current front-end applications, the application display page range and the request position corresponding to the abnormal input request.
The application position is the position of the application on the terminal screen and can be acquired through a terminal interface capturing tool. The application page display scope includes a full screen scope, a default reduced scope, and a manual size scope.
In some embodiments, the application page display scope may be obtained according to an opening manner of the application, e.g., the opening manner is based on a full screen scope opening, which may be considered a full screen scope; the opening mode is based on default narrowing-down range opening, and the application page display range can be regarded as default narrowing-down range; the opening mode is based on the manual size range, and the application page display range can be regarded as the manual size range.
In some embodiments, the step of determining, from each current front-end application, a target application corresponding to the abnormal input request based on the application location and the application display page range of each current front-end application and the request location corresponding to the abnormal input request includes:
step one, determining at least one candidate current front-end application from the current front-end applications based on the application positions of the current front-end applications, the application display page range and the request positions corresponding to the abnormal input requests.
The anomaly monitoring system can determine the position covered by each application display page corresponding to each current front-end application on the terminal screen based on the application position and the application display page range of each current front-end application. And determining at least one application display page corresponding to the request position on the terminal screen based on the request position corresponding to the abnormal input request, wherein the front-end application corresponding to the at least one application display page is the determined at least one candidate current front-end application. It should be noted that, when the number of application display pages corresponding to the request position on the terminal screen is plural, the current front-end applications corresponding to the application display pages are all determined candidate current front-end applications.
And step two, under the condition that the candidate current front-end application is one, determining that the candidate current front-end application is a target application corresponding to the abnormal input request.
And step three, under the condition that a plurality of candidate current front-end applications are provided, determining that the highest ranking current front-end application in the plurality of candidate current front-end applications is the target application corresponding to the abnormal input request based on the current front-end application sequencing list.
The current front-end application ranking list can be used for providing the sequencing of application display pages corresponding to the current front-end application. Therefore, in the case where the plurality of candidate current front-end applications are provided, the highest-ranking current front-end application among the plurality of candidate current front-end applications is determined as the target application corresponding to the abnormal input request based on the current front-end application ordered list, in other words, the current front-end application display page of the plurality of candidate current front-end applications is determined to run at the uppermost current front-end application as the target application corresponding to the abnormal input request.
In one embodiment, the step S102, based on the request location corresponding to the abnormal input request and the application display page of the target application, determines the target application function control corresponding to the request location on the application display page, includes: acquiring the positions of all the target application function controls in the application display page according to the application positions of the target application, the relative positions of all the target application function controls in the application display page of the target application and the application display page range of the target application, which are acquired in advance; and determining the target application function control corresponding to the request position based on the position of each target application function control in the application display page and the request position corresponding to the abnormal input request.
The anomaly monitoring system can acquire relative position information of each target application function control of the target application and an application display page, which are stored in the terminal in advance, through the terminal. The relative position information of each target application function control of the target application and the application display page comprises the relative position of each target application function control in the application display page. For example, the function control C is located in the application display page at a position 1/5 of the page height from the lower edge of the application display page and 1/7 of the page length from the right edge of the application display page, where the page height and the page length are the height and the length of the application display page, respectively.
In this embodiment, the anomaly monitoring terminal first obtains an application position of the target application, a relative position of each target application function control in an application display page of the target application in the application display page, and an application display page range of the target application, and then obtains a position of each target application function control in the application display page according to a coverage area of the application display page on a terminal screen, that is, the application display page range, the application position, and a relative position of each target application function control, where each target application function control belongs to refers to a position of each target application function control on the terminal screen. And finally, determining that the distance between the belonged position and the request position corresponding to the abnormal input request is smaller than or equal to a preset distance threshold value, namely the target application function control corresponding to the request position.
In one embodiment, in step S103, the response situations of the target application and the target application function control to the abnormal input requests are tracked, so as to obtain a tracked response result, where the tracked response result includes a response result of the target application to the abnormal input requests and a response result of the target application function control to the abnormal input requests.
In this embodiment, the step of determining the abnormal object according to the tracking response result includes:
step one, judging whether the target application is abnormal or not according to response results of the target application to a plurality of abnormal input requests.
Among the response results of the target application for the plurality of abnormal input requests, each response result includes a normal result or an abnormal result, for example, a null result, that is, the content of the response result for the abnormal input request is null.
In one embodiment, in response results of the target application to the plurality of abnormal input requests, if the number of abnormal results is greater than a second preset value, judging that the target application is abnormal; and under the condition that the number of the abnormal results is not 0 and is not greater than a second preset value, judging that the target application needs to be continuously monitored. And judging that the target application is normal under the condition that the number of the abnormal results is 0. The second preset value may be set according to a specific implementation scenario, for example, set to 3.
In one embodiment, under the condition that the target application needs to continue monitoring, in a second preset time, re-executing the tracking of the response condition of the target application to the abnormal input requests, obtaining the response results of the target application to the abnormal input requests, and judging whether the target application is abnormal. After the second preset time is exceeded, if the target application is still judged to need to be continuously monitored, the abnormality of the target application is confirmed.
And step two, under the condition that the target application is judged to be abnormal, determining the abnormal object as the target application.
It should be noted that, when the abnormal object is determined to be the target application, in the subsequent processing procedure, the application process corresponding to the target application needs to be restarted, and each application sub-process corresponding to the target application is restarted accordingly whether it is normal or not. Therefore, in this case, in order to save energy consumption and save exception handling time, no matter how the target application functionality control responds to the exception input requests, the exception monitoring system does not need to analyze and process the response results of the target application functionality control included in the tracking response results to the plurality of exception input requests.
And step three, under the condition that the target application is judged to be normal, judging whether the target application functional control is abnormal or not according to response results of the target application functional control to a plurality of abnormal input requests.
Among the response results of the target application functionality control for the plurality of abnormal input requests, the response results comprise normal results or abnormal results, and the abnormal results are empty results, namely the content of the response results for the abnormal input requests is empty.
In one embodiment, in response results of the target application functionality control to the plurality of abnormal input requests, if the number of abnormal results is greater than a third preset value, judging that the target application functionality control is abnormal; and under the condition that the number of the abnormal results is not 0 and is not larger than a third preset value, judging that the target application function control needs to be continuously monitored. And under the condition that the number of the abnormal results is 0, judging that the target application function control is normal. The third preset value may be set according to a specific implementation scenario, for example, set to 2.
In one embodiment, under the condition that the target application function control needs to be continuously monitored, the step of tracking the response condition of the target application function control to the abnormal input requests, obtaining the response results of the target application function control to the plurality of abnormal input requests and judging whether the target application function control is abnormal is executed again in a third preset time. After the third preset time is exceeded, if the target application function control is still judged to need to be continuously monitored, the abnormality of the target application function control is confirmed.
And step four, under the condition that the target application function control is judged to be abnormal, determining the abnormal object as the target application function control.
In one embodiment, under the condition that the target application function control is judged to be normal, resetting each counter and each timer in the monitoring process, and ending the step of tracking the response conditions of the target application and the target application function control to the abnormal input request.
In one embodiment, after determining the abnormal object according to the tracking response result (step S104), it further includes:
and restarting the application process corresponding to the target application under the condition that the abnormal object is the target application. It should be noted that, in the process of restarting the application process corresponding to the target application, each application sub-process corresponding to the target application is also restarted accordingly.
And under the condition that the abnormal object is the target application function control, sending the application subprocess restarting activation information corresponding to the target application function control to the target application so as to restart the application subprocess by the target application. The application subprocess restarting and activating information comprises identification information of an application subprocess corresponding to the abnormal target application function control.
In one embodiment, after the abnormal object is the target application function control and the target application restarts the application sub-process corresponding to the target application function control, the abnormality monitoring system may send a pre-stored input request to the target application function control to perform request recovery. In this embodiment, for an input request requiring pre-authorization, this may be performed according to the preset requirements of the target application. The pre-authorization refers to the need to log in and confirm authorization before the target application or target application functionality control responds to an input request. The preset requirement may be to require re-login and confirm authorization. After pre-authorization, the anomaly monitoring system can send a pre-stored input request to the target application functionality control for request recovery.
In one embodiment, before executing step S101, the anomaly monitoring system may further perform parameter configuration, where the configured parameters include: terminal, input request, request type, request location, exception condition, front-end application, application opening mode, application functionality control, etc.
The abnormal conditions comprise an abnormal pre-judging condition and an abnormal triggering condition. Before the abnormal pre-judging condition corresponds to the step S101, the step of judging whether the number of the first input requests received in the first preset time exceeds the first preset value is mainly used for relatively isolating the user rapid continuous operation from the abnormal input requests, so as to avoid unnecessary system resource occupation caused by repeated position analysis.
And a step of acquiring request positions corresponding to the first input requests under the condition that the number of the first input requests received in the first preset time exceeds a first preset value, and judging that the first input requests corresponding to the same request position are abnormal input requests under the condition that the request positions corresponding to the first input requests are the same request position. When the exception triggering condition is satisfied, that is, when it is determined that the first input request corresponding to the same request position is an exception input request, an exception handling mechanism is triggered. The exception handling mechanism corresponds to the step S101 to the step S104, and restarts an application process corresponding to the target application when the exception object is the target application; and sending the application subprocess restarting activating information corresponding to the target application function control to the target application under the condition that the abnormal object is the target application function control, so that the target application restarts the application subprocess.
The method is suitable for various intelligent terminals, can effectively improve the response efficiency of the system and the operation experience of the user, reduce invalid repeated operation, shorten the waiting time of the user, reduce resource fragments and system overhead generated by the waiting time, and relieve the increasingly scarce terminal resource crisis.
Compared with the current method for processing the running abnormality of the application, the abnormality monitoring method provided by the embodiment of the invention does not need each application on the terminal to automatically monitor the abnormality, can timely determine the target application and the target application function control corresponding to the abnormal input request, avoids the repeated invalid operation of the user, reduces the resource fragments and the system overhead generated by the invalid operation, and relieves the terminal resource crisis. In addition, the method can accurately determine the abnormal object, avoid influencing the normal running subprocess in the application when the subsequent abnormality is processed, shorten the waiting time of the user and improve the abnormality processing efficiency.
An embodiment of the present invention provides an anomaly monitoring system, as shown in fig. 3, including: a positioning module 31, a tracking module 32 and an analysis module 33.
The positioning module 31 is configured to determine a target application corresponding to the abnormal input request, and determine, based on a request location corresponding to the abnormal input request and an application display page of the target application, a target application function control corresponding to the request location on the application display page.
And the tracking module 32 is used for tracking the response conditions of the target application and the target application function control to the abnormal input request so as to obtain a tracking response result.
And the analysis module 33 is configured to determine an abnormal object according to the tracking response result, where the abnormal object is an application process corresponding to the target application or a target application function control.
In one embodiment, as shown in fig. 4, the anomaly monitoring system further includes a processing module 41. The processing module 41 is configured to restart an application process corresponding to the target application when the abnormal object is the target application; and the method is also used for sending the application subprocess restarting activating information corresponding to the target application function control to the target application under the condition that the abnormal object is the target application function control so as to enable the target application to restart the application subprocess.
In one embodiment, the anomaly monitoring system further includes: and a monitoring module. The monitoring module is used for acquiring request positions corresponding to the first input requests under the condition that the number of the first input requests received in the first preset time exceeds a first preset value; each first input request is an input request with the same preset request type; and the method is also used for judging that the first input request corresponding to the same request position is an abnormal input request when the request position corresponding to each first input request is the same request position.
The working modes of the modules of the abnormality monitoring system provided in this embodiment correspond to the steps of the abnormality monitoring method applied to the abnormality monitoring system, so the detailed working modes of the modules of the abnormality monitoring system can be referred to the abnormality monitoring method applied to the abnormality monitoring system provided in this embodiment.
The abnormality monitoring system provided by the embodiment of the invention is characterized in that a positioning module is used for determining a target application corresponding to an abnormal input request, and determining a target application function control corresponding to a request position on an application display page based on the request position corresponding to the abnormal input request and the application display page of the target application; the tracking module is used for tracking response conditions of the target application and the target application function control aiming at the abnormal input request so as to obtain a tracking response result, and the analysis module is used for determining an abnormal object according to the tracking response result. The abnormality monitoring system provided by the embodiment of the invention can timely determine the target application and the target application function control corresponding to the abnormal input request without the need of the application on the terminal to perform abnormality monitoring, avoid the repeated invalid operation of a user, save resources, accurately determine the abnormal object, avoid the influence on the normal running subprocess in the application when the subsequent abnormality is processed, and improve the abnormality processing efficiency.
The embodiment of the invention also provides another abnormality monitoring method applied to the abnormality monitoring system, as shown in fig. 5, the abnormality monitoring method comprises the following steps:
step S501, a predetermined input request monitoring process is performed.
Wherein the predetermined input request monitoring process includes: it is determined whether the number of first input requests received within a first preset time exceeds a first preset value. And under the condition that the number of the first input requests received in the first preset time does not exceed a first preset value, judging that the first input requests received in the first preset time are not abnormal input requests, resetting a counter for counting the first input requests, and ending monitoring of the first input requests in the first preset time. And acquiring the request position corresponding to each first input request under the condition that the number of the first input requests received in the first preset time exceeds a first preset value. When the request positions corresponding to the first input requests are the same request position, the first input requests corresponding to the same request position are judged to be abnormal input requests. When the request positions corresponding to the first input requests are not identical, it is determined that the first input requests are not abnormal input requests, and a counter for counting the first input requests is cleared.
In step S502, when there is an abnormal input request, a predetermined positioning process is executed.
Wherein the predetermined positioning process includes: determining a target application corresponding to the abnormal input request; and determining a target application function control corresponding to the request position on the application display page based on the request position corresponding to the abnormal input request and the application display page of the target application.
Step S503, a predetermined response tracking analysis process is performed.
Wherein the predetermined trace analysis process includes: and tracking response conditions of the target application and the target application function control aiming at the abnormal input request to obtain a tracking response result, and determining an abnormal object according to the tracking response result, wherein the abnormal object is an application process corresponding to the target application or the target application function control.
Step S504, predetermined exception processing is performed.
Wherein the predetermined exception handling includes: restarting an application process corresponding to the target application under the condition that the abnormal object is the target application; and under the condition that the abnormal object is the target application function control, sending the application subprocess restarting activation information corresponding to the target application function control to the target application so as to restart the application subprocess by the target application.
It should be noted that, the description of each step in the abnormality monitoring method provided by the embodiment of the present invention refers to the description of each step in the abnormality monitoring method shown in fig. 1, and is not repeated here.
It is to be understood that the above embodiments are merely illustrative of the application of the principles of the present invention, but not in limitation thereof. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the invention, and are also considered to be within the scope of the invention.

Claims (6)

1. An anomaly monitoring method, the method comprising:
determining a target application corresponding to the abnormal input request;
determining a target application function control corresponding to the request position on the application display page based on the request position corresponding to the abnormal input request and the application display page of the target application;
tracking response conditions of the target application and the target application function control aiming at the abnormal input request so as to obtain a tracking response result;
determining an abnormal object according to the tracking response result, wherein the abnormal object is the target application or the target application function control;
Before determining the target application corresponding to the abnormal input request, the method further comprises the following steps:
acquiring request positions corresponding to the first input requests under the condition that the number of the first input requests received in the first preset time exceeds a first preset value; each first input request is an input request with the same preset request type;
judging that the first input request corresponding to the same request position is an abnormal input request under the condition that the request position corresponding to each first input request is the same request position;
the step of determining the target application function control corresponding to the request position on the application display page based on the request position corresponding to the abnormal input request and the application display page of the target application comprises the following steps:
acquiring the positions of all target application function controls in an application display page according to the application position of the target application, the relative position of all target application function controls in the application display page of the target application and the application display page range of the target application, wherein the positions are acquired in advance;
determining the target application function control corresponding to the request position based on the position of each target application function control in the application display page and the request position corresponding to the abnormal input request;
The tracking response result comprises response results of the target application for a plurality of abnormal input requests and response results of the target application function control for a plurality of abnormal input requests, and the step of determining the abnormal object according to the tracking response results comprises the following steps:
judging whether the target application is abnormal or not according to response results of the target application to a plurality of abnormal input requests;
under the condition that the target application is judged to be abnormal, determining that the abnormal object is the target application;
judging whether the target application function control is abnormal or not according to response results of the target application function control to a plurality of abnormal input requests under the condition that the target application is judged to be normal;
and under the condition that the target application function control is judged to be abnormal, determining the abnormal object as the target application function control.
2. The anomaly monitoring method of claim 1, further comprising, after the determining of the anomaly object based on the tracking response result:
restarting an application process corresponding to the target application under the condition that the abnormal object is the target application;
And sending application subprocess restarting activating information corresponding to the target application function control to the target application under the condition that the abnormal object is the target application function control so as to enable the target application to restart the application subprocess.
3. The method of claim 1, wherein the step of determining the target application to which the abnormal input request corresponds comprises:
acquiring current front-end application ordering information;
acquiring application positions and application display page ranges of all current front-end applications in the current front-end application sequencing information;
and determining a target application corresponding to the abnormal input request from each current front-end application based on the application position and the application display page range of each current front-end application and the request position corresponding to the abnormal input request.
4. The method of claim 3, wherein the step of determining the target application corresponding to the abnormal input request from each current front-end application based on the application location and the application display page range of each current front-end application and the request location corresponding to the abnormal input request comprises:
determining at least one candidate current front-end application from the current front-end applications based on the application position and the application display page range of the current front-end applications and the request position corresponding to the abnormal input request;
Under the condition that the candidate current front-end application is one, determining that the candidate current front-end application is a target application corresponding to the abnormal input request;
and under the condition that the plurality of candidate current front-end applications are provided, determining the highest-ranking current front-end application in the plurality of candidate current front-end applications as the target application corresponding to the abnormal input request based on the current front-end application ordered list.
5. An anomaly monitoring system, the system comprising:
the positioning module is used for determining a target application corresponding to an abnormal input request, and determining a target application function control corresponding to the request position on an application display page based on the request position corresponding to the abnormal input request and the application display page of the target application;
the tracking module is used for tracking the response conditions of the target application and the target application function control aiming at the abnormal input request so as to obtain a tracking response result;
the analysis module is used for determining an abnormal object according to the tracking response result, wherein the abnormal object is the target application or the target application function control;
wherein, the unusual monitored control system still includes:
The monitoring module is used for acquiring the request position corresponding to each first input request under the condition that the number of the first input requests received in the first preset time exceeds a first preset value; each first input request is an input request with the same preset request type; the method is further used for judging that the first input request corresponding to the same request position is an abnormal input request when the request position corresponding to each first input request is the same request position;
the step of determining the target application function control corresponding to the request position on the application display page based on the request position corresponding to the abnormal input request and the application display page of the target application comprises the following steps:
acquiring the positions of all target application function controls in an application display page according to the application position of the target application, the relative position of all target application function controls in the application display page of the target application and the application display page range of the target application, wherein the positions are acquired in advance;
determining the target application function control corresponding to the request position based on the position of each target application function control in the application display page and the request position corresponding to the abnormal input request;
The tracking response result comprises response results of the target application for a plurality of abnormal input requests and response results of the target application function control for a plurality of abnormal input requests, and the step of determining the abnormal object according to the tracking response results comprises the following steps:
judging whether the target application is abnormal or not according to response results of the target application to a plurality of abnormal input requests;
under the condition that the target application is judged to be abnormal, determining that the abnormal object is the target application;
judging whether the target application function control is abnormal or not according to response results of the target application function control to a plurality of abnormal input requests under the condition that the target application is judged to be normal;
and under the condition that the target application function control is judged to be abnormal, determining the abnormal object as the target application function control.
6. The anomaly monitoring system of claim 5, wherein the system further comprises:
the processing module is used for restarting an application process corresponding to the target application under the condition that the abnormal object is the target application; and the method is also used for sending the application subprocess restarting activating information corresponding to the target application function control to the target application under the condition that the abnormal object is the target application function control so as to restart the application subprocess by the target application.
CN202110576592.1A 2021-05-26 2021-05-26 Abnormality monitoring method and abnormality monitoring system Active CN113407406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110576592.1A CN113407406B (en) 2021-05-26 2021-05-26 Abnormality monitoring method and abnormality monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110576592.1A CN113407406B (en) 2021-05-26 2021-05-26 Abnormality monitoring method and abnormality monitoring system

Publications (2)

Publication Number Publication Date
CN113407406A CN113407406A (en) 2021-09-17
CN113407406B true CN113407406B (en) 2023-06-23

Family

ID=77675154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110576592.1A Active CN113407406B (en) 2021-05-26 2021-05-26 Abnormality monitoring method and abnormality monitoring system

Country Status (1)

Country Link
CN (1) CN113407406B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923261A (en) * 2021-10-29 2022-01-11 深圳壹账通智能科技有限公司 Service request response method, system, equipment and computer readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages
CN107480005A (en) * 2017-07-31 2017-12-15 惠州华阳通用电子有限公司 A kind of linux system process guard method
CN107741902A (en) * 2016-12-23 2018-02-27 腾讯科技(深圳)有限公司 Program application detection method and program application detection means
CN111324535A (en) * 2020-02-18 2020-06-23 腾讯科技(深圳)有限公司 Control abnormity detection method and device and computer equipment
CN111522706A (en) * 2020-03-25 2020-08-11 平安健康保险股份有限公司 Method and device for monitoring page abnormity of front-end application
CN111597093A (en) * 2019-02-20 2020-08-28 阿里巴巴集团控股有限公司 Exception handling method, device and equipment
CN111625446A (en) * 2020-04-30 2020-09-04 库卡机器人制造(上海)有限公司 Software testing method and device, computer readable medium and electronic equipment
CN111813623A (en) * 2020-06-29 2020-10-23 北京百度网讯科技有限公司 Page monitoring method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9075912B2 (en) * 2012-03-26 2015-07-07 Nec Laboratories America, Inc. Method and system for software system performance diagnosis with kernel event feature guidance
US11042429B2 (en) * 2019-01-07 2021-06-22 International Business Machines Corporation Selective stack trace generation during java exception handling

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages
CN107741902A (en) * 2016-12-23 2018-02-27 腾讯科技(深圳)有限公司 Program application detection method and program application detection means
CN107480005A (en) * 2017-07-31 2017-12-15 惠州华阳通用电子有限公司 A kind of linux system process guard method
CN111597093A (en) * 2019-02-20 2020-08-28 阿里巴巴集团控股有限公司 Exception handling method, device and equipment
CN111324535A (en) * 2020-02-18 2020-06-23 腾讯科技(深圳)有限公司 Control abnormity detection method and device and computer equipment
CN111522706A (en) * 2020-03-25 2020-08-11 平安健康保险股份有限公司 Method and device for monitoring page abnormity of front-end application
CN111625446A (en) * 2020-04-30 2020-09-04 库卡机器人制造(上海)有限公司 Software testing method and device, computer readable medium and electronic equipment
CN111813623A (en) * 2020-06-29 2020-10-23 北京百度网讯科技有限公司 Page monitoring method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113407406A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
EP3514684B1 (en) Memory recovery method and apparatus
CA2560747A1 (en) Profile based capture component for monitoring events in applications
CN113407406B (en) Abnormality monitoring method and abnormality monitoring system
CN103279278A (en) Method and device for acquiring detailed information of icon in terminal interface
CN103226442A (en) Method and device for processing files in batches
CN104424432A (en) Information processing method and electronic device
CN107615250A (en) A kind of processing method, device and intelligent terminal for application
CN111382026A (en) Caton monitoring method, device, system, storage medium and computer equipment
CN114416252A (en) Window display method and device, computing equipment and storage medium
CN113807228A (en) Parking event prompting method and device, electronic equipment and storage medium
CN112888026B (en) Redirection failure processing method and device, electronic equipment and readable storage medium
CN109885232A (en) The control method of data input device, apparatus and system
JP2008107875A (en) Job control unit and job control program
CN109918276B (en) Exposure buried point processing method based on APP and related equipment
KR101490984B1 (en) Providing method for event information, Integrated control system performing the same, Computer program for the same, and Recording medium storing computer program thereof
CN113824590B (en) Method for predicting problem in micro service network, computer device, and storage medium
US7543187B1 (en) Method to dynamically filter active system state (live dump) data
CN107766232B (en) Plug-in management method and device
CN112202850B (en) Intelligent cabinet after-sale maintenance work order system and processing method
CN114598547A (en) Data analysis method applied to network attack recognition and electronic equipment
CN106776119A (en) The method for restarting of Service Instance, device and server
CN104951230A (en) Information processing method and electronic equipment
CN112883253A (en) Data processing method, device, equipment and readable storage medium
CN112818204A (en) Service processing method, device, equipment and storage medium
CN112363828A (en) Memory fragment management method and device, vehicle-mounted system and vehicle

Legal Events

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