Page status monitoring method, device, terminal and storage medium

By monitoring the heartbeat log and performing display state recovery operations, the stability problem after the browser page crashes is solved, and the rapid recovery and stable operation of the browser page are achieved.

CN113127239BActive Publication Date: 2024-10-25SHENZHEN INTELLIFUSION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911410635.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-31
Publication Date
2024-10-25
Estimated Expiration
2039-12-31

AI Technical Summary

Technical Problem

Browser pages are prone to page crashes when loading too much content or when high-intensive calculations are performed, and due to the limitations of the sandbox mode, page repairs cannot be carried out in a timely and effective manner, leading to stability issues.

Method used

By receiving page loading instructions carrying page attribute information, start the browser and monitor the heartbeat log, determine the page status based on the heartbeat log, and perform display status recovery operations if abnormal, including loading preset data to refresh the page or reloading.

Benefits of technology

It achieves fast and accurate detection and timely recovery of browser pages, solves the problem of being unable to effectively repair the page after it crashes, and improves the stability and reliability of the page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113127239B_ABST
    Figure CN113127239B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of computer technology, and proposes a page status monitoring method, including: monitoring the heartbeat log output by a preset thread that controls the display of a target page, and determining the display status of the target page according to the monitoring result of the heartbeat log; and when it is determined that the display status of the target page is an abnormal display state, performing a display status recovery operation on the target page. The abnormal display page can be determined quickly and accurately, and timely and effective recovery can be achieved for the abnormal display page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a page status monitoring method, device, terminal and storage medium. Background Art

[0002] Currently, when a browser page loads too much content or requires high-intensity computing, it is easy for the page to crash. Since the browser page itself runs in sandbox mode, it is difficult to repair the page in a timely and effective manner when a crash occurs. Summary of the invention

[0003] In view of this, embodiments of the present application provide a page status monitoring method, device, terminal, and storage medium to solve the problem in the prior art that page repair cannot be performed in a timely and effective manner.

[0004] A first aspect of an embodiment of the present application provides a remote page status monitoring method, including:

[0005] Receiving a page loading instruction carrying page attribute information, and loading and displaying a target page based on the page attribute information;

[0006] Monitoring a heartbeat log, wherein the heartbeat log is output by a preset thread that controls the display of the target page;

[0007] Determining a display state of the target page based on the heartbeat log;

[0008] If the display state of the target page is an abnormal display state, a display state recovery operation is performed on the target page.

[0009] In an optional implementation, after receiving the page loading instruction carrying the page attribute information, loading and displaying the target page based on the page attribute information includes:

[0010] After receiving the page loading instruction carrying the page attribute information, start the corresponding browser;

[0011] The target page is loaded and displayed in the browser based on the page attribute information.

[0012] In an optional implementation, the display state of the target page includes an abnormal display state and a normal display state;

[0013] The determining the display state of the target page based on the heartbeat log includes:

[0014] If the heartbeat log is not captured within the current monitoring period, it is determined that the target page is in an abnormal display state;

[0015] If the heartbeat log is captured within the current monitoring cycle, it is determined that the target page is in a normal display state.

[0016] In an optional implementation, if the display state of the target page is in an abnormal display state, performing a display state recovery operation on the target page includes:

[0017] If the display state of the target page is an abnormal display state, controlling a preset daemon thread to load the first target data;

[0018] The display state of the target page is restored according to the first target data.

[0019] In an optional implementation, the first target data is used to refresh the target page;

[0020] The restoring the display state of the target page according to the first target data includes:

[0021] Refresh the target page according to the first target data.

[0022] In an optional implementation manner, after refreshing the target page according to the first target data, the method further includes:

[0023] Monitoring the heartbeat log within a first preset time period;

[0024] If the heartbeat log is captured within the first preset time period, determining that the target page is restored to a normal display state;

[0025] If the heartbeat log is not captured within the first preset time period, controlling the preset daemon thread to load the second target data, where the second target data is used to reload the target page;

[0026] The target page is reloaded according to the second target data.

[0027] In an optional implementation manner, after reloading the target page according to the second target data, the method further includes:

[0028] Monitoring the heartbeat log within a second preset time period;

[0029] If the heartbeat log is captured within the second preset time period, determining that the target page is restored to a normal display state;

[0030] If the heartbeat log is not captured within the second preset time period, a prompt message indicating that the target page displays an abnormal state is sent to a predetermined terminal.

[0031] A second aspect of an embodiment of the present application provides a page status monitoring device, including:

