Method and device for monitoring running state of application program and computer equipment

By collecting the real-time running parameters and code execution path of the application, using the monitoring model to calculate the probability of running lag and sending early warning notifications, the problem that it is difficult to quickly locate and solve the application performance problems in the existing technology is solved, and the application stability is achieved Improved sex and reduced data loss.

CN119201589APending Publication Date: 2024-12-27BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411004990.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, the performance problems of the application are difficult to quickly locate and solve, resulting in a reduced user experience, and data losses caused by lag problems are difficult to avoid.

Method used

By collecting the application's real-time operation parameters and code execution path, input them to the monitoring model, calculate the probability of running lag and sending early warning notifications, predict and handle lag situations in a timely manner, and reduce data losses.

Benefits of technology

Improve the stability of the application, timely prediction and processing lags, reduce data losses caused by lags, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201589A_ABST
    Figure CN119201589A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of software running monitoring, and particularly discloses a method and device for monitoring the running state of an application program and computer equipment. The method comprises the steps that real-time running parameters and a real-time code execution path of the application program are collected; the real-time operation parameters and the real-time code execution path are input into a monitoring model, and the monitoring model is used for executing a real-time monitoring step and outputting the operation lagging probability of the application program and the real-time code execution path; and receiving the running lagging probability and the real-time code execution path output by the monitoring model, and sending a lagging early warning notification. According to the method and the device, the running lagging condition of the application program can be predicted in time, and the user can be notified, so that the user can clean the memory or reduce the CPU proportion in time according to the early warning notification, the application program data can be stored in time, the data loss caused by application program lagging and crash is reduced, and the stability of the application program is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of software operation monitoring, and in particular to a method, device and computer equipment for monitoring the running status of an application program. Background Art

[0002] As applications develop, users have higher and higher requirements for application experience and performance. Application performance issues not only affect the user experience, but also seriously affect the trust and market share of applications.

[0003] In related technologies, the running status of applications is usually monitored to detect freeze problems. Specifically, the performance log of the application is captured, and developers analyze the performance log to determine whether freezes occur, and locate code defects for optimization. However, in most cases, it is difficult to identify the problem code when troubleshooting, the solution cycle is long, and testing is difficult (some freeze problems cannot be reproduced). Some freeze problems even make certain functions of the application or the entire application unable to be used normally before they are fixed, greatly reducing the user experience. Summary of the invention

[0004] Based on this, it is necessary to provide a method, apparatus, computer device, storage medium and computer program product for monitoring the running status of an application program in response to the above technical problems.

[0005] In a first aspect, the present disclosure provides a method for monitoring the running status of an application. The method comprises:

[0006] Collect the real-time running parameters and real-time code execution path of the application;

[0007] Inputting the real-time running parameters and the real-time code execution path into a monitoring model, wherein the monitoring model is used to perform a real-time monitoring step and output a running jam probability of the application and the real-time code execution path;

[0008] Receive the running jam probability and the real-time code execution path output by the monitoring model, and send a jam warning notification;

[0009] Wherein, the real-time monitoring step includes:

[0010] Determine the corresponding business function according to the real-time code execution path, and determine the target operating parameter range of the application program corresponding to the business function under the normal operating state;

[0011] Determine the probability of operation jam of the application program according to the real-time operation parameter and the target operation parameter range;

[0012] And when the running jam probability is greater than or equal to a preset threshold, the running jam probability and the real-time code execution path are output.

[0013] In one embodiment, the training step of the monitoring model includes:

[0014] Collecting a first operating parameter and a first code execution path of the application in a normal operating state, and collecting a second operating parameter and a second code execution path of the application in an abnormal operating state;

[0015] Determine the business function corresponding to the code execution path according to the first code execution path and the second code path;

[0016] Determine the target operating parameter range corresponding to the business function according to the first operating parameter and the second operating parameter;

[0017] Establish the target operating parameter range and calculation rules for the operating jam probability.

[0018] In one embodiment, determining the corresponding business function according to the real-time code execution path, and determining the target operating parameter range of the application corresponding to the business function under the normal operating state also includes:

[0019] The operating system parameters of the application are obtained, and the target operating parameter range is modified according to the operating system parameters.

[0020] In one embodiment, the method further comprises:

