CN113407406A - Abnormity monitoring method and abnormity monitoring system - Google Patents

Abnormity monitoring method and abnormity monitoring system Download PDF

Info

Publication number
CN113407406A
CN113407406A CN202110576592.1A CN202110576592A CN113407406A CN 113407406 A CN113407406 A CN 113407406A CN 202110576592 A CN202110576592 A CN 202110576592A CN 113407406 A CN113407406 A CN 113407406A
Authority
CN
China
Prior art keywords
application
target application
request
abnormal
determining
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.)
Granted
Application number
CN202110576592.1A
Other languages
Chinese (zh)
Other versions
CN113407406B (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 the response conditions of the target application and the target application function control to the abnormal input request to obtain a tracking response result, and finally determining the abnormal object according to the tracking response result. The invention can improve the exception handling efficiency.

Description

Abnormity monitoring method and abnormity monitoring system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an anomaly monitoring method and an anomaly monitoring system.
Background
At present, users need to install various applications on terminals to meet the demands of various business services in work and life. However, as the number of applications installed on the terminal increases, the terminal resources are consumed continuously, and the terminal is prone to problems such as abnormal operation of the applications.
The current methods for processing the problems of abnormal operation of the application and the like have two modes, one mode is that the application automatically judges whether the application needs to be restarted, and the other mode is that the terminal directly restarts the whole application. The former has high application requirements, covered application scenes are not comprehensive, and the application is difficult to actively and intelligently identify the operation of the user, so that the user repeatedly carries out invalid operation, and further the terminal generates resource fragments and increases the terminal resource overhead; the latter treatment means is solidified, which often affects the sub-processes normally running in the application and reduces the efficiency of exception treatment.
Disclosure of Invention
Therefore, 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 abnormality 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 the response conditions of the target application and the target application function control to 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 the target application or the target application function control.
Optionally, after determining an abnormal object according to the tracking response result, the method further includes:
restarting the application process corresponding to the target application under the condition that the abnormal object is the target application;
and sending application subprocess restart activation 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.
Optionally, before determining the target application corresponding to the abnormal input request, the method further includes:
under the condition that the number of received first input requests in first preset time exceeds a first preset value, acquiring request positions corresponding to the first input requests; each first input request is an input request with the same preset request type;
and when the request position corresponding to each first input request is the same request position, judging that the first input request corresponding to the same request position is an abnormal input request.
Optionally, the step of determining a target application corresponding to the abnormal input request includes:
acquiring current front-end application sequencing information;
acquiring the application position and the application display page range of each current front-end application 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, a target application corresponding to the abnormal input request 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 includes:
determining at least one candidate current front-end application 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;
determining that the candidate current front-end application is a target application corresponding to the abnormal input request under the condition that one candidate current front-end application is available;
and under the condition that a plurality of candidate current front-end applications are available, determining the current front-end application with the highest rank 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 ranking list.
Optionally, the step of determining, based on a request position corresponding to the abnormal input request and an application display page of the target application, a target application functionality control corresponding to the request position on the application display page includes:
acquiring the position of each target application function control in the application display page according to the application position of the target application, the relative position of each target application function control 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.
Optionally, the tracking response result includes a response result of the target application for a plurality of the abnormal input requests and a response result of the target application functionality control for a plurality of the abnormal input requests, and the step of determining an abnormal object according to the tracking response result includes:
judging whether the target application is abnormal or not according to the response result of the target application to the abnormal input requests;
determining the abnormal object as the target application under the condition that the target application is judged to be abnormal;
under the condition that the target application is judged to be normal, judging whether the target application function control is abnormal or not according to the response result of the target application function control to the abnormal input requests;
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 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 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 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 abnormality monitoring system further includes:
the processing module is used for restarting the application process corresponding to the target application under the condition that the abnormal object is the target application; and the application subprocess restart activation information sending unit is further configured to send, to the target application, application subprocess restart activation information corresponding to the target application functional control, so that the target application restarts the application subprocess, when the abnormal object is the target application functional control.
Optionally, the abnormality monitoring system further includes:
the monitoring module is used for acquiring request positions corresponding to the first input requests under the condition that the number of the received first input requests in first preset time exceeds a first preset value; each first input request is an input request with the same preset request type; and the input device is further used for judging 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 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 the response conditions of the target application and the target application function control to the abnormal input request to obtain a tracking response result, and finally determining the abnormal object according to the tracking response result. Compared with the current method for processing the application running abnormity, the abnormity monitoring method provided by the invention does not need the application on the terminal to automatically perform abnormity monitoring, 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 also accurately determine the abnormal object, avoids influencing the normal running subprocess in the application when the abnormity is processed subsequently, and improves the abnormity processing efficiency.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit 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 that an abnormal input request corresponds to a target application 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 structural diagram of another anomaly 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 detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
At present, users need to install various applications on terminals to meet the demands of various business services in work and life. However, as the number of applications installed on the terminal increases, the terminal resources are consumed continuously, and the terminal is prone to problems such as abnormal operation of the applications.
The current methods for processing the problems of abnormal operation of the application and the like have two modes, one mode is that the application automatically judges whether the application needs to be restarted, and the other mode is that the terminal directly restarts the whole application. The former has high application requirements, covered application scenes are not comprehensive, and the application is difficult to actively and intelligently identify the operation of the user, so that the user repeatedly carries out invalid operation, and further the terminal generates resource fragments and increases the terminal resource overhead; the latter treatment means is solidified, which often affects the sub-processes normally running in the application and reduces the efficiency of exception treatment.
In order to solve the above problem, 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:
and step S101, determining a target application corresponding to the abnormal input request.
The abnormal input request is an input request for which the abnormality monitoring system judges that an abnormality exists in advance. The input request is a request needing to be clicked on a terminal screen to be effective, a specified function control needs to be clicked to make a request, and common input requests include mouse clicking, carriage return inputting, touch screen clicking and the like. The terminal refers to a visual intelligent terminal with an operating system and processing capacity, such as a computer, a mobile phone, a tablet or a service terminal, and the service terminal is an automatic teller machine, an automatic ordering terminal, and the like.
The target application corresponding to the abnormal input request is the top-layer front-end application 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.
And the request position corresponding to the abnormal input request is the click position corresponding to the abnormal input request on the terminal screen.
The target application function control is a function control operable on an application display page corresponding to the target application. The operational means that an operational response can be obtained by inputting a request. The target application function control may be a plaintext function key, such as submit, complete, log in, edit, or the like, or may be a function page, such as a word edit page or a document edit page capable of performing a carriage return operation.
And step S103, tracking the response condition of the target application and the target application function control to the abnormal input request to obtain a tracking response result.
And step S104, determining an abnormal object according to the tracking response result.
And the abnormal object is a target application or the target application function control.
In one embodiment, after determining the abnormal object according to the tracking response result (step S104), the method further includes:
under the condition that the abnormal object is the target application, restarting an application process corresponding to the target application; and under the condition that the abnormal object is the target application function control, sending application subprocess restart activation information corresponding to the target application function control to the target application so that the target application restarts the application subprocess.
The anomaly monitoring method provided by the embodiment of the invention comprises the steps of firstly, determining a target application corresponding to an anomaly 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 anomaly input request and the application display page of the target application; and then tracking the response conditions of the target application and the target application function control to the abnormal input request to obtain a tracking response result, and finally determining the abnormal object according to the tracking response result. Compared with the current method for processing the application running abnormity, the abnormity monitoring method provided by the embodiment of the invention does not need the application on the terminal to perform abnormity monitoring by itself, can determine the target application and the target application function control corresponding to the abnormal input request in time, avoids the user from repeatedly performing invalid operation, saves resources, can also accurately determine the abnormal object, avoids influencing the normal running subprocess in the application when the abnormity is processed subsequently, and improves the abnormity processing efficiency.
In one embodiment, in order to relatively isolate the user' S fast continuous input operation from the abnormal input request and avoid unnecessary system resource occupation caused by repeated location analysis, before step S101, i.e. 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:
and judging whether the number of the first input requests received in the first preset time exceeds a first preset value. And under the condition that the number of the first input requests received within the first preset time does not exceed a first preset value, judging that the first input requests received within the first preset time are not abnormal input requests, clearing a counter for counting the number of the input requests, and finishing monitoring the first input requests within the first preset time.
And under the condition that the number of the received first input requests in the first preset time exceeds a first preset value, acquiring request positions corresponding to the first input requests. And judging whether the request positions corresponding to the first input requests are the same request position or not, 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. And when the request position corresponding to each first input request is the same request position, judging that the first input request corresponding to the same request position is an abnormal input request, and starting an abnormal processing mechanism. And under the condition that the request positions corresponding to the first input requests are not the same, judging that the first input request has high probability of being the quick continuous input operation of the user, without starting an exception handling mechanism, and clearing a counter for counting the number of the first input requests. The exception handling mechanism comprises the steps S101 to S104, and restarts the application process corresponding to the target application when the exception object is the target application; and sending application subprocess restart activation 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 type of a request allowed by the terminal operating system, and may be a request type for a click to take effect, for example, a mouse click request type, an enter input request type, or a touch click request type. It should be noted that the preset request types in the embodiment of the present invention do not include a zoom-in request, a zoom-out request, and a slide validation operation request type.
The request position corresponding to the first input request is a click position corresponding to the first input request on the terminal screen. In one embodiment, the request location and the request type corresponding to the first input request are pre-stored in the terminal. The terminal may recognize a request type of an 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 a mouse position capture tool in the terminal can acquire a position of the mouse click input on a current display page of the terminal, so as to determine a request position corresponding to the first input request; for example, the first input request is a enter input, that is, the type of the first input request is a enter input request type, and the terminal can capture the position of a cursor through a display page tool, so as to determine a request position corresponding to the first input request; for example, for the 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 requests received by the terminal within the first preset time are mouse input requests, and the number of the mouse input requests is 8. The anomaly monitoring system determines whether the number of first input requests received within a first predetermined time exceeds a first predetermined value, for example, whether the number exceeds 5. Since the number of the first input requests exceeds 5, the corresponding request positions of the first input requests are acquired, respectively. And judging whether the request positions corresponding to the first input requests are the same request position or not, 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. And when the request position corresponding to each first input request is the same request position, judging that the first input requests corresponding to the same request position are all abnormal input requests. When the request positions corresponding to the first input requests are not the same request position, it is determined that the first input request is not an abnormal input request, and a counter for counting the number of first input requests is cleared.
Fig. 2 is a flowchart of a method for determining that an abnormal input request corresponds to a target application according to an embodiment of the present invention. As shown in fig. 2, in an embodiment, the step S101 of determining a target application corresponding to the abnormal input request includes the following steps:
step S201, obtaining current front-end application sorting information.
It should be noted that the applications on the terminal can be divided into front-end applications and background applications. The front-end application is an application with a display interface and an operable function control, namely a visual application capable of being displayed on a screen of the terminal; the background application is an application which runs in the background of the terminal but is not displayed on the screen of the terminal, namely an application which has no front page display, no operable function and embedded in the background.
The current front-end application is an application which can be displayed on a screen of the terminal at present, and in the current front-end application sequencing information, the front-end applications are sequenced according to the execution sequence of the application process and the application subprocess corresponding to the front-end applications. It should be noted that, based on the current front-end application sorting information, the anomaly monitoring system can obtain the sequence of the application display pages corresponding to the current front-end application, for example, if the front-end application a is arranged before the front-end application B in the current front-end application sorting information, it indicates that the application display page corresponding to the current front-end application a runs on the 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 ordered list corresponding to the currently running application list; and acquiring the current front-end application sequencing information based on the current running application list, the process sequencing list and the running type of each current running application.
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 ordered list corresponding to the currently running application list comprises the ordering of the application processes and the application subprocesses corresponding to all the currently running applications on the terminal, and the process ordered list is ordered according to the execution sequence of the current application processes and the application subprocesses.
It should be noted that the currently running application list and the process ordered list corresponding to the currently running application list are both stored in the terminal, and the abnormality monitoring system may obtain the currently running application list and the process ordered list corresponding to the currently running application list through the terminal.
Step S202, obtaining the application position and the application display page range of each current front-end application in the current front-end application sequencing information.
The application position and the application display page range of each current front-end application are prestored in the terminal, and the anomaly monitoring system can acquire the application position and the application display page range of each current front-end application in the current front-end application sequencing information through the terminal.
Step S203, 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.
The application position is a position of the application on a terminal screen and can be acquired through a terminal interface capture tool. The application page display range includes a full screen range, a default reduced range, and a manual size range.
In some embodiments, the application page display range may be obtained according to an opening manner of the application, for example, the opening manner is based on a full screen range, and the application page display range may be regarded as a full screen range; if the opening mode is based on the default reduced range, the display range of the application page can be regarded as the default reduced range; if the opening mode is based on the manual size range, the application page display range can be regarded as the manual size range.
In some embodiments, the step of determining, 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, a target application corresponding to the abnormal input request from each current front-end application includes:
step one, determining at least one candidate current front-end application 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.
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 then, based on a request position corresponding to the abnormal input request, at least one application display page corresponding to the request position on the terminal screen can be determined, and 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 there are multiple application display pages corresponding to the request position on the terminal screen, the current front-end applications corresponding to the multiple application display pages are all determined candidate current front-end applications.
And step two, under the condition that one candidate current front-end application is used, determining that the candidate current front-end application is a target application corresponding to the abnormal input request.
And thirdly, under the condition that a plurality of candidate current front-end applications are available, determining the current front-end application with the highest rank in the plurality of candidate current front-end applications as a target application corresponding to the abnormal input request based on the current front-end application ranking list.
The current front-end application ordered list may be used to provide a sequential order of application display pages corresponding to the current front-end application. Therefore, in the case that there are a plurality of candidate current front-end applications, based on the current front-end application ranking list, it is determined that the highest ranked current front-end application among the plurality of candidate current front-end applications is the target application corresponding to the abnormal input request, in other words, it is determined that the current front-end application running on the uppermost layer of the application display pages among the plurality of candidate current front-end applications is the target application corresponding to the abnormal input request.
In an embodiment, in the step S102, the step of determining the target application functionality 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 includes: acquiring the position of each target application function control in an application display page according to the application position of the target application, the relative position of each target application function control 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 abnormity monitoring system can acquire the relative position information of each target application function control of the target application pre-stored on the terminal and the application display page through the terminal. And 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 functionality control C is located in the application display page at a height of 1/5 pages from a lower edge of the application display page and a length of 1/7 pages from a right edge of the application display page, where the height and length of the pages are the height and length of the application display page, respectively.
In this embodiment, the anomaly monitoring terminal first obtains an application position of a 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 to which each target application function control in the application display page belongs according to a coverage range of the application display page on a terminal screen, that is, the application display page range, the application position, and the relative position of each target application function control, where each target application function control belongs, and the position to which each target application function control belongs refers to a position to which each target application function control belongs on the terminal screen. And finally, determining a target application function control of which the distance between the position and the request position corresponding to the abnormal input request is smaller than or equal to a preset distance threshold, namely determining the target application function control corresponding to the request position.
In one embodiment, in the step S103, the response conditions of the target application and the target application functionality control for the abnormal input requests are tracked to obtain the tracked response results, where the tracked response results include the response results of the target application for the multiple abnormal input requests and the response results of the target application functionality control for the multiple abnormal input requests.
In this embodiment, the step of determining an abnormal object according to the tracking response result includes:
step one, judging whether the target application is abnormal or not according to the response result of the target application to the abnormal input requests.
Among response results of the target application for the plurality of abnormal input requests, each response result includes a normal result or an abnormal result, and the abnormal result is, for example, a null result, that is, the content of the response result for the abnormal input request is null.
In one embodiment, in the response results of the target application to the multiple abnormal input requests, if the number of the abnormal results is greater than a second preset value, it is determined that the target application is abnormal; and under the condition that the number of the abnormal results is not 0 and not greater than a second preset value, judging that the target application needs to continue monitoring. And if the number of the abnormal results is 0, judging that the target application is normal. The second preset value may be set according to a specific implementation scenario, for example, set to 3.
In one embodiment, when it is determined that the target application needs to continue monitoring, tracking the response situation of the target application to the abnormal input request within a second preset time, obtaining the response results of the target application to the plurality of abnormal input requests, and determining whether the target application is abnormal. And after the second preset time is exceeded, if the target application is still judged to need to be monitored continuously, the target application is confirmed to be abnormal.
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 it is determined that the abnormal object is the target application, in a subsequent processing process, the application process corresponding to the target application needs to be restarted, and each application sub-process corresponding to the target application is also restarted correspondingly 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 response result of the target application function control to the exception input request is, the exception monitoring system does not need to analyze and process the response result of the target application function control to the plurality of exception input requests, which is included in the tracking response result.
And thirdly, under the condition that the target application is judged to be normal, judging whether the target application function control is abnormal or not according to the response result of the target application function control to the plurality of abnormal input requests.
In response results of the target application functionality control for the multiple abnormal input requests, the response results include normal results or abnormal results, and the abnormal results include, for example, null results, that is, the content of the response results for the abnormal input requests is null.
In one embodiment, in response results of the target application function control to the multiple abnormal input requests, if the number of the abnormal results is greater than a third preset value, it is determined that the target application function control is abnormal; and under the condition that the number of the abnormal results is not 0 and not greater than a third preset value, judging that the target application function control needs to continue monitoring. 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, when it is determined that the target application function control needs to continue monitoring, tracking a response situation of the target application function control to the abnormal input request is performed again within a third preset time, so as to obtain a response result of the target application function control to the plurality of abnormal input requests, and determine whether the target application function control is abnormal. And after the third preset time is exceeded, if the target application function control still needs to be monitored continuously, determining that the target application function control is abnormal.
And step four, determining the abnormal object as the target application function control under the condition that the target application function control is judged to be abnormal.
In one embodiment, when the target application function control is judged to be normal, the counters and the timers in the monitoring process are cleared, and the step of tracking the response conditions of the target application and the target application function control to the abnormal input request at this time is finished.
In one embodiment, after determining the abnormal object according to the tracking response result (step S104), the method 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 correspondingly.
And under the condition that the abnormal object is the target application function control, sending application subprocess restart activation information corresponding to the target application function control to the target application so that the target application restarts the application subprocess. The application subprocess restart activation information comprises identification information of the 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 subprocess 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, the input request requiring pre-authorization may be performed according to the preset requirements of the target application. The pre-authorization means that the target application or the target application functionality control needs to be logged in and authorized before responding to the input request. Wherein the predetermined requirement may be a requirement to 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 an embodiment, before performing step S101, the anomaly monitoring system may further perform parameter configuration, where the configured parameters include: the system comprises a terminal, an input request, a request type, a request position, an abnormal condition, a front-end application, an application opening mode, an application function control and the like.
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 within the first preset time exceeds the first preset value is mainly used for relatively isolating the user' S fast and continuous operation from the abnormal input requests, and avoiding unnecessary system resource occupation caused by repeated position analysis.
And a step of acquiring a request position corresponding to each first input request under the condition that the quantity of the received first input requests in a 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 position corresponding to each first input request is the same request position. And triggering an exception handling mechanism when the exception triggering condition is met, namely judging that the first input request corresponding to the same request position is an exception input request. Wherein, the exception handling mechanism corresponds to the steps S101 to S104, and restarts the application process corresponding to the target application when the exception object is the target application; and sending application subprocess restart activation 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 system response efficiency and the user operation experience, reduce invalid repeated operation, shorten the user waiting time, reduce the resource fragments and the system overhead generated by the invalid repeated operation, and relieve the increasingly short terminal resource crisis.
Compared with the current method for processing the application running abnormity, the abnormity monitoring method provided by the embodiment of the invention does not need each application on the terminal to perform abnormity monitoring by itself, can determine the target application and the target application function control corresponding to the abnormal input request in time, avoids the user from repeatedly performing invalid operation, reduces the resource fragments and the system overhead generated by the invalid operation, and relieves the resource crisis of the terminal. In addition, the method can also accurately determine the abnormal object, avoid influencing the sub-process which normally runs in the application when the subsequent abnormal is processed, shorten the waiting time of the user and improve the abnormal processing efficiency.
An embodiment of the present invention provides an anomaly monitoring system, as shown in fig. 3, where the anomaly monitoring system includes: 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 further determine 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.
And the tracking module 32 is used for tracking the response condition 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 or a target application function control corresponding to the target application.
In one embodiment, as shown in fig. 4, the above-mentioned abnormality monitoring system further includes a processing module 41. The processing module 41 is configured to restart the application process corresponding to the target application when the abnormal object is the target application; and sending application subprocess restart activation 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.
In one embodiment, the abnormality 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 first preset time exceeds a first preset value; each first input request is an input request with the same preset request type; and the input device 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 anomaly monitoring system provided in this embodiment correspond to the steps of the anomaly monitoring method applied to the anomaly monitoring system, and therefore, the detailed working modes of the modules in the anomaly monitoring system can be referred to the anomaly monitoring method applied to the anomaly monitoring system provided in this embodiment.
In the anomaly monitoring system provided in the embodiment of the present invention, the positioning module is configured to determine a target application corresponding to the anomalous input request, and determine a target application function control corresponding to the request position on the application display page based on the request position corresponding to the anomalous 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 to the abnormal input request to obtain a tracking response result, and the analysis module is used for determining an abnormal object according to the tracking response result. The abnormity monitoring system provided by the embodiment of the invention can determine the target application and the target application function control corresponding to the abnormal input request in time without automatically monitoring the abnormity of the application on the terminal, thereby avoiding the repeated invalid operation of a user, saving resources, accurately determining the abnormal object, avoiding the influence on the normal running subprocess in the application when the abnormity is processed subsequently, and improving the abnormity processing efficiency.
An embodiment of the present invention further provides another anomaly monitoring method applied to the above anomaly monitoring system, as shown in fig. 5, the anomaly monitoring method includes the following steps:
step S501, a predetermined input request monitoring process is executed.
Wherein the predetermined input request monitoring process includes: and judging whether the number of the first input requests received in the first preset time exceeds a first preset value. And under the condition that the number of the first input requests received within the first preset time does not exceed a first preset value, judging that the first input requests received within the first preset time are not abnormal input requests, clearing a counter for counting the first input requests, and finishing monitoring the first input requests within the first preset time. And under the condition that the number of the received first input requests in the first preset time exceeds a first preset value, acquiring request positions corresponding to the first input requests. When the request position corresponding to each first input request is the same request position, the first input request corresponding to the same request position is judged to be an abnormal input request. When the request positions corresponding to the first input requests are not the same request position, it is determined that the first input request is not an abnormal input request, and a counter for counting the first input request is cleared.
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 executed.
Wherein the predetermined trace analysis process comprises: tracking the response condition of the target application and the target application function control to 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, executing preset exception processing.
Wherein the predetermined exception handling comprises: under the condition that the abnormal object is the target application, restarting an application process corresponding to the target application; and under the condition that the abnormal object is the target application function control, sending application subprocess restart activation information corresponding to the target application function control to the target application so that the target application restarts the application subprocess.
It should be noted that, for descriptions of steps in another abnormality monitoring method provided in the embodiment of the present invention, reference is made to descriptions of steps in the abnormality monitoring method shown in fig. 1, and details are not described here again.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. An anomaly monitoring 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 the response conditions of the target application and the target application function control to 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 the target application or the target application function control.
2. The anomaly monitoring method according to claim 1, further comprising, after said determining an anomalous object from said trace response result:
restarting the application process corresponding to the target application under the condition that the abnormal object is the target application;
and sending application subprocess restart activation 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.
3. The method of claim 1, prior to determining the target application to which the abnormal input request corresponds, further comprising:
under the condition that the number of received first input requests in first preset time exceeds a first preset value, acquiring request positions corresponding to the first input requests; each first input request is an input request with the same preset request type;
and when the request position corresponding to each first input request is the same request position, judging that the first input request corresponding to the same request position is an abnormal input request.
4. The method according to claim 1, wherein the step of determining the target application corresponding to the abnormal input request comprises:
acquiring current front-end application sequencing information;
acquiring the application position and the application display page range of each current front-end application 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.
5. The method according to claim 4, wherein the step of 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 comprises:
determining at least one candidate current front-end application 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;
determining that the candidate current front-end application is a target application corresponding to the abnormal input request under the condition that one candidate current front-end application is available;
and under the condition that a plurality of candidate current front-end applications are available, determining the current front-end application with the highest rank 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 ranking list.
6. The method according to claim 1, wherein the step of determining a target application functionality 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:
acquiring the position of each target application function control in the application display page according to the application position of the target application, the relative position of each target application function control 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.
7. The method according to claim 1, wherein the tracking response result comprises a response result of the target application for a plurality of the abnormal input requests and a response result of the target application functionality control for a plurality of the abnormal input requests, and the step of determining an abnormal object according to the tracking response result comprises:
judging whether the target application is abnormal or not according to the response result of the target application to the abnormal input requests;
determining the abnormal object as the target application under the condition that the target application is judged to be abnormal;
under the condition that the target application is judged to be normal, judging whether the target application function control is abnormal or not according to the response result of the target application function control to the abnormal input requests;
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.
8. An anomaly monitoring system, said 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 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 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 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.
9. The anomaly monitoring system of claim 8, said system further comprising:
the processing module is used for restarting the application process corresponding to the target application under the condition that the abnormal object is the target application; and the application subprocess restart activation information sending unit is further configured to send, to the target application, application subprocess restart activation information corresponding to the target application functional control, so that the target application restarts the application subprocess, when the abnormal object is the target application functional control.
10. The anomaly monitoring system of claim 8, further comprising:
the monitoring module is used for acquiring request positions corresponding to the first input requests under the condition that the number of the received first input requests in first preset time exceeds a first preset value; each first input request is an input request with the same preset request type; and the input device is further used for judging 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 the same request position.
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 true CN113407406A (en) 2021-09-17
CN113407406B 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)