[0032] A loading module, used to receive a page loading instruction carrying page attribute information, load a target page based on the page attribute information, and display the target page;

[0033] A monitoring module, used for monitoring a heartbeat log, wherein the heartbeat log is output by a preset thread that controls the display of the target page;

[0034] A determination module, configured to determine a display state of the target page based on the heartbeat log;

[0035] The recovery module is used to perform a display state recovery operation on the target page if the display state of the target page is an abnormal display state.

[0036] In an optional implementation, the loading module includes:

[0037] A starting unit, used to start a corresponding browser after detecting a page loading instruction carrying page attribute information triggered by a user;

[0038] The first loading unit is used to load and display the target page in the browser based on the page attribute information.

[0039] In an optional implementation, the display state of the target page includes an abnormal display state and a normal display state;

[0040] The determining module comprises:

[0041] A first determining unit, configured to determine that the target page is in an abnormal display state if the heartbeat log is not captured within a current monitoring period;

[0042] The second determining unit is configured to determine that the target page is in a normal display state if the heartbeat log is captured within a current monitoring period.

[0043] In an optional implementation, the recovery module includes:

[0044] A first control unit, configured to control a preset daemon thread to load first target data if the display state of the target page is an abnormal display state;

[0045] A restoring unit is used to restore the display state of the target page according to the first target data.

[0046] In an optional implementation, the first target data is used to refresh the target page;

[0047] The recovery unit is specifically used for:

[0048] Refresh the target page according to the first target data.

[0049] In an optional implementation, the recovery module further includes:

[0050] A first monitoring unit, configured to monitor the heartbeat log within a first preset time period;

[0051] a third determining unit, configured to determine that the target page is restored to a normal display state if the heartbeat log is captured within the first preset time period;

[0052] a second control unit, configured to control the preset daemon thread to load the second target data if the heartbeat log is not captured within the first preset time period, wherein the second target data is used to reload the target page;

[0053] The second loading unit is used to reload the target page according to the second target data.

[0054] In an optional implementation, the recovery module further includes:

[0055] A second monitoring unit, used to monitor the heartbeat log within a second preset time period;

[0056] a fourth determining unit, configured to determine that the target page is restored to a normal display state if the heartbeat log is captured within the second preset time period;

[0057] The sending unit is configured to send a prompt message indicating that the target page displays an abnormal state to a predetermined terminal if the heartbeat log is not captured within the second preset time period.

[0058] A third aspect of an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the page status monitoring method described in the first aspect above when executing the computer program.

[0059] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and is characterized in that when the computer program is executed by a processor, the steps of the page status monitoring method described in the first aspect above are implemented.

[0060] The page status monitoring method provided in the embodiment of the present application has the beneficial effect compared with the prior art, that is, by monitoring the heartbeat log output by the preset thread that controls the display of the target page, and determining the display status of the target page according to the monitoring result of the heartbeat log; and when it is determined that the display status of the target page is a display abnormality state, performing a display status recovery operation on the target page, it is possible to quickly and accurately determine the display abnormality page, and implement timely and effective recovery for the display abnormality page. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative labor.

[0062] Figure 1 is a flow chart of the implementation of the page status monitoring method provided in the embodiment of the present application;

[0063] Figure 2 yes Figure 1 The specific implementation flow chart of S101;

[0064] Figure 3 yes Figure 1 The specific implementation flow chart of S103;

[0065] Figure 4 yes Figure 1 S104 is a specific implementation flow chart of the first embodiment;

[0066] Figure 5 yes Figure 1 S104 is a specific implementation flow chart of the second embodiment;

[0067] Figure 6 yes Figure 1 The specific implementation flow chart of S104 in the third embodiment;

[0068] Figure 7 is a structural diagram of a page status monitoring device provided in an embodiment of the present application;

[0069] Figure 8 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0071] It should be noted that, when the browser page loads too much content or performs high-intensive calculations, the browser page crashes after running for a period of time due to vulnerabilities in the design of the program that controls the browser page and the stability of the browser itself. The browser page itself runs in sandbox mode. Once a page crash occurs, the problem cannot be discovered in a timely and effective manner, and the page cannot be restored according to the problem. As a result, for some pages that need to run stably for a long time, such as outdoor advertising screens, in order to ensure the use effect, desktop client programs or native visualization programs are usually chosen. However, desktop clients and native visualization programs have poor cross-platform performance, high development costs, inconvenient secondary development, and slow real-time update speed.