[0021] The running jam probability and the real-time code execution path are sent to a server to instruct the server to optimize the application according to the real-time code execution path.

[0022] In one embodiment, the method further comprises:

[0023] A software development kit is obtained, wherein the monitoring model is encapsulated in the software development kit, and the monitoring model is integrated into the application.

[0024] In a second aspect, the present disclosure further provides a device for monitoring the running status of an application program. The device comprises:

[0025] The parameter real-time acquisition module is used to acquire the real-time running parameters and real-time code execution path of the application program;

[0026] A monitoring model module, used for inputting the real-time operation parameters and the real-time code execution path into a monitoring model, wherein the monitoring model is used for executing a real-time monitoring step and outputting the operation jam probability of the application and the real-time code execution path;

[0027] An early warning notification module is used to receive the running jam probability and the real-time code execution path output by the monitoring model, and send a jamming early warning notification;

[0028] Wherein, the monitoring model module includes:

[0029] A target operating parameter range unit, used to determine a corresponding business function according to the real-time code execution path, and determine a target operating parameter range of the application program corresponding to the business function under a normal operating state;

[0030] A jamming probability unit, used to determine the jamming probability of the application program according to the real-time operating parameter and the target operating parameter range;

[0031] An output unit is used to output the running jam probability and the real-time code execution path when the running jam probability is greater than or equal to a preset threshold.

[0032] In one embodiment, a model training module is also included, and the model training module includes:

[0033] A training sample unit, used to collect a first operating parameter and a first code execution path of the application in a normal operating state, and to collect a second operating parameter and a second code execution path of the application in an abnormal operating state;

[0034] A business function corresponding unit, configured to determine a business function corresponding to a code execution path according to the first code execution path and the second code path;

[0035] a parameter range setting unit, configured to determine the target operating parameter range corresponding to the business function according to the first operating parameter and the second operating parameter;

[0036] A calculation unit is used to establish the target operating parameter range and the calculation rules of the operating jam probability.

[0037] In one embodiment, determining the corresponding business function according to the real-time code execution path, and determining the target operating parameter range of the application corresponding to the business function under the normal operating state also includes:

[0038] The operating system parameters of the application are obtained, and the target operating parameter range is modified according to the operating system parameters.

[0039] In one embodiment, the device further comprises:

[0040] The server return module is used to send the running jam probability and the real-time code execution path to the server, and to instruct the server to optimize the application according to the real-time code execution path.

[0041] In one embodiment, the device further comprises:

[0042] A software development kit module is used to obtain a software development kit, in which the monitoring model is encapsulated, and integrate the monitoring model into the application.

[0043] In a third aspect, the present disclosure further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned method for monitoring the running status of the application are implemented.

[0044] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned method for monitoring the running status of an application program when the computer program is executed by a processor.

[0045] In a fifth aspect, the present disclosure further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for monitoring the running status of the application are implemented.

[0046] The above-mentioned method, device, computer equipment, storage medium and computer program product for monitoring the running status of an application program have at least the following beneficial effects:

[0047] By collecting the real-time running parameters and real-time code execution path of the application, and inputting the collected real-time running parameters and real-time code execution path into the monitoring model, the monitoring model determines the running jam probability of the application according to the real-time code execution path and the real-time running parameters, and when the running jam probability is greater than or equal to the preset threshold, the running jam probability and the real-time code execution path output by the monitoring model are received, and then jam warning notifications are sent according to the output running jam probability and real-time code execution path. The running jam situation of the application can be predicted in time, and the user can be notified, so that the user can clean up the memory or reduce the CPU usage in time according to the warning notification, and store the application data in time, thereby reducing the data loss caused by the jamming and crash of the application and improving the stability of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 An application environment diagram of a method for monitoring the running status of an application program in one embodiment;

[0050] Figure 2 A schematic diagram of a flow chart of a method for monitoring the running status of an application program in one embodiment;

[0051] Figure 3 A schematic diagram of a flow chart of a monitoring model executing a real-time monitoring step in one embodiment;

[0052] Figure 4 A schematic diagram of a flow chart of a monitoring model training step in one embodiment;

[0053] Figure 5 is a structural block diagram of a device for monitoring the running status of an application program in one embodiment;

[0054] Figure 6 A structural block diagram of a monitoring model module in an embodiment;