Cited By (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 (10)

* 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
US20140115403A1 (en) * 2012-03-26 2014-04-24 Nec Laboratories America, Inc. Method and System for Software System Performance Diagnosis with Kernel Event Feature Guidance
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
US20200218553A1 (en) * 2019-01-07 2020-07-09 International Business Machines Corporation Selective stack trace generation during java exception handling
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140115403A1 (en) * 2012-03-26 2014-04-24 Nec Laboratories America, Inc. Method and System for Software System Performance Diagnosis with Kernel Event Feature Guidance
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
US20200218553A1 (en) * 2019-01-07 2020-07-09 International Business Machines Corporation Selective stack trace generation during java exception handling
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

Cited By (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

Also Published As

Publication number Publication date
CN113407406B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN105611330B (en) Smart television maintenance method and system, server and mobile terminal
CN105955876B (en) Data monitoring processing method and device
CN101470426A (en) Fault detection method and system
CN113407406B (en) Abnormality monitoring method and abnormality monitoring system
CN105955573A (en) Mobile terminal application switching method and system
EP3289464A1 (en) Detection of node.js memory leaks
CN105512000B (en) Operating system abnormal information collection method and device and computer
CN111949402A (en) Database request processing method and device, computer equipment and storage medium
CN107615250A (en) A kind of processing method, device and intelligent terminal for application
CN108958883B (en) Recovery method and system for virtual machine in cloud computing cluster
CN111382026A (en) Caton monitoring method, device, system, storage medium and computer equipment
CN105677150A (en) Data cleaning method and device for application program
CN111949368A (en) Application program control method and device
EP2940600A1 (en) Data scanning method and device
CN109271059B (en) Screen false touch prevention method, terminal and computer readable storage medium
CN109885232A (en) The control method of data input device, apparatus and system
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
US7543187B1 (en) Method to dynamically filter active system state (live dump) data
CN109918276B (en) Exposure buried point processing method based on APP and related equipment
CN112202850B (en) Intelligent cabinet after-sale maintenance work order system and processing method
CN113900910A (en) Application program monitoring method and device, storage medium and electronic equipment
CN111654401B (en) Network segment switching method, device, terminal and storage medium of monitoring system
CN106776119A (en) The method for restarting of Service Instance, device and server
CN114490003A (en) Distributed job scheduling method of large-scale data and related equipment
CN113824590A (en) Method for predicting problem of micro service network, computer device and 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
GR01 Patent grant
GR01 Patent grant