[0072] In view of this, the present application proposes a page status monitoring solution that can promptly and effectively restore pages with display abnormalities and solve the problem that browser pages cannot run stably for a long time.

[0073] In order to illustrate the technical solution described in this application, the following is a description through specific embodiments. Figure 1 , is a flowchart of the implementation of the page status monitoring method provided by the embodiment of the present application. This embodiment can be implemented by the hardware or software of the page status monitoring device, and the page status monitoring device is a terminal device with computing function, such as an outdoor display device. The details are as follows:

[0074] S101, receiving a page loading instruction carrying page attribute information, and loading and displaying a target page based on the page attribute information.

[0075] It is understandable that the page loading instruction can be triggered by the user through the physical button or virtual button of the current terminal device, or can be sent directly to other terminal devices. The page attribute information is pre-configured attribute information including basic display information such as page width and height, page access address, etc.

[0076] After receiving the page loading instruction, the current terminal device loads the corresponding target page based on the access address of the page and displays it according to the basic display information of the page.

[0077] In an optional implementation, Figure 2 As shown, Figure 1 The specific implementation flow chart of S101 in FIG. Figure 2 It can be seen that S101 includes S1011 to S1012. The details are as follows:

[0078] S1011, after receiving a page loading instruction carrying page attribute information, start the corresponding browser.

[0079] It should be noted that, in an optional implementation, a fixed browser is pre-installed on the terminal device, and the browser can generally support systems such as Microsoft Windows 7, Server 2008, macOS, Linux, SmartOS, IBM AIX and FreeBSD, such as Google Chrome, and a js interface suite for operating the browser is deployed on the terminal device, such as puppeteer.

[0080] After receiving the page loading instruction carrying the page attribute information, the browser is started through the corresponding js interface suite, for example, Google Chrome is started through puppeteer.

[0081] S1012: Load and display the target page in the browser based on the page attribute information.

[0082] It can be understood that after the browser is started, the browser enters the target page that needs to be rendered and displayed according to the page attribute information, and loads and displays the target page in the browser.

[0083] From the above analysis, it can be seen that this embodiment starts the corresponding browser to load and display the target page in the browser, and can control the target page according to the characteristics of the browser, so as to facilitate the operation of the target page.

[0084] S102, monitoring a heartbeat log, wherein the heartbeat log is output by a preset thread that controls display of the target page.

[0085] It should be noted that, while the target page is loaded in the browser, a preset thread is configured for the target page, the preset thread is used to control the display of the target page, and output the heartbeat log based on the preset heartbeat log output logic. For example, the preset heartbeat log output logic includes pre-configuring a heartbeat log package for the preset thread. If the preset thread cannot detect an abnormal display state during the process of controlling the display of the target page, the heartbeat log is periodically output based on the heartbeat log package or the heartbeat log is continuously output based on the heartbeat log package; if the preset thread detects an abnormal display state during the process of controlling the display of the target page, the preset thread will not output the heartbeat log. S103, determine the display state of the target page based on the heartbeat log.

[0086] Through the analysis of S102, it can be known that when the target page displays a normal state, the preset thread outputs the heartbeat log based on the preset heartbeat log output logic. When the target page displays an abnormal state, the preset thread does not output the heartbeat log. Therefore, the terminal device can determine the display status of the target page based on the heartbeat log.

[0087] It should be noted that the display state of the target page includes an abnormal display state and a normal display state; in an optional implementation, Figure 3 As shown, Figure 1 The specific implementation flow chart of S103 is as follows. Figure 3 It can be seen that S103 includes S1031 to S1032. The details are as follows:

[0088] S1031: If the heartbeat log is not captured in the current monitoring cycle, it is determined that the target page is in an abnormal display state.

[0089] According to the preset heartbeat log output logic, during the process of the preset thread controlling the display of the target page, if a display abnormality is detected, the preset thread is controlled not to output the heartbeat log. Therefore, if the heartbeat log is not captured in the current monitoring cycle, it is determined that the target page is in a display abnormality state.

[0090] S1032: If the heartbeat log is captured within the current monitoring period, it is determined that the target page is in a normal display state.

[0091] As above, according to the preset heartbeat log output logic, during the process of the preset thread controlling the display of the target page, if it is detected that the target page is displayed normally, the preset thread is controlled to periodically output the heartbeat log, or the heartbeat log is continuously output. Therefore, if the heartbeat log is captured within the current monitoring cycle, it is determined that the target page is in a normal display state.