[0055] Figure 7 A structural block diagram of a model training module in an embodiment;

[0056] Figure 8 FIG. 4 is a block diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein in the specification of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0059] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are only examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements inherent to such process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. For example, if the words first, second, etc. are used to represent the name, they do not represent any specific order.

[0060] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, in this specification, the term "and / or" includes any and all combinations of the relevant listed items.

[0061] The method for monitoring the running status of an application provided in the embodiment of the present disclosure can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the terminal 102 needs to process. The data storage system can be integrated on the terminal 102, or it can be placed on the cloud or other network servers. The terminal 102 is equipped with an application, and the application can provide services to users by executing business functions. In order to monitor the running status of the application, the terminal 102 can collect the real-time running parameters and real-time code execution path of the application, and input the real-time running parameters and real-time code execution path into the monitoring model. The monitoring model is trained to input the real-time running parameters and real-time code execution path, and the output parameters are the running jam probability of the application and the real-time code execution path. The terminal 102 can receive the running jam probability and the real-time code execution path output by the monitoring model, and send a jam warning notification. The monitoring model can be pre-trained by the terminal 102 or the server 104. Among them, the terminal 102 can be, but not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable device may be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0062] In some embodiments of the present disclosure, Figure 2 and Figure 3 As shown, a method for monitoring the running status of an application is provided, and the method is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:

[0063] Step 210: Collect the real-time running parameters and real-time code execution path of the application program.

[0064] Exemplarily, the terminal can collect the real-time operating parameters and real-time code execution path of the monitored application in real time. Among them, the operating parameters of the application can refer to the parameters used to characterize the operating state of the application when it is in operation, such as CPU (Central Processing Unit) usage, memory usage, etc. The code execution path usually refers to the index constructed by hierarchical folders in the operating system / file system of the terminal when the application is in operation.

[0065] Step 220, input the real-time operation parameters and the real-time code execution path into a monitoring model, the monitoring model is used to perform a real-time monitoring step, and output the application's operation jam probability and the real-time code execution path.

[0066] Exemplarily, the terminal can input the collected real-time operation parameters and real-time code execution path into a pre-trained monitoring model as input parameters of the monitoring model. The monitoring model can perform time monitoring steps according to the input parameters and output the current running jam probability and real-time code execution path of the application.

[0067] Step 230, receiving the running jam probability and the real-time code execution path output by the monitoring model, and sending a jam warning notification.

[0068] For example, the terminal can receive the running jam probability and real-time code execution path output by the monitoring model, and send a jam warning notification. The warning notification can be displayed in the form of a pop-up window on the display interface of the terminal to remind the user of the running status risk of the application.

[0069] Wherein, step 220 includes:

[0070] Step 222: determine the corresponding business function according to the real-time code execution path, and determine the target operating parameter range of the application program corresponding to the business function under the normal operating state.

[0071] Exemplarily, the monitoring model can determine the corresponding business function based on the real-time code execution path. The application provides business services through multiple business function modules. The monitoring model can determine the currently called business function module based on the real-time code execution path, that is, determine the corresponding business function. For example, when a financial application is running on a terminal, the monitoring model can determine that the current running state of the application corresponds to the transfer business function, the report download business function, or other business functions based on the real-time code execution path.

[0072] Each business function has its own target operating parameter range. The monitoring model can store and read the correspondence between the business function and the target operating parameter range. After determining the business function, the monitoring model can further determine the target operating parameter range corresponding to the business function. For example, the target operating parameter range corresponding to business function A is that the CPU usage is less than or equal to 80%, and the target operating parameter range corresponding to business function B is that the CPU usage is less than or equal to 60%.

[0073] Step 224, determining the probability of the application being stuck in operation according to the real-time operation parameter and the target operation parameter range.

[0074] Exemplarily, the monitoring model can compare the real-time operating parameters with the obtained target operating parameter range, and then determine the current operating jam probability of the application according to the real-time operating parameters. For example, the monitoring model determines that the corresponding business function is business function A according to the real-time code execution path, where the target operating parameter range corresponding to business function A is that the CPU usage is less than or equal to 80%. When the real-time operating parameter is 50%, the monitoring model can output the operating jam probability as 5%, and when the real-time operating parameter is 90%, the monitoring model can output the operating jam probability as 90%.

