Display device and process processing method
By dynamically adjusting the threshold by comprehensively utilizing local and server historical performance data in the display device, the problem of insufficient accuracy of static threshold judgment of process anomalies is solved, achieving more accurate process anomaly judgment and processing, and improving system stability and user experience.
Patent Information
- Application Number
- CN202510584879.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-10-10
AI Technical Summary
In the prior art, the accuracy of determining whether a process is abnormal based on a static threshold is insufficient, and it is easy to cause the problem of false positives or missed detection of abnormal processes.
By obtaining local and server historical performance data under the current process status, dynamically adjusting the performance threshold, and comprehensively considering local and server historical data, setting the first and second performance thresholds, only when the current performance data exceeds these two thresholds, the process is determined to be abnormal and intervention is performed.
The accuracy of process anomaly judgment is improved, the cases of false positives or missed detection of abnormal processes are reduced, and the system stability and user experience are optimized.
Smart Images

Figure CN120762829A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display devices, and in particular to a display device and a process processing method. Background Art
[0002] When a user launches an application, the operating system creates one or more processes for that application. Once created, a process enters a ready queue, waiting to be selected for execution by the operating system's scheduler. If sufficient system resources are available and the scheduler selects a process from the ready queue, the selected process starts and begins executing its tasks. To ensure the proper operation of an application, it is necessary to monitor its process performance data. Based on this performance data, we can determine whether any process anomalies are occurring and address any such anomalies. Therefore, determining whether a process anomalies are occurring is crucial for ensuring the proper operation of an application.
[0003] Currently, determining whether a process is abnormal is usually based on a static threshold. The specific process is: if the performance data of the process exceeds the static threshold, the process is considered abnormal; otherwise, the process is considered normal.
[0004] In reality, process performance data fluctuates. Static threshold-based judgments make it difficult to distinguish normal performance fluctuations from true anomalies, potentially leading to false process terminations. However, raising the static threshold also carries the risk of missing anomalies. Therefore, a solution is necessary to improve the accuracy of determining whether a process is abnormal. Summary of the Invention
[0005] The present application provides a display device and a process processing method to improve the accuracy of determining whether a process is abnormal.
[0006] In a first aspect, some embodiments provide a display device, including:
[0007] A display configured to display pages;
[0008] At least one controller, connected to the display, configured to:
[0009] Obtaining a current process state of a current business process and current performance data of the current business process under at least one system performance indicator;
[0010] Locally obtaining a first performance threshold corresponding to each of the system performance indicators of the display device in the current process state; and
[0011] Obtaining from the server a second performance threshold corresponding to each of the system performance indicators of the display device in the current process state;
[0012] If any current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, determining that the current business process is an abnormal business process and intervening in the abnormal business process;
[0013] Among them, the first performance threshold corresponding to any system performance indicator in the current process state is generated based on the historical performance data of the corresponding system performance indicator of the display device in the current process state; the second performance threshold corresponding to any system performance indicator in the current process state is generated based on the historical performance data of the corresponding system performance indicator of the same type of device as the display device in the current process state.
[0014] In some embodiments, for the current task process, the performance thresholds corresponding to each system performance indicator in the current process state are obtained. It can be seen that different process states and different system performance indicators correspond to different performance thresholds, and the performance thresholds include a first performance threshold determined based on local corresponding historical data and a second performance threshold determined based on server corresponding historical data. Taking into account the local corresponding historical data and the server corresponding historical data, the embodiment can provide a reasonable abnormality judgment threshold, thereby improving the accuracy of process abnormality judgment, thereby reducing the occurrence of mistakenly killing processes or missing abnormal processes. In addition, only when the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, the controller determines that the current business process is an abnormal business process and then performs intervention processing, which can reduce the judgment errors caused by individual data abnormalities.
[0015] In a second aspect, some embodiments further provide a process processing method, including:
[0016] Obtaining a current process state of a current business process and current performance data of the current business process under at least one system performance indicator;
[0017] Obtaining a current process state of a current business process and current performance data of the current business process under at least one system performance indicator;
[0018] Locally obtaining a first performance threshold corresponding to each of the system performance indicators of the display device in the current process state; and
[0019] Obtaining from the server a second performance threshold corresponding to each of the system performance indicators of the display device in the current process state;
[0020] If any current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, determining that the current business process is an abnormal business process and intervening in the abnormal business process;
[0021] Among them, the first performance threshold corresponding to any system performance indicator in the current process state is generated based on the historical performance data of the corresponding system performance indicator of the display device in the current process state; the second performance threshold corresponding to any system performance indicator in the current process state is generated based on the historical performance data of the corresponding system performance indicator of the same type of device as the display device in the current process state.
[0022] In some embodiments, for the current task process, the performance thresholds corresponding to each system performance indicator in the current process state are obtained. It can be seen that different process states and different system performance indicators correspond to different performance thresholds, and the performance thresholds include a first performance threshold determined based on local corresponding historical data and a second performance threshold determined based on server corresponding historical data. Taking into account the local corresponding historical data and the server corresponding historical data, the embodiment can provide a reasonable abnormality judgment threshold, thereby improving the accuracy of process abnormality judgment, thereby reducing the occurrence of mistakenly killing processes or missing abnormal processes. In addition, only when the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold is the current business process determined to be an abnormal business process, and then intervention processing is performed, which can reduce judgment errors caused by individual data abnormalities.
[0023] In a third aspect, some embodiments further provide a process processing device, including:
[0024] A first acquisition module is configured to acquire a current process state of a current business process and current performance data of the current business process under at least one system performance indicator;
[0025] A second acquisition module locally acquires a first performance threshold corresponding to each of the system performance indicators of the display device in the current process state; wherein the first performance threshold corresponding to any system performance indicator in the current process state is generated based on historical performance data of the corresponding system performance indicator of the display device in the current process state; and
[0026] A third acquisition module acquires from the server a second performance threshold corresponding to each of the system performance indicators of the display device in the current process state; wherein the second performance threshold corresponding to any system performance indicator in the current process state is generated based on historical performance data of the corresponding system performance indicator of the same type of device as the display device in the current process state;
[0027] The abnormal intervention module determines that the current business process is an abnormal business process and intervenes in the abnormal business process when any current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold.
[0028] In some embodiments, for the current task process, the performance thresholds corresponding to each system performance indicator in the current process state are obtained. It can be seen that different process states and different system performance indicators correspond to different performance thresholds, and the performance thresholds include a first performance threshold determined based on local corresponding historical data and a second performance threshold determined based on server corresponding historical data. Taking into account the local corresponding historical data and the server corresponding historical data, the embodiment can provide a reasonable abnormality judgment threshold, thereby improving the accuracy of process abnormality judgment, thereby reducing the occurrence of mistakenly killing processes or missing abnormal processes. In addition, only when the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, the abnormal intervention module determines that the current business process is an abnormal business process, and then performs intervention processing, which can reduce the judgment errors caused by individual data abnormalities.
[0029] In a fourth aspect, some embodiments further provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in some embodiments of the second aspect are implemented.
[0030] In a fifth aspect, some embodiments further provide a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method provided in some embodiments of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the present application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0032] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device in one embodiment of the present application;
[0033] Figure 2 This is a schematic diagram of the hardware configuration of a display device in one embodiment of the present application;
[0034] Figure 3 This is a schematic diagram of the hardware configuration of a control device in one embodiment of the present application;
[0035] Figure 4 A schematic diagram of the software configuration of a display device in one embodiment of the present application;
[0036] Figure 5 This is a flowchart of a process processing method in one embodiment of the present application;
[0037] Figure 6Flowchart of the process of S540 in one embodiment of the present application;
[0038] Figure 7 Flowchart of the process of the second intervention in one embodiment of the present application;
[0039] Figure 8 Flowchart of the process of the first intervention of the abnormal service process in the foreground state in one embodiment of the present application;
[0040] Figure 9 Flowchart of the process of the first intervention of the abnormal service process in the background state in one embodiment of the present application
[0041] Figure 10 Flowchart of the process of the process processing method in one embodiment of the present application;
[0042] Figure 11 Block diagram of the structure of the process processing apparatus in one embodiment of the present application;
[0043] Figure 12 Internal structure diagram of the computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0044] The embodiments will be described in detail below with reference to the drawings. When the description below refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following embodiments are not meant to represent all implementations consistent with the present application. Rather, they are merely examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
[0045] It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the following described embodiments, and is not intended to limit the embodiments of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and general meanings.
[0046] The terms "first", "second", "third", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar or like objects or entities, and do not necessarily mean a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchanged under appropriate circumstances.
[0047] The terms "include" and "have" and any variations thereof are intended to cover but not exclusive inclusion, for example, a product or device including a series of components does not necessarily limit to all components clearly listed, but can include other components not clearly listed or inherent to these products or devices.
[0048] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functionality associated with that element.
[0049] In the embodiments of the present application, the display device 200 generally refers to a device capable of displaying images and processing data. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.
[0050] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG, a user can operate the display device 200 through touch operation, the mobile terminal 300 and the control device 100. For example, the control device 100 can be a remote controller, a stylus pen, a handle, etc.
[0051] The mobile terminal 300 can function as a control device for performing human-computer interaction between a user and the display device 200. The mobile terminal 300 can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, enabling connection and communication via a network communication protocol, enabling one-to-one control operations and data communication. Audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 for synchronized display.
[0052] like Figure 1 As shown in FIG, the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0053] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart TV, Internet Protocol television (IPTV), etc.
[0054] Figure 2 Some embodiments of this application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.
[0055] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.
[0056] In some embodiments, detector 230 is used to collect signals from the external environment or external interactions. For example, detector 230 may include a light receiver, such as a sensor for collecting ambient light intensity; or an image collector, such as a camera, for collecting external environmental scenes, user attributes, or user interaction gestures; or a sound collector, such as a microphone, for receiving external sounds.
[0057] In some embodiments, the display 260 includes a display component for presenting images and a driver component for driving image display. The display 260 is configured to receive image signals output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, menu control interface components, and user control UI interfaces.
[0058] In some embodiments, the communication device 220 is a component used to communicate with an external device or server 400 according to various communication protocol types. The display device 200 can be provided with multiple communication devices 220 depending on the supported communication methods. For example, if the display device 200 supports wireless network communication, the display device 200 can be provided with a communication device 220 including WiFi functionality. If the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including Bluetooth functionality.
[0059] The communication device 220 can establish a communication connection between the display device 200 and an external device or server 400 via a wireless or wired connection. A wired connection can connect the display device 200 to an external device via a data cable, an interface, or other components. A wireless connection can connect the display device 200 to an external device via a wireless signal or wireless network. The display device 200 can establish a connection with an external device directly or indirectly through a gateway, router, or connection device.
[0060] In some embodiments, the controller 250 may include at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processor, and a power processor, and first to nth interfaces for input / output. The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in a memory. The controller 250 controls the overall operation of the display device 200.
[0061] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0062] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).
[0063] In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or an external audio output device connected to the display device 200. For the external audio output device connected to the display device 200, the display device 200 may further be provided with an external audio output terminal, through which the audio output device may be connected to the display device 200 to output the sound of the display device 200.
[0064] In some embodiments, the user input interface 280 may be configured to receive instructions from a user.
[0065] Figure 3 Some embodiments of this application provide Figure 1 The hardware configuration diagram of the control device in the figure is as follows. Figure 3 As shown, the control device 100 may include: a controller 110, a communication interface 130, a user input / output interface, a memory, and a power supply.
[0066] The control device 100 is configured to control the display device 200 , and can receive user input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200 .
[0067] In some embodiments, the control device 100 may be a smart device. For example, the control device 100 may be installed with various applications for controlling the display device 200 according to user needs.
[0068] In some embodiments, as Figure 1 As shown, the mobile terminal 300 or other intelligent electronic devices can play a similar function as the control device 100 after installing the application for controlling the display device 200 .
[0069] The controller 110 includes a processor 112, RAM 113, ROM 114, a communication interface 130, and a communication bus. The controller 110 is used to control the operation and operation of the control device 100, as well as the communication and cooperation between internal components and external and internal data processing functions.
[0070] Under the control of the controller 110, the communication interface 130 communicates control signals and data signals with the display device 200. The communication interface 130 may include at least one of a WiFi chip 131, a Bluetooth module 132, an NFC module 133, or other near field communication modules.
[0071] The user input / output interface 140 includes at least one of a microphone 141 , a touch panel 142 , a sensor 143 , a button 144 and other input interfaces.
[0072] In some embodiments, the control device 100 includes at least one of a communication interface 130 and an input / output interface 140. The control device 100 is configured with the communication interface 130, such as a WiFi, Bluetooth, or NFC module, to encode user input commands via the WiFi protocol, Bluetooth protocol, or NFC protocol and transmit them to the display device 200.
[0073] The memory 190 is used to store various operating programs, data and applications for driving and controlling the control device 100 under the control of the controller. The memory 190 can store various control signal instructions input by the user.
[0074] The power supply 180 is used to provide operating power support for each component of the control device 100 under the control of the controller.
[0075] To facilitate user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program for managing and controlling the hardware and software resources in the display device 200. The operating system may provide a user interface (control the display device), allow the user to interact with the display device 200, and support the running of various application programs.
[0076] It should be noted that the operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.
[0077] The operating system can be divided into different modules or layers according to the functions implemented, e.g. Figure 4 As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely the application layer (abbreviated as "application layer"), the application framework layer (abbreviated as "framework layer"), the system library layer and the kernel layer.
[0078] In some embodiments, the application layer provides services and interfaces for applications, enabling the display device 200 to run applications and interact with the user based on the applications. The application layer can host at least one application, which can include built-in window programs, system settings programs, clock programs, and the like, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0079] The framework layer provides applications with an application programming interface (API) and programming framework. The application framework layer includes predefined functions. The application framework layer acts as a processing center, determining the actions taken by applications in the application layer. Through the API, applications can access system resources and services during execution.
[0080] like Figure 4 As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to the system location service; a package manager for retrieving various information related to the application packages currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0081] In some embodiments, the activity manager is used to manage the lifecycle of each application and common navigation back functions, such as controlling application exit, opening, and back. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, taking screenshots, and controlling changes in display windows, such as shrinking, shaking, or distorting the display window.
[0082] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction library contained in the system runtime layer, such as the C / C++ instruction library, to implement the functions to be implemented by the framework layer.
[0083] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. Figure 4 As shown, the kernel layer can be configured with hardware drivers, and the drivers included in the kernel layer can be at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0084] It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.
[0085] Currently, the judgment of whether a process on the display device 200 is abnormal is based on a static threshold. The accuracy of this abnormality judgment method is highly dependent on the selection of the static threshold. If the static threshold is not selected properly, it is easy to kill the process by mistake or miss the abnormality.
[0086] In order to solve the above problem, based on the current process state and system performance indicators of the current business process, the corresponding first performance threshold and second performance threshold are obtained. The first performance threshold is generated based on the local historical performance data under the same process state and the same system performance indicator, and the second performance threshold is generated based on the historical performance data of multiple devices of the same type under the same process state and the same system performance indicator on the server. It can be seen that different performance thresholds are set for different system performance indicators and different process states, and the performance thresholds include a first performance threshold determined based on the local corresponding historical data and a second performance threshold determined based on the server corresponding historical data. Taking into account the local corresponding historical data and the server corresponding historical data, a reasonable abnormality judgment threshold can be provided, thereby reducing the occurrence of mistakenly killing processes or missing abnormal processes.
[0087] In some alternative embodiments, see Figure 5 , provides a process processing method, which is applied to the controller 250 in the display device 200, and the method includes the following steps:
[0088] S510: Obtain a current process state of a current business process and current performance data of the current business process under at least one system performance indicator.
[0089] The current task process is any process that has been started on the display device.
[0090] The process state includes the foreground state and the background state, and the foreground state includes the playing state, the paused playing state and other states. The foreground state refers to the state of the process running in the foreground, and the background state refers to the state of the process running in the background.
[0091] For example, display device 200 has three applications running: a video app, a music app, and a game app. The game app and the music app are in the background, while the video app is in the foreground and playing. Therefore, the current task process includes the processes corresponding to the video app, the music app, and the game app. The process states of the game app and the music app are all in the background. The process state of the video app is in the foreground, playing.
[0092] In some optional implementations, multiple hook points can be added to key application processes. Hook points are locations within the application code where developers can insert custom code. By adding code to these hook points, the application's behavior can be monitored without modifying the original program code. Thus, through multiple hook points, the process status of the corresponding application process can be monitored.
[0093] In one embodiment, the at least one system performance indicator may include a process performance indicator and a thread performance indicator.
[0094] It is understandable that a process needs to occupy a variety of system resources after startup. These resources are the basis for the process to run normally and complete its tasks. Managing the resource usage of the process is a key task to ensure system stability, performance and reasonable allocation of resources. Therefore, the process performance indicators can include CPU (Central Processing Unit, Chinese: central processing unit) and memory. The current performance data of the process under the CPU can include the CPU share of the process, and the current performance data of the process under the memory can include the total memory share of the process. Of course, the current performance data of the process under the CPU can also include other CPU performance data, and the current performance data of the process under the memory can also include other memory performance data.
[0095] The thread performance indicators can include an indicator reflecting whether the thread has a memory leak. The indicator reflecting whether the thread has a memory leak can include a thread memory occupation change rule indicator. The current performance data under the thread memory occupation change rule indicator includes thread memory occupation change rule data. Of course, the thread performance indicators can also include other thread performance indicators, and the indicator reflecting whether the thread has a memory leak can also include other indicators, which are not limited here.
[0096] In an optional implementation, after any process is started, the process is added to a monitoring list. Each process in the monitoring list is a current service process. The process state of the current service process is recorded, and the process state is updated when the process state changes. After the current service process exits, the current service process is deleted from the monitoring list.
[0097] For each current service process in the monitoring list, the process state of the current service process and the current performance data of the current service process under each system performance indicator can be periodically obtained, and then the current service process is abnormally judged according to the data obtained in each period. The data acquisition period can be set as needed, which is not limited here. For example, the period is set to 1 minute, 3 minutes, or 5 minutes.
[0098] S520, locally obtaining first performance thresholds of the display device under the current process state corresponding to each system performance indicator.
[0099] The first performance threshold corresponding to any system performance indicator under the current process state is generated based on historical performance data of the corresponding system performance indicator of the display device under the current process state.
[0100] For example, the current process state of the current task process a is a background state, and the system performance indicators include CPU and memory. Then, the first performance threshold corresponding to the CPU and the first performance threshold corresponding to the memory of the task process a under the background state are obtained locally. The first performance threshold corresponding to the CPU of the task process a under the background state is determined according to the historical CPU occupation data of the display device 200 corresponding to the CPU of the task process a under the background state. The first performance threshold corresponding to the memory of the task process a under the background state is determined according to the historical memory occupation data of the display device 200 corresponding to the memory of the task process a under the background state.
[0101] S530, obtaining second performance thresholds of the display device under the current process state corresponding to each system performance indicator from the server.
[0102] The second performance threshold corresponding to any system performance indicator in the current process state is generated based on historical performance data of the corresponding system performance indicator of the same type of device as the display device in the current process state.
[0103] Exemplarily, the current process state of the current task process a is a background state, and the system performance indicators include CPU and memory. The second performance threshold corresponding to the CPU of the task process a in the background state and the second performance threshold corresponding to the memory are obtained from the server. The second performance threshold corresponding to the CPU of the task process a in the background state is determined based on the historical CPU occupancy data corresponding to the CPU of the task process a of multiple devices of the same type in the display device 200 in the background state. The second performance threshold corresponding to the memory of the task process a in the background state is determined based on the historical memory occupancy data corresponding to the memory of the task process a of multiple devices of the same type in the display device 200 in the background state.
[0104] It is worth noting that there is no order in which steps S520 and S530 are executed. They can be executed simultaneously, S520 can be executed first and then S530, or S530 can be executed first and then S520.
[0105] S540: When any current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, determine that the current business process is an abnormal business process, and intervene in the abnormal business process.
[0106] It can be seen that only when the current performance data corresponding to any system performance indicator of the current task process in the current process state exceeds the corresponding first performance threshold and the corresponding second performance threshold, the current task process is considered to be abnormal. Therefore, the current task process is called an abnormal business process, and the abnormal business process is intervened and processed, which can reduce the judgment errors caused by individual data anomalies.
[0107] In the above optional embodiment, for the current task process, the performance threshold corresponding to each system performance indicator in the current process state is obtained. It can be seen that different process states and different system performance indicators correspond to different performance thresholds, and the performance threshold includes a first performance threshold determined based on local corresponding historical data and a second performance threshold determined based on server corresponding historical data. Taking into account the local corresponding historical data and the server corresponding historical data, the embodiment can provide a reasonable abnormality judgment threshold, thereby improving the accuracy of process abnormality judgment, thereby reducing the occurrence of mistakenly killing processes or missing abnormal processes. In addition, only when the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, the controller determines that the current business process is an abnormal business process, and then performs intervention processing, which can reduce the judgment errors caused by individual data abnormalities.
[0108] Based on the technical solutions of the above embodiments, in some embodiments, when at least one system performance indicator includes a process performance indicator and a thread performance indicator, the above S540 is refined. Figure 6 The detailed process shown includes the following S610 to S620:
[0109] S610: When current performance data of the current business process under the process performance indicator exceeds both the corresponding first performance threshold and the corresponding second performance threshold, determine that the current business process is an abnormal business process, and perform a first intervention on the abnormal business process.
[0110] S620, when the current performance data of the current business process under the process performance indicator does not exceed the larger value of the corresponding first performance threshold and the corresponding second performance threshold, if the current performance data of the current business process under the thread performance indicator exceeds the corresponding first performance threshold and the corresponding second performance threshold, then the current business process is determined to be an abnormal business process, and a second intervention is performed on the abnormal business process.
[0111] The first intervention and the second intervention may be implemented in the same intervention manner or in different intervention manners. An embodiment in which the first intervention and the second intervention are implemented in different intervention manners will be provided below.
[0112] It is understood that if the current performance data of the current business process under the process performance index exceeds both the corresponding first performance threshold and the corresponding second performance threshold, it indicates that the current performance data of the current business process under the process performance index exceeds the larger of the corresponding first performance threshold and the corresponding second performance threshold. If the current performance data of the current business process under the process performance index does not exceed the larger of the corresponding first performance threshold and the corresponding second performance threshold, it is determined that the current task process has not experienced an anomaly under the process performance index, and further determination can be made as to whether the current task process has experienced an anomaly under the thread performance index.
[0113] Because a process includes at least one thread, the process performance indicator has a greater impact on the process than the thread performance indicator. Therefore, the controller first determines whether the current task process has an abnormality based on the current performance data of the process performance indicator. If the current performance data of the process performance indicator determines that the current task process has not an abnormality, it then determines whether the current task process has an abnormality based on the current performance data of the thread performance indicator. This allows for rapid determination of whether the current task process has an abnormality. If the current performance data of the process performance indicator is used to determine whether the process has an abnormality, it is no longer necessary to determine whether the process has an abnormality based on the current performance data of the thread performance indicator, thereby reducing the number of abnormality determination steps.
[0114] Furthermore, based on the fact that the process performance indicator includes CPU, the above S610 is further refined. In one embodiment, when the current performance data of the current business process under the process performance indicator exceeds both the corresponding first performance threshold and the corresponding second performance threshold in S610, determining that the current business process is an abnormal business process and performing a first intervention on the abnormal business process may include:
[0115] When current performance data of the current business process under the CPU exceeds both the corresponding first performance threshold and the corresponding second performance threshold, the current business process is determined to be an abnormal business process, and a first intervention is performed on the abnormal business process.
[0116] Exemplarily, the current performance data of the current business process under the CPU is the CPU share of the current task process. The CPU share refers to the proportion of CPU time occupied by the current business process per unit time. The CPU share reflects the degree of CPU resource occupancy by the current task process. The higher the share, the more instructions the current task process executes on the CPU, and the greater the consumption of CPU resources. The CPU is a very important system resource, and the CPU share has a greater impact on system operation than the occupancy of other system resources (for example, memory). Therefore, it is possible to determine whether only the CPU share of the current business process is abnormal, or first determine whether the CPU share of the current business process is abnormal, and then determine whether the occupancy of other system resources by the current business process is abnormal. When the CPU occupancy ratio is very high, it may indicate that there is an abnormality in the process. Therefore, if the CPU share of the current task process exceeds the corresponding first performance threshold and the corresponding second performance threshold, it is determined that the CPU share of the current business process is abnormal, and the current business process is an abnormal business process.
[0117] It can be seen that by judging whether the current task process has an abnormality based on the current performance data of the CPU that has a greater impact on the system operation, it is possible to quickly judge whether the current task process has a serious abnormality problem.
[0118] Furthermore, based on the fact that the process performance index includes not only CPU but also memory, in one embodiment, see Figure 8 , the process processing method shown may further include:
[0119] When the current performance data of the current business process under the CPU does not exceed the larger value of the corresponding first performance threshold and the corresponding second performance threshold, if the current performance data of the current business process under the memory exceeds the corresponding first performance threshold and the corresponding second performance threshold, the current business process is determined to be an abnormal business process, and a second intervention is performed on the abnormal business process.
[0120] It can be seen that if it is determined that the current task process has no abnormality based on the current performance data of the current task process under the CPU, then it is determined whether the current task process has an abnormality based on the current performance data of the current business process under the memory. The current performance data corresponding to the memory may include the total memory percentage. The total memory percentage refers to the ratio of the amount of memory occupied by the current task process to the total amount of memory in the system. The total memory percentage reflects the occupation of memory resources by the process. Too high a percentage may cause insufficient system memory and affect the operation of other processes. Therefore, if the total memory percentage of the current task process exceeds both the corresponding first performance threshold and the corresponding second performance threshold, the current business process is determined to be an abnormal business process, and the current business process is intervened to reduce the impact on the operation of other processes.
[0121] In one optional implementation, when determining whether a current task process is abnormal based on the current performance data of the current business process under the thread performance indicator, whether a thread has experienced a memory leak can be determined based on the memory usage change pattern data of the threads in the process under the memory usage change pattern indicator. If both the memory usage change pattern data are greater than the corresponding first performance threshold and the corresponding second performance threshold, it indicates that the thread's memory usage changes are regularly increasing, and the thread is considered to have experienced a memory leak.
[0122] It can be seen that compared with the prior art method of considering a thread as having a memory leak only when the thread's memory leak reaches a certain amount, this embodiment can detect whether a thread has a memory leak anomaly earlier, so that intervention can be performed earlier to avoid resource waste caused by excessive memory leaks.
[0123] In one embodiment, the second intervention is further refined. Figure 7 The process of performing the second intervention on the abnormal business process may include the following steps:
[0124] S710 , triggering memory reclamation for an abnormal business process, and performing a first intervention on the abnormal business process if the memory reclamation effect does not achieve the expected effect.
[0125] Memory reclamation is a key mechanism in computer systems to ensure efficient resource utilization and maintain stable system operation. When memory resources are scarce, it proactively releases unused memory space to make it available to other processes. Its core goal is to ensure that memory resources are properly allocated and utilized, avoiding memory leaks and resource waste.
[0126] It is understandable that if the effect of memory reclamation reaches the expected effect, the first intervention is not necessary.
[0127] It can be seen that in the process of the second intervention, memory recovery is first performed to release some memory space. If the memory space is released, the various task processes of the display device can obtain sufficient memory space, thereby achieving the expected memory recovery effect. At this time, even if the total memory ratio of the current task process is relatively high, it has no effect on other processes, and there is no need to intervene in the current task process. If the released memory space is very small after memory recovery, the various task processes of the display device cannot obtain sufficient memory space, thereby failing to achieve the expected memory recovery effect. In this case, the first intervention is performed. It can be seen that the first intervention is a fallback intervention mechanism, which is only executed when the memory recovery measures fail to achieve the expected results.
[0128] In one embodiment, regardless of whether the first intervention is performed independently or during the second intervention, the process of performing the first intervention on the abnormal business process may include the following two situations:
[0129] (1) When the abnormal service process is in the foreground state, the display is controlled to display a first message, where the first message is used to prompt the user to restart the abnormal service process.
[0130] (2) When the abnormal business process is in the background state, terminate the abnormal business process and restart the process in the background.
[0131] It can be seen that if the abnormal business process is in the foreground state, for example, in the foreground playing state, the controller controls the display to display the first message, thereby reminding the user to restart the abnormal business process, so that the user can choose whether to restart the abnormal business process, providing the user with more choices and bringing a better experience to the user. If the abnormal business process is in the background state, the controller automatically ends the abnormal business process and re-starts the process in the background, thereby processing the abnormal business process without the user noticing, and reducing the disturbance to the user without affecting the user's use. In this embodiment, according to whether the abnormal business process is in the foreground state or the background state, the method of reminding the user in advance or silently processing in the background is selected, taking into account the dual protection mechanism of automatic disposal and manual intervention, optimizing system performance and improving user experience.
[0132] Furthermore, in order to avoid individual erroneous data causing abnormal judgment errors, the above situation (1) is refined. Figure 8 The first intervention of abnormal business processes in the foreground state includes the following steps:
[0133] S810: When the abnormal service process is in the foreground state, determine the duration during which the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold.
[0134] S820: When the duration exceeds a first preset percentage of a first preset duration, control the display to display a first message.
[0135] The first preset percentage can be set as needed and is not limited here. For example, the first preset percentage is 30%.
[0136] It is understandable that in the foreground state, if the current performance data exceeds the corresponding two performance thresholds and the duration reaches the first preset percentage of the first preset duration, it is considered that the current performance data of the current business process suddenly increases and does not recover in a short time, which is an abnormal situation for the foreground state.
[0137] As can be seen, only when the duration of the anomaly exceeds the first preset percentage of the first preset duration will the controller control the display to display the first message, reminding the user to restart the abnormal service process. If the duration of the anomaly does not exceed the first preset percentage of the first preset duration, the user will not be reminded through the display, thereby reducing the occurrence of abnormality misjudgment due to individual erroneous data.
[0138] Similarly, in order to avoid individual erroneous data causing abnormal judgment errors, the above situation (2) is refined, see Figure 9 The first intervention of abnormal business processes in the background state may include the following steps:
[0139] S910: When the abnormal service process is in the background state, determine a duration during which current performance data exceeds a corresponding first performance threshold and a corresponding second performance threshold.
[0140] S920: When the duration exceeds the first preset duration, terminate the current service process.
[0141] It is understandable that in the background state, if the current performance data exceeds the corresponding two performance thresholds and the duration reaches the first preset duration, it is considered that the current performance data of the current business process suddenly increases and does not recover in a short time, which is an abnormal situation for the background state.
[0142] As can be seen, the controller will only terminate the current service process if the duration of the abnormality exceeds the first preset duration. If the duration of the abnormality does not exceed the first preset duration, the current service process will not be terminated first, reducing the occurrence of abnormality judgment errors caused by individual erroneous data.
[0143] It is worth noting that in the foreground state, the duration is compared with the first preset percentage of the first preset duration, and in the background state, the duration is compared with the first preset duration. The advantage of this is that the foreground process is more important to the user's current usage needs than the background process, so the abnormal task process in the foreground is responded to more quickly, thereby meeting the user's current usage needs.
[0144] In one embodiment, the provided process processing method may further include:
[0145] The current process state of the abnormal business process, the current performance data under each system performance indicator, the intervention process and the intervention result are uploaded to the server, so that the server updates the second performance threshold corresponding to each system performance indicator in the current process state.
[0146] It can be seen that after the abnormal task process is processed, the current process status of the abnormal business process, the current performance data under each system performance indicator, the intervention method adopted in the intervention process, and the intervention result of whether the process has returned to normal after the intervention are uploaded to the server. In this way, the server can update the second performance threshold corresponding to each system performance indicator under the same process state, realize the dynamic update of the second performance threshold, and ensure the rationality of the second performance threshold.
[0147] Of course, for the current task process, the process status obtained this time, the current performance data under each system performance indicator and two performance thresholds, as well as the abnormal judgment results, intervention methods and intervention results under abnormal conditions and other information are saved locally as historical data, and then the first performance thresholds corresponding to each system performance indicator of the same process under the same process state are updated locally.
[0148] For example, in an application scenario, audio application A is launched in the foreground, its process is started, and its process is added to the monitoring list. Next, the user plays an audio track through audio application A. At this point, the process state of audio application A is set to the foreground playing state. After a period of playback, the user pauses the audio track. At this point, the process state of audio application A is set to the foreground paused playing state. Next, the user launches game application B and begins playing. At this point, audio application A enters the background, and its process state is set to the background state. During the game, the user closes audio application A to ensure optimal gaming performance. At this point, audio application A's process exits, and its process is removed from the monitoring list. The above process represents the entire lifecycle of audio application A's process, which undergoes multiple process states throughout its lifecycle. Even if audio application A's process does not experience any anomalies in any of its process states throughout its lifecycle, its performance data fluctuates. For example, the CPU usage in the foreground playing state is significantly higher than that in the foreground paused playing state, and the CPU usage in the foreground paused playing state is also higher than that in the background state. It is unreasonable to use the same threshold value to judge whether the process of audio application a is abnormal in each process state. For example, even if the process of audio application a does not have an abnormality in the foreground playing state, it may be mistakenly killed. Even if the process of audio application a has an abnormality in the background state, it may be missed. In order to reduce the occurrence of such unreasonable situations, this embodiment uses different performance thresholds in the process of judging whether the process of audio application a is abnormal, that is, the process state is combined to judge whether the process of audio application a is abnormal. For example, the first performance threshold and the second performance threshold corresponding to the CPU ratio of the process of audio application a in the foreground playing state are relatively high, while the first performance threshold and the second performance threshold corresponding to the CPU ratio of the process of audio application a in the background state are relatively low. By providing reasonable thresholds, the occurrence of the process of audio application a being mistakenly killed or missed is reduced.
[0149] In one embodiment, see Figure 10 , the process processing method shown includes the following steps:
[0150] S1, after the process is started, add the process to the monitoring list and record the process status.
[0151] S2, taking each process in the monitoring list as the current task process, and obtaining the process status of the current task process, the current performance data under the CPU, the current performance data under the memory, and the current performance data under the thread performance index according to the preset time interval.
[0152] S3: Determine whether the current performance data of the current business process under the CPU exceeds the corresponding first performance threshold and the corresponding second performance threshold. If so, jump to S4; otherwise, jump to S5.
[0153] S4: Determine that the current business process is an abnormal business process, and jump to S8.
[0154] S5: Determine whether the current performance data of the current business process in the memory exceeds the corresponding first performance threshold and the corresponding second performance threshold. If so, jump to S6. Otherwise, jump to S7.
[0155] S6: Determine that the current business process is an abnormal business process, and jump to S11.
[0156] S7: Determine whether the current performance data of the current business process under the thread performance indicator exceeds the corresponding first performance threshold and the corresponding second performance threshold. If so, jump to S6; otherwise, jump to S2.
[0157] S8. Determine whether the process state of the abnormal business process is the foreground state; if so, jump to S9; otherwise, jump to S10.
[0158] S9, determining the duration during which the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, and when the duration exceeds a first preset percentage of the first preset duration, controlling the display to display a first message.
[0159] S10, determine the duration for which the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold. If the duration exceeds the first preset duration, end the abnormal business process and restart the process in the background.
[0160] S11, memory recovery.
[0161] S12, determines whether the memory recovery meets expectations. If so, jumps to S2; otherwise, jumps to S8.
[0162] Based on the same inventive concept, some embodiments further provide a process processing device for implementing the aforementioned process processing method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of one or more process processing device embodiments provided below can be found in the above-mentioned limitations of the process processing method and will not be further elaborated here.
[0163] In an exemplary embodiment, Figure 11 As shown, a process processing device is provided, including: a first acquisition module 1110, a second acquisition module 1120, a third acquisition module 1130 and an abnormality intervention module 1140, wherein:
[0164] The first acquisition module 1110 is configured to acquire a current process state of a current business process and current performance data of the current business process under at least one system performance indicator;
[0165] The second acquisition module 1120 locally acquires a first performance threshold corresponding to each of the system performance indicators of the display device in the current process state; wherein the first performance threshold corresponding to any system performance indicator in the current process state is generated based on historical performance data of the corresponding system performance indicator of the display device in the current process state; and
[0166] A third acquisition module 1130 acquires from the server a second performance threshold corresponding to each of the system performance indicators of the display device in the current process state; wherein the second performance threshold corresponding to any system performance indicator in the current process state is generated based on historical performance data of the corresponding system performance indicator of a device of the same type as the display device in the current process state;
[0167] The abnormality intervention module 1140 determines that the current business process is an abnormal business process and intervenes in the abnormal business process when any current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold.
[0168] In some embodiments, the at least one system performance indicator includes a process performance indicator and a thread performance indicator; and the abnormality intervention module includes:
[0169] a first intervention unit, configured to determine that the current business process is an abnormal business process and perform a first intervention on the abnormal business process when current performance data of the current business process under the process performance indicator exceeds both a corresponding first performance threshold and a corresponding second performance threshold;
[0170] The second intervention unit is used to determine that the current business process is an abnormal business process and perform a second intervention on the abnormal business process if the current performance data of the current business process under the process performance indicator does not exceed the larger value of the corresponding first performance threshold and the corresponding second performance threshold, and if the current performance data of the current business process under the thread performance indicator exceeds the corresponding first performance threshold and the corresponding second performance threshold.
[0171] In some embodiments, the process performance indicator includes a CPU; and the first intervention unit includes:
[0172] The first intervention subunit is used to: when the current performance data of the current business process under the CPU exceeds the corresponding first performance threshold and the corresponding second performance threshold, determine that the current business process is an abnormal business process and perform a first intervention on the abnormal business process.
[0173] In some embodiments, the process performance indicator further includes memory; and the first intervention unit further includes:
[0174] The second intervention sub-unit is used to: when the current performance data of the current business process under the CPU does not exceed the larger value of the corresponding first performance threshold and the corresponding second performance threshold, if the current performance data of the current business process under the memory exceeds the corresponding first performance threshold and the corresponding second performance threshold, determine that the current business process is an abnormal business process, and perform a second intervention on the abnormal business process.
[0175] In some embodiments, when performing the second intervention on the abnormal business process, the second intervention unit or the second intervention sub-unit is specifically used to: trigger memory recycling on the abnormal business process, and perform the first intervention on the abnormal business process if the effect of memory recycling does not achieve the expected effect.
[0176] In some embodiments, when each unit or sub-unit performs the first intervention on the abnormal business process, it is specifically used to: when the abnormal business process is in the foreground state, control the display to display a first message, and the first message is used to prompt the user to restart the abnormal business process; when the abnormal business process is in the background state, end the abnormal business process and restart the process in the background.
[0177] In some embodiments, when each unit or sub-unit executes the control of the display to display the first message when the abnormal business process is in the foreground state, it is specifically used to: determine the duration for which the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold when the abnormal business process is in the foreground state; and control the display to display the first message when the duration exceeds a first preset percentage of a first preset duration.
[0178] In some embodiments, when each unit or sub-unit executes the method of ending the abnormal business process when the abnormal business process is in the background state, it is specifically used to: determine the duration of time that the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold when the abnormal business process is in the background state; and end the current business process when the duration exceeds the first preset duration.
[0179] In some embodiments, the apparatus further comprises:
[0180] A data upload module is used to upload the current process status of the abnormal business process, the current performance data under each of the system performance indicators, the intervention process and the intervention results to the server, so that the server updates the second performance threshold corresponding to each of the system performance indicators under the current process status.
[0181] Each module in the process processing device described above may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0182] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 12 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 via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via 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 an 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 implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a page display method is implemented. 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 casing, or an external keyboard, touchpad or mouse.
[0183] Those skilled in the art will understand that Figure 12The 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 shown in the figure, or combine certain components, or have a different component arrangement.
[0184] In an alternative embodiment, Figure 12 The computer device shown may be the aforementioned display device, for example, a smart TV.
[0185] In one exemplary embodiment, a computer device is provided, comprising a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above-described method embodiments are implemented. In another embodiment, a computer-readable storage medium is provided, storing the computer program, and when the processor executes the computer program, the steps of the above-described method embodiments are implemented.
[0186] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0187] 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 regulations.
[0188] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented 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 memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile memory and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of 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 the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a programmable logic unit (PLC), a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, and the like.
[0189] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above 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 application.
[0190] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A display device, characterized in that: include: A display configured to display pages; At least one controller, connected to the display, configured to: Obtaining a current process state of a current business process and current performance data of the current business process under at least one system performance indicator; locally obtaining a first performance threshold corresponding to each of the system performance indicators of the display device in the current process state; as well as, Obtaining from the server a second performance threshold corresponding to each of the system performance indicators of the display device in the current process state; If any current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, determining that the current business process is an abnormal business process and intervening in the abnormal business process; Among them, the first performance threshold corresponding to any system performance indicator in the current process state is generated based on the historical performance data of the corresponding system performance indicator of the display device in the current process state; the second performance threshold corresponding to any system performance indicator in the current process state is generated based on the historical performance data of the corresponding system performance indicator of the same type of device as the display device in the current process state.
2. The display device according to claim 1, wherein The at least one system performance indicator includes a process performance indicator and a thread performance indicator; when the controller determines that the current business process is an abnormal business process and intervenes in the abnormal business process when any current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, the controller is configured to: When current performance data of the current business process under the process performance indicator exceeds both the corresponding first performance threshold and the corresponding second performance threshold, determining that the current business process is an abnormal business process and performing a first intervention on the abnormal business process; When the current performance data of the current business process under the process performance indicator does not exceed the larger value of the corresponding first performance threshold and the corresponding second performance threshold, if the current performance data of the current business process under the thread performance indicator exceeds the corresponding first performance threshold and the corresponding second performance threshold, the current business process is determined to be an abnormal business process, and a second intervention is performed on the abnormal business process.
3. The display device according to claim 2, wherein The process performance indicator includes a CPU; when the current performance data of the current business process under the process performance indicator exceeds the corresponding first performance threshold and the corresponding second performance threshold, the controller determines that the current business process is an abnormal business process and performs a first intervention on the abnormal business process, and is configured to: When current performance data of the current business process under the CPU exceeds both the corresponding first performance threshold and the corresponding second performance threshold, the current business process is determined to be an abnormal business process, and a first intervention is performed on the abnormal business process.
4. The display device according to claim 3, wherein The process performance indicator also includes memory; the controller is further configured to: When the current performance data of the current business process under the CPU does not exceed the larger value of the corresponding first performance threshold and the corresponding second performance threshold, if the current performance data of the current business process under the memory exceeds the corresponding first performance threshold and the corresponding second performance threshold, the current business process is determined to be an abnormal business process, and a second intervention is performed on the abnormal business process.
5. The display device according to claim 2 or 4, characterized in that When performing the second intervention on the abnormal business process, the controller is configured to: Memory reclamation is triggered for the abnormal business process, and when an effect of the memory reclamation does not achieve an expected effect, a first intervention is performed on the abnormal business process.
6. The display device according to claim 2 or 3, characterized in that When performing the first intervention on the abnormal service process, the controller is configured to: When the abnormal service process is in the foreground state, controlling the display to display a first message, wherein the first message is used to prompt a user to restart the abnormal service process; When the abnormal service process is in the background state, the abnormal service process is terminated and the process is restarted in the background.
7. The display device according to claim 6, wherein: When the controller controls the display to display the first message when the abnormal service process is in the foreground state, the controller is configured to: When the abnormal business process is in the foreground state, determining a duration during which the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold; When the duration exceeds a first preset percentage of a first preset duration, the display is controlled to display the first message.
8. The display device according to claim 6, wherein: When the controller terminates the abnormal service process when the abnormal service process is in the background state, the controller is configured to: When the abnormal business process is in a background state, determining a duration during which the current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold; When the duration exceeds a first preset duration, the current service process is terminated.
9. The display device according to any one of claims 1 to 3, characterized in that: The controller is further configured to: The current process state of the abnormal business process, the current performance data under each of the system performance indicators, the intervention process and the intervention result are uploaded to the server so that the server updates the second performance threshold corresponding to each of the system performance indicators under the current process state.
10. A process processing method, characterized in that: include: Obtaining a current process state of a current business process and current performance data of the current business process under at least one system performance indicator; locally obtaining a first performance threshold corresponding to each of the system performance indicators of the display device in the current process state; as well as, Obtaining from the server a second performance threshold corresponding to each of the system performance indicators of the display device in the current process state; If any current performance data exceeds the corresponding first performance threshold and the corresponding second performance threshold, determining that the current business process is an abnormal business process and intervening in the abnormal business process; Among them, the first performance threshold corresponding to any system performance indicator in the current process state is generated based on the historical performance data of the corresponding system performance indicator of the display device in the current process state; the second performance threshold corresponding to any system performance indicator in the current process state is generated based on the historical performance data of the corresponding system performance indicator of the same type of device as the display device in the current process state.