[0092] From the above analysis, it can be seen that according to whether the heartbeat log is captured in the current monitoring cycle, the display status of the target page can be determined, and whether the target page is abnormal can be quickly and accurately monitored to achieve timely warning and repair.

[0093] S104: If the display state of the target page is an abnormal display state, a display state recovery operation is performed on the target page.

[0094] In an optional implementation, a daemon thread is pre-set for the target page, and when it is determined that the display state of the target page is an abnormal display state, a display state recovery operation can be performed on the target page through the preset daemon thread.

[0095] Specifically, Figure 4 As shown, Figure 1 The specific implementation flow chart of S104 in the first embodiment. Figure 4 It can be seen that S104 includes S1041 to S1042. The details are as follows:

[0096] S1041: If the display state of the target page is an abnormal display state, control a preset daemon thread to load first target data.

[0097] It should be noted that the abnormal display state of the target page may be due to the target page being stuck, resulting in the inability to browse normally. In this case, the target page needs to be refreshed. This embodiment specifically loads the first target data for refreshing the target page through the preset daemon thread.

[0098] S1042: Restore the display status of the target page according to the first target data.

[0099] Specifically, the target page is refreshed according to the first target data.

[0100] From the above analysis, it can be seen that in this embodiment, by presetting a daemon thread to load the first target data for refreshing the target page, refreshing the target page with abnormal display, the abnormal page display problem caused by page freezing can be quickly solved.

[0101] Through the above analysis, it can be known that the page status monitoring method provided in the embodiment of the present application monitors the heartbeat log output by the preset thread that controls the display of the target page, and determines the display status of the target page according to the monitoring result of the heartbeat log; and when it is determined that the display status of the target page is a display abnormality state, performs a display status recovery operation on the target page, which can quickly and accurately determine the display abnormality page, and realize timely and effective recovery for the display abnormality page.

[0102] Furthermore, if Figure 5 As shown, Figure 1 S104 is a flowchart of a specific implementation in the second embodiment. Figure 5 It can be seen that this embodiment and Figure 4 Compared with the embodiment shown, the specific implementation process of S501-502 is the same as S1041-S1042, except that S503-S506 are included after S502. It should be noted that S503 and S502 are executed in sequence, which are described in detail as follows:

[0103] S503: Monitor the heartbeat log within a first preset time period.

[0104] It is understandable that the abnormal display state of the target page may also be due to a program defect of the corresponding browser itself. There are many reasons for this, such as memory overflow, limited access to devices, system abnormalities, etc. For this situation, the target page needs to be reloaded. Therefore, refreshing the target page may not make the target page display normally. In this embodiment, the heartbeat log is further monitored within a first preset time period to determine whether the target page has restored its normal display state.

[0105] S504: If the heartbeat log is captured within the first preset time period, it is determined that the target page is restored to a normal display state.

[0106] It can be understood that if the abnormal display state of the target is caused by the target page being stuck, the target page can be restored to a normal display state by refreshing the target page. At this time, the heartbeat log will be captured within the first preset time.

[0107] S505: If the heartbeat log is not captured within the first preset time period, control the preset daemon thread to load the second target data, where the second target data is used to reload the target page.

[0108] Correspondingly, if the target page is in an abnormal display state, which is not caused by the target page being stuck, refreshing the target page cannot restore the target page to a normal display state. At this time, the heartbeat log will not be captured within the first preset time period. In this embodiment, it is necessary to further control the preset daemon thread to load the second target data.

[0109] S506: Reload the target page according to the second target data.

[0110] Since the second target data reloads the target page, if the abnormal display state of the target page is caused by a program defect of the corresponding browser itself, reloading the target page through the second target data can restore the target page to a normal display state.

[0111] From the above analysis, it can be seen that in this embodiment, the first target data for refreshing the target page is loaded through the preset daemon thread. After the target page with abnormal display is refreshed, if it is determined that the target page is still in an abnormal display state, the second target data for reloading the target page is further loaded through the preset daemon thread, and the target page with abnormal display is reloaded, which can quickly solve the problem of abnormal page display caused by program defects of the corresponding browser itself.

[0112] It can be understood that if the abnormal display state of the target page is not caused by a page freeze or a corresponding browser program defect, the abnormal display state of the target page cannot be restored by refreshing the target page or reloading the target page. At this time, it is necessary to send a display abnormal state prompt information to a predetermined terminal.