[0075] Step 226: When the running jam probability is greater than or equal to a preset threshold, output the running jam probability and the real-time code execution path.

[0076] Exemplarily, the monitoring model can compare the obtained operation jam probability with a preset threshold value, and when it is determined that the operation jam probability is greater than or equal to the preset threshold value, the operation jam probability and the real-time code execution path are output to trigger the terminal to send an early warning notification. The preset threshold can be set according to the user's requirements for the level of sophistication of the early warning. Among them, the monitoring model can adopt an AI model, which generally refers to a mathematical model that uses methods from fields such as mathematics, statistics, computer science, and machine learning to analyze, process, predict, and optimize data with certain regularity and predictability, that is, an AI model is a mathematical model that can convert "data" into "intelligence".

[0077] In the above-mentioned method for monitoring the running status of the application, the real-time running parameters and real-time code execution path of the application are collected, and the collected real-time running parameters and real-time code execution path are input into the monitoring model. The monitoring model determines the running jam probability of the application according to the real-time code execution path and the real-time running parameters, and when the running jam probability is greater than or equal to the preset threshold, the running jam probability and the real-time code execution path output by the monitoring model are received, and then a jam warning notification is sent according to the output running jam probability and the real-time code execution path. The running jam of the application can be predicted in time, and the user can be notified, so that the user can clean up the memory or reduce the CPU usage in time according to the warning notification, and store the application data in time, thereby reducing the data loss caused by the application jam and crash, and improving the stability of the application.

[0078] In some embodiments of the present disclosure, Figure 4 As shown, the training steps of the monitoring model include:

[0079] Step A10, collecting the first operating parameters and the first code execution path of the application in a normal operating state, and collecting the second operating parameters and the second code execution path of the application in an abnormal operating state.

[0080] Exemplarily, the terminal or server can collect the first operating parameter and the first code execution path of the application in a normal operating state, and the second operating parameter and the second code execution path of the application in an abnormal operating state as training samples. The training process of the monitoring model can be performed by server training or terminal training.

[0081] Step A20: determining the business function corresponding to the code execution path according to the first code execution path and the second code path.

[0082] Exemplarily, based on the comparison and integration of the first code execution path and the second code path, and in combination with the business services involved in the application, the code execution path of the application and the business function are matched, that is, the business function corresponding to the code execution path is determined.

[0083] Step A30: determining the target operating parameter range corresponding to the business function according to the first operating parameter and the second operating parameter.

[0084] Exemplarily, a target operating parameter range for each business function may be obtained by repeatedly testing multiple sets of first operating parameters and multiple sets of second operating parameters. The target operating parameter range may refer to an operating parameter range within which the business function can operate normally.

[0085] Step A40, establishing the target operating parameter range and calculation rules for the operating freeze probability.

[0086] Exemplarily, according to the obtained target operating parameter range, a calculation rule for the target operating parameter range and the probability of operation jamming is established. The calculation rule may adopt linear or nonlinear calculation, or may adopt interval mapping method.

[0087] This embodiment repeatedly tests multiple groups of first operating parameters and multiple groups of second operating parameters, and combines the code execution path to obtain the target operating parameter range for each business function. Then, the operation jam probability can be calculated based on the target operating parameter range, and the calculation is convenient and accurate.

[0088] In some embodiments of the present disclosure, step A10 further includes:

[0089] The operating system parameters of the application are obtained, and the target operating parameter range is modified according to the operating system parameters.

[0090] Exemplarily, the monitoring model can read and obtain the operating system parameters of the application, and the operating system parameters can include an operating system identifier (which can be used to characterize the Android system, iOS system, etc.), CPU parameters, memory parameters, etc. After obtaining the general target operating parameter range, the monitoring model can correct the target operating parameter range according to the operating system parameters, for example, a correction coefficient can be introduced, and different operating system parameters correspond to different correction coefficients. For example, the correction coefficient corresponding to the operating system parameters of the terminal used as the test sample can be 1, and the correction coefficient can be obtained by comparing other operating system parameters with the operating system parameters of the terminal of the test sample.

[0091] This embodiment corrects the target operating parameter range according to the operating system parameters, and can adaptively correct the operating system in combination with the terminal operating system, thereby reducing the impact of different operating systems on the common target operating parameter range.