[0113] In an optional implementation, Figure 6 As shown, Figure 1 The specific implementation flow chart of S104 in the third embodiment. Figure 6 It can be seen that this embodiment and Figure 5 Compared with the embodiment shown, the specific implementation process of S601 to S606 is the same as the specific implementation process of S501 to S506, except that S607 to S609 are included after S606. It should be noted that S607 and S606 are executed in sequence, which are described in detail as follows:

[0114] S607: Monitor the heartbeat log within a second preset time period.

[0115] It is understandable that if the abnormal display state of the target page is not caused by a program defect of the corresponding browser itself, then by reloading the target page, the target page cannot be restored to a normal display state. Correspondingly, the heartbeat log will not be monitored within the second preset time period. If the abnormal display state of the target page is caused by a program defect of the corresponding browser itself, then by reloading the target page, the target page can be restored to a normal display state. Correspondingly, the heartbeat information will be monitored within the second preset time period. Therefore, in the present embodiment, by monitoring the heartbeat log within the second preset time period, it is determined whether the target page has been restored to a normal display state.

[0116] S608: If the heartbeat log is captured within the second preset time period, it is determined that the target page is restored to a normal display state.

[0117] S609: If the heartbeat log is not captured within the second preset time period, a prompt message indicating that the target page displays an abnormal state is sent to a predetermined terminal.

[0118] From the above analysis, it can be seen that by monitoring the heartbeat log within the second preset time period, the abnormal display state of the page that cannot be restored by refreshing the page and reloading can be discovered in time, and prompt information of the abnormal display state of the target page can be sent to a predetermined terminal in time to remind the operation and maintenance personnel to restore the abnormal display state in time, thereby improving the timeliness of page recovery.

[0119] Figure 7 Schematic diagram of the structure of the page status monitoring device provided by the embodiment of the present application. Figure 7 It can be seen that the page status monitoring device 7 provided in the embodiment of the present application includes: a loading module 701, a monitoring module 702, a determination module 703, and a recovery module 704. Among them,

[0120] The loading module 701 is used to receive a page loading instruction carrying page attribute information, load a target page based on the page attribute information, and display the target page;

[0121] A monitoring module 702, for monitoring a heartbeat log, wherein the heartbeat log is output by a preset thread that controls the display of the target page;

[0122] A determination module 703, configured to determine a display state of the target page based on the heartbeat log;

[0123] The recovery module 704 is used to perform a display state recovery operation on the target page if the display state of the target page is in an abnormal display state.

[0124] In an optional implementation, the loading module 701 includes:

[0125] A starting unit, used to start a corresponding browser after detecting a page loading instruction carrying page attribute information triggered by a user;

[0126] The first loading unit is used to load and display the target page in the browser based on the page attribute information.

[0127] In an optional implementation, the display state of the target page includes an abnormal display state and a normal display state;

[0128] The determination module 703 includes:

[0129] A first determining unit, configured to determine that the target page is in an abnormal display state if the heartbeat log is not captured within a current monitoring period;

[0130] The second determining unit is configured to determine that the target page is in a normal display state if the heartbeat log is captured within a current monitoring period.

[0131] In an optional implementation, the recovery module 704 includes:

[0132] A first control unit, configured to control a preset daemon thread to load first target data if the display state of the target page is an abnormal display state;

[0133] A restoring unit is used to restore the display state of the target page according to the first target data.

[0134] In an optional implementation, the first target data is used to refresh the target page;

[0135] The recovery unit is specifically used for:

[0136] Refresh the target page according to the first target data.

[0137] In an optional implementation, the recovery module 704 further includes:

[0138] A first monitoring unit, configured to monitor the heartbeat log within a first preset time period;

[0139] a third determining unit, configured to determine that the target page is restored to a normal display state if the heartbeat log is captured within the first preset time period;

[0140] a second control unit, configured to control the preset daemon thread to load the second target data if the heartbeat log is not captured within the first preset time period, wherein the second target data is used to reload the target page;

[0141] The second loading unit is used to reload the target page according to the second target data.

[0142] In an optional implementation, the recovery module 704 further includes:

[0143] A second monitoring unit, used to monitor the heartbeat log within a second preset time period;

[0144] a fourth determining unit, configured to determine that the target page is restored to a normal display state if the heartbeat log is captured within the second preset time period;

[0145] The sending unit is configured to send a prompt message indicating that the target page displays an abnormal state to a predetermined terminal if the heartbeat log is not captured within the second preset time period.

[0146] Figure 8 Schematic diagram of the structure of the terminal device provided in the embodiment of the present application. Figure 8 As shown, the terminal device 8 of this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80, such as a page status monitoring program. When the processor 80 executes the computer program 82, the steps in the above-mentioned various embodiments of the page status monitoring method are implemented, such as Figure 1 Steps 101 to 104 are shown.