[0092] In some embodiments of the present disclosure, the method further includes:

[0093] The running jam probability and the real-time code execution path are sent to a server to instruct the server to optimize the application according to the real-time code execution path.

[0094] Exemplarily, the terminal can send the operation jam probability and the real-time code execution path output by the monitoring model to the server, and can instruct the server to quickly locate the business services where the application is prone to jamming according to the real-time code execution path, thereby facilitating the optimization of the application code.

[0095] This embodiment predicts the degree of running jams of the application program, and sends the probability of running jams and the real-time code execution path to the server, so that the server can optimize the application program.

[0096] In some embodiments of the present disclosure, the method further includes:

[0097] A software development kit is obtained, wherein the monitoring model is encapsulated in the software development kit, and the monitoring model is integrated into the application.

[0098] Exemplarily, the terminal obtains the monitoring model by acquiring a software development kit. The monitoring model is encapsulated in the software development kit, and the software development kit can be encapsulated after the monitoring model is trained. The software development kit can be encapsulated according to the platform (such as Android, iOS, or Web, etc.) on which the application runs. After obtaining the monitoring model, the terminal can integrate the monitoring model into the application, so that the application can directly call the monitoring model.

[0099] This embodiment obtains the monitoring model by obtaining a software development kit. The software development kit is packaged according to the platform on which the application runs, so that the same monitoring model can be shared among different platforms, reducing the model training cost and improving the versatility of the monitoring model.

[0100] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0101] Based on the same inventive concept, the embodiment of the present disclosure also provides a device for monitoring the running status of an application program for implementing the above-mentioned method for monitoring the running status of an application program. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more monitoring devices for the running status of an application program provided below can refer to the limitations of the monitoring method for the running status of an application program above, and will not be repeated here.

[0102] In some embodiments of the present disclosure, Figure 5 and Figure 6 As shown, a device for monitoring the running status of an application is provided. The device 500 comprises:

[0103] The parameter real-time collection module 510 is used to collect the real-time running parameters and real-time code execution path of the application program;

[0104] A monitoring model module 520, used for inputting the real-time operation parameters and the real-time code execution path into a monitoring model, wherein the monitoring model is used for executing a real-time monitoring step and outputting the operation jam probability of the application and the real-time code execution path;

[0105] The early warning notification module 530 is used to receive the running jam probability and the real-time code execution path output by the monitoring model, and send a jamming early warning notification;

[0106] Wherein, the monitoring model module 520 includes:

[0107] A target operating parameter range unit 522 is used to determine a corresponding business function according to the real-time code execution path, and determine a target operating parameter range of the application program under a normal operating state corresponding to the business function;

[0108] A jam probability unit 524, configured to determine a jam probability of the application program according to the real-time operation parameter and the target operation parameter range;

[0109] The output unit 526 is used to output the operation jam probability and the real-time code execution path when the operation jam probability is greater than or equal to a preset threshold.

[0110] In one embodiment, if Figure 7 As shown, a model training module 540 is also included, and the model training module 540 includes:

[0111] A training sample unit 542 is used to collect a first operating parameter and a first code execution path of the application in a normal operating state, and to collect a second operating parameter and a second code execution path of the application in an abnormal operating state;

[0112] A business function corresponding unit 544 is used to determine the business function corresponding to the code execution path according to the first code execution path and the second code path;

[0113] A parameter range setting unit 546, configured to determine the target operating parameter range corresponding to the business function according to the first operating parameter and the second operating parameter;

[0114] The calculation unit 548 is used to establish the calculation rules of the target operating parameter range and the operating jam probability.

[0115] In one embodiment, determining the corresponding business function according to the real-time code execution path, and determining the target operating parameter range of the application corresponding to the business function under the normal operating state also includes:

[0116] The operating system parameters of the application are obtained, and the target operating parameter range is modified according to the operating system parameters.

[0117] In one embodiment, the device further comprises:

[0118] The server return module is used to send the running jam probability and the real-time code execution path to the server, and to instruct the server to optimize the application according to the real-time code execution path.

[0119] In one embodiment, the device further comprises:

[0120] A software development kit module is used to obtain a software development kit, in which the monitoring model is encapsulated, and integrate the monitoring model into the application.