[0147] Exemplarily, the computer program 82 may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 82 in the terminal device 8. For example, the computer program 82 may be divided into a loading module, a monitoring module, a determination module, and a recovery module (a module in a virtual device), and the specific functions of each module are as follows:

[0148] A loading module, used to receive a page loading instruction carrying page attribute information, load a target page based on the page attribute information, and display the target page;

[0149] A monitoring module, used for monitoring a heartbeat log, wherein the heartbeat log is output by a preset thread that controls the display of the target page;

[0150] A determination module, configured to determine a display state of the target page based on the heartbeat log;

[0151] The recovery module is used to perform a display state recovery operation on the target page if the display state of the target page is an abnormal display state.

[0152] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0153] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0154] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0155] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple communication units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0158] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. . Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0159] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A page status monitoring method, It is characterized in that include: Receiving a page loading instruction carrying page attribute information, and loading and displaying a target page based on the page attribute information, including: after receiving the page loading instruction carrying the page attribute information, starting a corresponding browser; loading and displaying the target page based on the page attribute information in the browser; Monitoring a heartbeat log, wherein the heartbeat log is output by a preset thread that controls the display of the target page; Determining a display state of the target page based on the heartbeat log; If the display state of the target page is an abnormal display state, a display state recovery operation is performed on the target page, including: if the display state of the target page is an abnormal display state, controlling a preset daemon thread to load first target data; and restoring the display state of the target page according to the first target data; The first target data is data used to refresh the target page when the target page is stuck and cannot be browsed normally; The restoring the display state of the target page according to the first target data includes: Refresh the target page according to the first target data; After refreshing the target page according to the first target data, the method further includes: Monitoring the heartbeat log within a first preset time period; If the heartbeat log is captured within the first preset time period, determining that the target page is restored to a normal display state; If the heartbeat log is not captured within the first preset time period, controlling the preset daemon thread to load second target data, wherein the second target data is data used to reload the target page in the case of an abnormal display state caused by a program defect of the corresponding browser itself; The target page is reloaded according to the second target data.

2. The page status monitoring method according to claim 1, It is characterized in that The display state of the target page includes an abnormal display state and a normal display state; The determining the display state of the target page based on the heartbeat log includes: If the heartbeat log is not captured within the current monitoring period, it is determined that the target page is in an abnormal display state; If the heartbeat log is captured within the current monitoring cycle, it is determined that the target page is in a normal display state.

3. The page status monitoring method according to claim 1, It is characterized in that After reloading the target page according to the second target data, the method further includes: Monitoring the heartbeat log within a second preset time period; If the heartbeat log is captured within the second preset time period, determining that the target page is restored to a normal display state; If the heartbeat log is not captured within the second preset time period, a prompt message indicating that the target page displays an abnormal state is sent to a predetermined terminal.

4. A page status monitoring device, It is characterized in that include: A loading module, used to receive a page loading instruction carrying page attribute information, load a target page based on the page attribute information, and display the target page; A monitoring module, used for monitoring a heartbeat log, wherein the heartbeat log is output by a preset thread that controls the display of the target page; A determination module, configured to determine a display state of the target page based on the heartbeat log; A recovery module, configured to perform a display state recovery operation on the target page if the display state of the target page is in an abnormal display state; The loading module includes: A starting unit, configured to start a corresponding browser after receiving a page loading instruction carrying page attribute information; A first loading unit, configured to load and display the target page in the browser based on the page attribute information; The recovery module comprises: A first control unit, configured to control a preset daemon thread to load first target data if the display state of the target page is an abnormal display state; a restoring unit, configured to restore a display state of the target page according to the first target data; The first target data is data used to refresh the target page when the target page is stuck and cannot be browsed normally; The recovery unit is specifically used for: Refresh the target page according to the first target data; The recovery module further includes: A first monitoring unit, configured to monitor the heartbeat log within a first preset time period; a third determining unit, configured to determine that the target page is restored to a normal display state if the heartbeat log is captured within the first preset time period; a second control unit, configured to control the preset daemon thread to load second target data if the heartbeat log is not captured within the first preset time period, wherein the second target data is data used to reload the target page in the case of an abnormal display state caused by a program defect of the corresponding browser itself; The second loading unit is used to reload the target page according to the second target data.

5. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the page status monitoring method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the page status monitoring method according to any one of claims 1 to 3 are implemented.