[0121] Each module in the above-mentioned monitoring device for the running status of the application program can be implemented in whole or in part by software, hardware, and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0122] Based on the above-mentioned description of the embodiment of the monitoring method for the running status of the application program, in another embodiment provided by the present disclosure, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for monitoring the running status of an application program is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0123] Those skilled in the art will understand that Figure 8The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] Based on the description of the embodiment of the monitoring method of the running status of the aforementioned application, in another embodiment provided in the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0125] Based on the description of the embodiment of the monitoring method of the running status of the aforementioned application, in another embodiment provided in the present disclosure, a computer program product is provided, including a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor.

[0126] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.

[0127] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0128] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

[0129] It is understandable that the various embodiments of the above method in this specification are described in a progressive manner, and the same / similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For related parts, refer to the description of other method embodiments.

[0130] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features of the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0131] The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the patent of the present disclosure shall be subject to the attached claims.

Claims

1. A method for monitoring the running status of an application, characterized in that: The method comprises: Collect the real-time running parameters and real-time code execution path of the application; Inputting the real-time running parameters and the real-time code execution path into a monitoring model, wherein the monitoring model is used to perform a real-time monitoring step and output a running jam probability of the application and the real-time code execution path; Receive the running jam probability and the real-time code execution path output by the monitoring model, and send a jam warning notification; Wherein, the real-time monitoring step includes: Determine the corresponding business function according to the real-time code execution path, and determine the target operating parameter range of the application program corresponding to the business function under the normal operating state; Determine the probability of operation jam of the application program according to the real-time operation parameter and the target operation parameter range; And when the running jam probability is greater than or equal to a preset threshold, the running jam probability and the real-time code execution path are output.

2. The method according to claim 1, characterized in that The training steps of the monitoring model include: Collecting a first operating parameter and a first code execution path of the application in a normal operating state, and collecting a second operating parameter and a second code execution path of the application in an abnormal operating state; Determine the business function corresponding to the code execution path according to the first code execution path and the second code path; Determine the target operating parameter range corresponding to the business function according to the first operating parameter and the second operating parameter; Establish the target operating parameter range and calculation rules for the operating jam probability.

3. The method according to claim 1, characterized in that Determining the corresponding business function according to the real-time code execution path, and determining the target operating parameter range of the application corresponding to the business function under the normal operating state also includes: The operating system parameters of the application are obtained, and the target operating parameter range is modified according to the operating system parameters.

4. The method according to claim 1, characterized in that: The method further comprises: The running jam probability and the real-time code execution path are sent to a server to instruct the server to optimize the application according to the real-time code execution path.

5. The method according to claim 1, characterized in that The method further comprises: A software development kit is obtained, wherein the monitoring model is encapsulated in the software development kit, and the monitoring model is integrated into the application.

6. A device for monitoring the running status of an application, characterized in that: The device comprises: The parameter real-time acquisition module is used to acquire the real-time running parameters and real-time code execution path of the application program; A monitoring model module, used for inputting the real-time operation parameters and the real-time code execution path into a monitoring model, wherein the monitoring model is used for executing a real-time monitoring step and outputting the operation jam probability of the application and the real-time code execution path; An early warning notification module is used to receive the running jam probability and the real-time code execution path output by the monitoring model, and send a jamming early warning notification; Wherein, the monitoring model module includes: A target operating parameter range unit, used to determine a corresponding business function according to the real-time code execution path, and determine a target operating parameter range of the application program corresponding to the business function under a normal operating state; A jamming probability unit, used to determine the jamming probability of the application program according to the real-time operating parameter and the target operating parameter range; An output unit is used to output the running jam probability and the real-time code execution path when the running jam probability is greater than or equal to a preset threshold.

7. The device according to claim 6, characterized in that It also includes a model training module, which includes: A training sample unit, used to collect a first operating parameter and a first code execution path of the application in a normal operating state, and to collect a second operating parameter and a second code execution path of the application in an abnormal operating state; A business function corresponding unit, configured to determine a business function corresponding to a code execution path according to the first code execution path and the second code path; a parameter range setting unit, configured to determine the target operating parameter range corresponding to the business function according to the first operating parameter and the second operating parameter; A calculation unit is used to establish the target operating parameter range and the calculation rules of the operating jam probability.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.