CN113127239A - Page state monitoring method, device, terminal and storage medium - Google Patents
Page state monitoring method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN113127239A CN113127239A CN201911410635.8A CN201911410635A CN113127239A CN 113127239 A CN113127239 A CN 113127239A CN 201911410635 A CN201911410635 A CN 201911410635A CN 113127239 A CN113127239 A CN 113127239A
- Authority
- CN
- China
- Prior art keywords
- page
- target page
- target
- display
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本申请属于计算机技术领域,尤其涉及一种页面状态监控方法、装置、终端及存储介质。The present application belongs to the field of computer technology, and in particular, relates to a method, device, terminal and storage medium for monitoring page status.
背景技术Background technique
目前,当浏览器页面加载内容过多,或浏览器页面需要进行高密集计算时,容易出现页面奔溃的情况。而由于浏览器页面本身是运行在沙盒模式下,发生奔溃情况时不能及时有效地进行页面修复。At present, when the browser page loads too much content, or the browser page needs to perform high-intensity calculations, it is easy to crash the page. However, because the browser page itself is running in sandbox mode, page repair cannot be performed in a timely and effective manner when a crash occurs.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供了页面状态监控方法、装置、终端及存储介质,以解决现有技术中无法及时有效地进行页面修复的问题。In view of this, the embodiments of the present application provide a method, device, terminal, and storage medium for monitoring a page state, so as to solve the problem that page repair cannot be performed in a timely and effective manner in the prior art.
本申请实施例的第一方面提供了一种远页面状态监控方法,包括:A first aspect of the embodiments of the present application provides a far page status monitoring method, including:
接收携带有页面属性信息的页面加载指令,基于所述页面属性信息加载目标页面并显示;receiving a page loading instruction carrying page attribute information, and loading and displaying a target page based on the page attribute information;
对心跳日志进行监测,所述心跳日志由控制所述目标页面显示的预设线程输出;The heartbeat log is monitored, and the heartbeat log is output by a preset thread that controls the display of the target page;
基于所述心跳日志确定所述目标页面的显示状态;Determine the 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 restoration operation is performed on the target page.
在一种可选的实现方式中,所述接收携带有页面属性信息的页面加载指令后,基于所述页面属性信息加载目标页面并显示,包括:In an optional implementation manner, after receiving the page loading instruction carrying the page attribute information, loading and displaying the target page based on the page attribute information, including:
接收携带有页面属性信息的页面加载指令后,启动对应的浏览器;After receiving the page loading instruction carrying the page attribute information, start the corresponding browser;
在所述浏览器中基于所述页面属性信息加载所述目标页面并显示。The target page is loaded and displayed in the browser based on the page attribute information.
在一种可选的实现方式中,所述目标页面的显示状态包括显示异常状态和显示正常状态;In an optional implementation manner, the display state of the target page includes a display abnormal state and a display normal 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 state;
若在当前监测周期内捕获到所述心跳日志,则确定所述目标页面处于显示正常状态。If the heartbeat log is captured in the current monitoring period, it is determined that the target page is in a normal display state.
在一种可选的实现方式中,所述若所述目标页面的显示状态为显示异常状态,则对所述目标页面执行显示状态恢复操作,包括:In an optional implementation manner, if the display state of the target page is an abnormal display state, performing a display state restoration operation on the target page, including:
若所述目标页面的显示状态为显示异常状态,则控制预设守护线程加载第一目标数据;If the display state of the target page is an abnormal display state, controlling the preset daemon thread to load the first target data;
根据所述第一目标数据恢复所述目标页面的显示状态。The display state of the target page is restored according to the first target data.
在一种可选的实现方式中,所述第一目标数据用于刷新所述目标页面;In an optional implementation manner, the first target data is used to refresh the target page;
所述根据所述第一目标数据恢复所述目标页面的显示状态,包括:The restoring the display state of the target page according to the first target data includes:
根据所述第一目标数据刷新所述目标页面。The target page is refreshed according to the first target data.
在一种可选的实现方式中,在所述根据所述第一目标数据刷新所述目标页面之后,还包括:In an optional implementation manner, 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, it is determined that the target page is restored to display a normal state;
若在所述第一预设时间段内未捕获到所述心跳日志,则控制所述预设守护线程加载所述第二目标数据,所述第二目标数据用于重新加载所述目标页面;If the heartbeat log is not captured within the first preset time period, the preset daemon thread is controlled to load the second target data, and the second target data is used to reload the target page;
根据所述第二目标数据重新加载所述目标页面。The target page is reloaded according to the second target data.
在一种可选的实现方式中,在所述根据所述第二目标数据重新加载所述目标页面之后,还包括:In an optional implementation manner, 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, it is determined that the target page is restored to display a normal state;
若在所述第二预设时间段内未捕获到所述心跳日志,则向预先确定的终端发送所述目标页面显示异常状态的提示信息。If the heartbeat log is not captured within the second preset time period, a prompt message that the target page displays an abnormal state is sent to a predetermined terminal.
本申请实施例第二方面提供了一种页面状态监控装置,包括:A second aspect of the embodiments of the present application provides a device for monitoring page status, including:
加载模块,用于接收携带有页面属性信息的页面加载指令,基于所述页面属性信息加载目标页面并显示;a loading module, configured to receive a page loading instruction carrying page attribute information, load and display a target page based on the page attribute information;
监测模块,用于对心跳日志进行监测,所述心跳日志由控制所述目标页面显示的预设线程输出;a monitoring module for monitoring a heartbeat log, the heartbeat log being output by a preset thread that controls the display of the target page;
确定模块,用于基于所述心跳日志确定所述目标页面的显示状态;a determining module, configured to determine the display state of the target page based on the heartbeat log;
恢复模块,用于在若所述目标页面的显示状态为显示异常状态,则对所述目标页面执行显示状态恢复操作。A restoration module, configured to perform a display state restoration operation on the target page if the display state of the target page is a display abnormal state.
在一种可选的实现方式中,所述加载模块,包括:In an optional implementation manner, the loading module includes:
启动单元,用于在检测到用户触发的携带有页面属性信息的页面加载指令后,启动对应的浏览器;a startup unit, configured to start a corresponding browser after detecting a page loading instruction that carries page attribute information triggered by a user;
第一加载单元,用于在所述浏览器中基于所述页面属性信息加载所述目标页面并显示。A first loading unit, configured to load and display the target page in the browser based on the page attribute information.
在一种可选的实现方式中,所述目标页面的显示状态包括显示异常状态和显示正常状态;In an optional implementation manner, the display state of the target page includes a display abnormal state and a display normal state;
所述确定模块,包括:The determining module includes:
第一确定单元,用于在若在当前监测周期内未捕获到所述心跳日志,则确定所述目标页面处于显示异常状态;a first determining unit, configured to determine that the target page is in a display abnormal state if the heartbeat log is not captured in the current monitoring period;
第二确定单元,用于在若在当前监测周期内捕获到所述心跳日志,则确定所述目标页面处于显示正常状态。The second determining unit is configured to determine that the target page is in a normal display state if the heartbeat log is captured in the current monitoring period.
在一种可选的实现方式中,所述恢复模块,包括:In an optional implementation, the recovery module includes:
第一控制单元,用于在若所述目标页面的显示状态为显示异常状态,则控制预设守护线程加载第一目标数据;a first control unit, configured to control a preset daemon thread to load the first target data if the display state of the target page is an abnormal display state;
恢复单元,用于根据所述第一目标数据恢复所述目标页面的显示状态。A restoring unit, configured to restore the display state of the target page according to the first target data.
在一种可选的实现方式中,所述第一目标数据用于刷新所述目标页面;In an optional implementation manner, the first target data is used to refresh the target page;
所述恢复单元具体用于:The recovery unit is specifically used for:
根据所述第一目标数据刷新所述目标页面。The target page is refreshed according to the first target data.
在一种可选的实现方式中,所述恢复模块,还包括:In an optional implementation, 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 display a normal 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 the second target data if the heartbeat log is not captured within the first preset time period, and the second target data is used for reloading the target page;
第二加载单元,用于根据所述第二目标数据重新加载所述目标页面。A second loading unit, configured to reload the target page according to the second target data.
在一种可选的实现方式中,所述恢复模块,还包括:In an optional implementation, the recovery module further includes:
第二监测单元,用于在第二预设时间段内对所述心跳日志进行监测;a second monitoring unit, configured to monitor the heartbeat log within a second preset time period;
第四确定单元,用于若在所述第二预设时间段内捕获到所述心跳日志,则确定所述目标页面恢复显示正常状态;a fourth determining unit, configured to determine that the target page is restored to display a normal state if the heartbeat log is captured within the second preset time period;
发送单元,用于若在所述第二预设时间段内未捕获到所述心跳日志,则向预先确定的终端发送所述目标页面显示异常状态的提示信息。A sending unit, configured to send, to a predetermined terminal, prompt information that the target page displays an abnormal state if the heartbeat log is not captured within the second preset time period.
本申请实施例第三方面提供一种终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如上第一方面所述页面状态监控方法的步骤。A third aspect of an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program When implementing the steps of the page state monitoring method described in the first aspect above.
本申请实施例第四方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如上第一方面所述页面状态监控方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein when the computer program is executed by a processor, the page state described in the first aspect above is implemented The steps of the monitoring method.
本申请实施例提供的页面状态监控方法与现有技术相比存在的有益效果是,通过对控制目标页面显示的预设线程输出的心跳日志进行监测,并根据对心跳日志的监测结果,确定目标页面的显示状态;并在确定目标页面的显示状态为显示异常状态时,对目标页面执行显示状态恢复操作,能够快速准确地确定出显示异常页面,并针对所述显示异常页面实现及时有效地恢复。Compared with the prior art, the page state monitoring method provided by the embodiment of the present application has the beneficial effect of monitoring the heartbeat log output by the preset thread displayed on the control target page, and determining the target according to the monitoring result of the heartbeat log. The display state of the page; and when it is determined that the display state of the target page is an abnormal display state, the display state recovery operation is performed on the target page, which can quickly and accurately determine the display abnormal page, and realize the timely and effective recovery of the abnormal display page. .
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请实施例提供的页面状态监控方法的实现流程图;Fig. 1 is the realization flow chart of the page state monitoring method provided by the embodiment of the present application;
图2是图1中S101的具体实现流程图;Fig. 2 is the concrete realization flow chart of S101 in Fig. 1;
图3是图1中S103的具体实现流程图;Fig. 3 is the concrete realization flow chart of S103 in Fig. 1;
图4是图1中S104在第一实施例中的具体实现流程图;Fig. 4 is the specific realization flow chart of S104 in Fig. 1 in the first embodiment;
图5是图1中S104在第二实施例中的具体实现流程图;Fig. 5 is the specific realization flow chart of S104 in Fig. 1 in the second embodiment;
图6是图1中S104在第三实施例中的具体实现流程图;Fig. 6 is the concrete realization flow chart of S104 in Fig. 1 in the third embodiment;
图7是本申请实施例提供的页面状态监控装置的结构示意图;7 is a schematic structural diagram of a device for monitoring page status provided by an embodiment of the present application;
图8是本申请实施例提供的终端设备的结构示意图。FIG. 8 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
需要说明的是,当前在浏览器页面加载内容过多,或者进行高密集计算时,由于控制浏览器页面的程序自身设计的漏洞以及浏览器自身的稳定性问题,导致浏览器页面在运行一段时间后出现页面奔溃。而浏览器页面本身是运行在沙盒模式下,一旦发生页面奔溃情况不能及时有效地发现问题,并针对问题进行页面恢复,导致针对一些需要稳定长时间运行的页面,例如户外广告屏,为了保证使用效果,通常选择使用桌面客户端程序或者原生可视化程序,但是桌面客户端以及原生可视化程序存在跨平台性较差,而且开发的成本较高,二次开发也不便利,而且实时更新速度慢的问题。It should be noted that when the browser page loads too much content or performs high-intensity calculations, the browser page runs for a period of time due to loopholes in the design of the program that controls the browser page and the stability of the browser itself. Then the page crashes. The browser page itself runs in the sandbox mode. Once the page crashes, the problem cannot be found in time and effectively, and the page can be restored for the problem, resulting in some pages that need to run stably for a long time, such as outdoor advertising screens, in order to To ensure the effect of use, we usually choose to use desktop client programs or native visualization programs. However, desktop clients and native visualization programs have poor cross-platform performance, high development costs, inconvenient secondary development, and slow real-time updates. The problem.
有鉴于此,本申请提出了一种页面状态监控方案,能够及时有效地恢复显示异常的页面,解决浏览器页面无法长时间稳定性运行的问题。In view of this, the present application proposes a page status monitoring solution, which can restore abnormally displayed pages in a timely and effective manner, and solve the problem that browser pages cannot run stably for a long time.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。如图1所示,是本申请实施例提供的页面状态监控方法的实现流程图。本实施例可以由页面状态监控装置的硬件或软件实现,所述页面状态监控装置为具有计算功能的终端设备,例如户外显示设备。详述如下:In order to illustrate the technical solutions described in the present application, the following specific embodiments are used for description. As shown in FIG. 1 , it is an implementation flowchart of the page state monitoring method provided by the embodiment of the present application. This embodiment may be implemented by hardware or software of a page state monitoring device, where the page state monitoring device is a terminal device with a computing function, such as an outdoor display device. Details are as follows:
S101,接收携带有页面属性信息的页面加载指令,基于所述页面属性信息加载目标页面并显示。S101: Receive a page loading instruction carrying page attribute information, and load and display a target page based on the page attribute information.
可以理解地,所述页面加载指令,可以由用户通过当前终端设备的实体按钮或者虚拟按钮触发,也可以由其与他终端设备直接发送。所述页面属性信息为预先配置的包括页面的宽度、高度等基本展示信息、页面的访问地址等的属性信息。Understandably, the page loading instruction may be triggered by the user through a physical button or a virtual button of the current terminal device, or may be directly sent by the user and other terminal devices. The page attribute information is preconfigured attribute information including basic display information such as the width and height of the page, and the access address of the page.
当前终端设备接收到所述页面加载指令后,基于页面的访问地址加载对应的目标页面,并根据页面的基本展示信息进行显示。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.
在一种可选的实现方式中,如图2所示,是图1中S101的具体实现流程图。由图2可知,S101包括S1011~S1012。详述如下:In an optional implementation manner, as shown in FIG. 2 , it is a specific implementation flowchart of S101 in FIG. 1 . It can be seen from FIG. 2 that S101 includes S1011 to S1012. Details are as follows:
S1011,接收携带有页面属性信息的页面加载指令后,启动对应的浏览器。S1011, after receiving the page loading instruction carrying the page attribute information, start the corresponding browser.
需要说明的是,在一种可选的实现方式中,所述终端设备上预先安装有固定的浏览器,所述浏览器通常可以支持Microsoft Windows 7、Server 2008、macOS、Linux、SmartOS、IBM AIX以及FreeBSD等系统,例如谷歌浏览器,并在所述终端设备上部署对所述浏览器进行操作的js接口套装,例如puppeteer。It should be noted that, in an optional implementation manner, a fixed browser is pre-installed on the terminal device, and the browser can usually support
接收携带有页面属性信息的页面加载指令后,通过对应的js接口套装启动浏览器,例如通过puppeteer启动谷歌浏览器。After receiving the page loading instruction carrying the page attribute information, start the browser through the corresponding js interface package, for example, start Google Chrome through puppeteer.
S1012,在所述浏览器中基于所述页面属性信息加载所述目标页面并显示。S1012: Load and display the target page in the browser based on the page attribute information.
可以理解地,在启动浏览器之后,所述浏览器根据页面属性信息进入需要渲染显示的目标页面,实现在所述浏览器中加载所述目标页面并显示。Understandably, after the browser is started, the browser enters the target page that needs to be rendered and displayed according to the page attribute information, so as to load and display the target page in the browser.
通过上述分析可知,本实施例通过启动对应的浏览器,在所述浏览器中实现所述目标页面的加载并显示,能够根据浏览器的特性对所述目标页面进行控制,方便对所述目标页面进行操作。It can be seen from the above analysis that in this embodiment, by starting the corresponding browser, the target page is loaded and displayed in the browser, and the target page can be controlled according to the characteristics of the browser, so that the target page can be controlled conveniently. page to operate.
S102,对心跳日志进行监测,所述心跳日志由控制所述目标页面显示的预设线程输出。S102, monitor a heartbeat log, where the heartbeat log is output by a preset thread that controls the display of the target page.
需要说明的是,在所述浏览器中加载所述目标页面的同时,为所述目标页面配置预设线程,所述预设线程用于控制所述目标页面的显示,并基于预设的心跳日志输出逻辑输出心跳日志,例如,所述预设的心跳日志输出逻辑包括预先为所述预设线程配置心跳日志包,若所述预设线程控制在所述目标页面显示的过程中,监测不到异常显示状态,则基于所述心跳日志包周期性输出心跳日志或者基于所述心跳日志包持续性输出心跳日志;若所述预设线程在控制所述目标页面显示过程中,监测到异常显示状态,则所述预设线程不会输出心跳日志。S103,基于所述心跳日志确定所述目标页面的显示状态。It should be noted that when the target page is loaded in the browser, a preset thread is configured for the target page, and the preset thread is used to control the display of the target page and is based on a preset heartbeat. The log output logic outputs the heartbeat log. For example, the preset heartbeat log output logic includes preconfiguring a heartbeat log package for the preset thread. If the preset thread is controlled in the process of displaying the target page, monitoring is not To the abnormal display state, 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 is in the process of controlling the display of the target page, it monitors abnormal display state, the preset thread will not output the heartbeat log. S103: Determine the display state of the target page based on the heartbeat log.
通过对S102的分析可知,在所述目标页面显示正常状态时,预设线程基于预设的心跳日志输出逻辑输出心跳日志,在所述目标页面显示异常状态时,所述预设线程不输出心跳日志,因此,终端设备可以基于所述心跳日志确定所述目标页面的显示状态。The analysis of S102 shows that when the target page displays a normal state, the preset thread outputs a heartbeat log based on the preset heartbeat log output logic, and when the target page displays an abnormal state, the preset thread does not output a heartbeat Therefore, the terminal device can determine the display state of the target page based on the heartbeat log.
需要说明的是,所述目标页面的显示状态包括显示异常状态和显示正常状态;在一种可选的实现方式中,如图3所示,是图1中S103的具体实现流程图。由图3可知,S103包括S1031~S1032。详述如下:It should be noted that the display state of the target page includes a display abnormal state and a normal display state; in an optional implementation manner, as shown in FIG. 3 , it is a specific implementation flowchart of S103 in FIG. 1 . It can be seen from FIG. 3 that S103 includes S1031 to S1032. Details are as follows:
S1031,若在当前监测周期内未捕获到所述心跳日志,则确定所述目标页面处于显示异常状态。S1031, if the heartbeat log is not captured in the current monitoring period, determine that the target page is in an abnormal display state.
根据预设的心跳日志输出逻辑可知,在所述预设线程控制所述目标页面显示过程中,若监测到显示异常,则控制所述预设线程不会输出心跳日志。因此,若在当前监测周期内未捕获到所述心跳日志,则确定所述目标页面处于显示异常状态。According to the preset heartbeat log output logic, in the process of controlling the display of the target page by the preset thread, 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 period, it is determined that the target page is in a display abnormal state.
S1032,若在当前监测周期内捕获到所述心跳日志,则确定所述目标页面处于显示正常状态。S1032, if the heartbeat log is captured in the current monitoring period, determine that the target page is in a normal display state.
同上,根据预设的心跳日志输出逻辑可知,在所述预设线程控制所述目标页面显示过程中,若监测到所述目标页面显示正常,则控制所述预设线程周期性输出心跳日志,或者持续性输出心跳日志。因此,若在当前监测周期内捕获到所述心跳日志,则确定所述目标页面处于显示正常状态。The same as above, according to the preset heartbeat log output logic, in the process of controlling the display of the target page by the preset thread, if it is detected that the display of the target page is normal, the preset thread is controlled to periodically output the heartbeat log, Or continuously output the heartbeat log. Therefore, if the heartbeat log is captured in the current monitoring period, it is determined that the target page is in a normal display state.
通过上述分析可知,根据在当前监测周期内是否捕获到所述心跳日志,可以确定所述目标页面的显示状态,能够快速准确地监测出所述目标页面是否发生异常,实现及时预警及修复。According to the above analysis, according to whether the heartbeat log is captured in the current monitoring period, the display state of the target page can be determined, whether the target page is abnormal can be quickly and accurately monitored, and timely early warning and repair can be realized.
S104,若所述目标页面的显示状态为显示异常状态,则对所述目标页面执行显示状态恢复操作。S104, if the display state of the target page is an abnormal display state, perform a display state recovery operation on the target page.
在一种可选的实现方式中,预先为所述目标页面设置守护线程,当确定所述目标页面的显示状态为显示异常状态时,可以通过预设守护线程对所述目标页面执行显示状态恢复操作。In an optional implementation manner, a daemon thread is set for the target page in advance, and when it is determined that the display state of the target page is an abnormal display state, a preset daemon thread can be used to perform display state recovery on the target page operate.
具体地,如图4所示,是图1中S104在第一实施例中的具体实现流程图。由图4可知,S104包括S1041~S1042。详述如下:Specifically, as shown in FIG. 4 , it is a flow chart of the specific implementation of S104 in FIG. 1 in the first embodiment. It can be seen from FIG. 4 that S104 includes S1041 to S1042. Details are as follows:
S1041,若所述目标页面的显示状态为显示异常状态,则控制预设守护线程加载第一目标数据。S1041 , if the display state of the target page is an abnormal display state, control a preset daemon thread to load the first target data.
需要说明的是,所述目标页面的显示异常状态,可能由于目标页面卡死,导致的无法正常浏览,这种状况,需要对所述目标页面进行刷新操作;本实施例具体为通过所述预设守护线程加载用于刷新所述目标页面所述第一目标数据。It should be noted that the abnormal display state of the target page may be caused by the target page being stuck, resulting in failure to browse normally. In this case, the target page needs to be refreshed; It is assumed that a daemon thread loads the first target data for refreshing the target page.
S1042,根据所述第一目标数据恢复所述目标页面的显示状态。S1042. Restore the display state of the target page according to the first target data.
具体地,根据所述第一目标数据刷新所述目标页面。Specifically, the target page is refreshed according to the first target data.
通过上述分析可知,本实施例中通过预设守护线程加载用于刷新所述目标页面的第一目标数据,对显示异常的所述目标页面进行刷新操作,可以快速解决由于页面出现卡死导致的页面异常显示问题。It can be seen from the above analysis that in this embodiment, the preset daemon thread is used to load the first target data for refreshing the target page, and the refresh operation is performed on the abnormally displayed target page, which can quickly solve the problem caused by the page being stuck. Page abnormal display problem.
通过上述分析可知,本申请实施例提供的页面状态监控方法,通过对控制目标页面显示的预设线程输出的心跳日志进行监测,并根据对心跳日志的监测结果,确定目标页面的显示状态;并在确定目标页面的显示状态为显示异常状态时,对目标页面执行显示状态恢复操作,能够快速准确地确定出显示异常页面,并针对所述显示异常页面实现及时有效地恢复。It can be seen from the above analysis that the method for monitoring the page status provided by 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 state of the target page is an abnormal display state, performing a display state recovery operation on the target page can quickly and accurately determine the abnormal display page, and realize timely and effective recovery of the abnormal display page.
进一步地,如图5所示,是图1中S104在第二实施例中的具体实现流程图。由图5可知,本实施例与图4所示实施例相比,S501~502与S1041~S1042的具体实现过程相同,不同之处在于,在S502之后还包括S503~S506。需要说明的是,S503与S502为顺序执行关系,详述如下:Further, as shown in FIG. 5 , it is a specific implementation flowchart of S104 in FIG. 1 in the second embodiment. It can be seen from FIG. 5 that, compared with the embodiment shown in FIG. 4 , the specific implementation processes of S501-502 and S1041-S1042 are the same in this embodiment, and the difference is that S503-S506 are also included after S502. It should be noted that S503 and S502 are in a sequential execution relationship, and the details are as follows:
S503,在第一预设时间段内对所述心跳日志进行监测。S503, monitor the heartbeat log within a first preset time period.
可以理解地,所述目标页面的异常显示状态也可能是由于对应浏览器本身的程序缺陷,这种情况有很多种原因,例如内存溢出、访问设备受限、系统异常等等,针对这种状况需要对所述目标页面进行重新加载。因此,通过刷新所述目标页面有可能无法使所述目标页面进行正常显示状态,在本实施例中,进一步通过在第一预设时间段内对所述心跳日志进行监测来确定所述目标页面是否恢复正常显示状态。Understandably, 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 situation, such as memory overflow, limited access to the device, system abnormality, etc. The target page needs to be reloaded. Therefore, by refreshing the target page, the target page may not be able to display normally. In this embodiment, the target page is further determined by monitoring the heartbeat log within a first preset time period. Whether to restore the normal display state.
S504,若在所述第一预设时间段内捕获到所述心跳日志,则确定所述目标页面恢复显示正常状态。S504, if the heartbeat log is captured within the first preset time period, determine that the target page is restored to display a normal state.
可以理解地,若所述目标的显示状态异常由所述目标页面发生卡死导致,则通过刷新所述目标页面,可使所述目标页面恢复正常显示状态,此时,对应在第一预设时间内会捕获到所述心跳日志。Understandably, if the abnormal display state of the target is caused by the target page being stuck, the target page can be restored to the normal display state by refreshing the target page. The heartbeat log will be captured within a period of time.
S505,若在所述第一预设时间段内未捕获到所述心跳日志,则控制所述预设守护线程加载所述第二目标数据,所述第二目标数据用于重新加载所述目标页面。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.
对应地,若所述目标页面出现显示异常状态,不是由于所述目标页面发生卡死导致,则通过刷新所述目标页面无法使所述目标页面恢复显示正常状态,此时,在所述第一预设时间段内不会捕获所述心跳日志。在本实施例中,需要进一步控制所述预设守护线程加载所述第二目标数据。Correspondingly, if the abnormal display state of the target page is not caused by the target page being stuck, the target page cannot be restored to the normal display state by refreshing the target page. The heartbeat log will not be captured for a preset period of time. In this embodiment, the preset daemon thread needs to be further controlled to load the second target data.
S506,根据所述第二目标数据重新加载所述目标页面。S506: Reload the target page according to the second target data.
由于所述第二目标数据重新加载所述目标页面,因此若所述目标页面出现显示异常状态由对应浏览器本身的程序缺陷引起,则通过所述第二目标数据重新加载所述目标页面可以使所述目标页面恢复显示正常状态。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 make The target page is restored to display a normal state.
通过上述分析可知,本实施例中通过预设守护线程加载用于刷新所述目标页面的第一目标数据,对显示异常的所述目标页面进行刷新操作之后,若确定所述目标页面仍处于异常显示状态,则进一步通过所述预设守护线程加载用于重新加载所述目标页面的第二目标数据,对显示异常的所述目标页面进行重新加载,可以快速解决由于对应浏览器本身的程序缺陷导致的页面异常显示问题。It can be seen from the above analysis that in this embodiment, the preset daemon thread is used to load the first target data for refreshing the target page, and after performing the refresh operation on the abnormal target page, if it is determined that the target page is still abnormal If the display state is displayed, the second target data for reloading the target page is further loaded through the preset daemon thread, and the abnormally displayed target page is reloaded, which can quickly solve the program defect due to the corresponding browser itself. The resulting page abnormal display problem.
可以理解地,若所述目标页面的异常显示状态不是由页面卡死或者对应浏览器程序缺陷导致,则通过刷新所述目标页面或者重新加载所述目标页面均无法实现对所述目标页面的异常显示状态的恢复,此时,需要向预先确定的终端发送显示异常状态提示信息。Understandably, if the abnormal display state of the target page is not caused by a stuck page or a corresponding browser program defect, the abnormality to the target page cannot be realized by refreshing the target page or reloading the target page. To restore the display state, at this time, it is necessary to send the display abnormal state prompt information to a predetermined terminal.
在一种可选的实现方式中,如图6所示,是图1中S104在第三实施例中的具体实现流程图。由图6可知,本实施例与图5所示实施例相比,S601~606的具体实现过程与S501~S506的具体实现过程相同,不同之处在于,在S606之后还包括S607~S609。需要说明的是,S607与S606为顺序执行关系,详述如下:In an optional implementation manner, as shown in FIG. 6 , it is a specific implementation flowchart of S104 in FIG. 1 in the third embodiment. It can be seen from FIG. 6 that, compared with the embodiment shown in FIG. 5, the specific implementation process of S601-606 is the same as the specific implementation process of S501-S506, the difference is that S607-S609 are also included after S606. It should be noted that S607 and S606 are executed sequentially, and the details are as follows:
S607,在第二预设时间段内对所述心跳日志进行监测。S607, monitor the heartbeat log within a second preset time period.
可以理解地,若所述目标页面的异常显示状态不是由于对应浏览器本身的程序缺陷导致,则通过重新加载所述目标页面,无法使所述目标页面恢复显示正常状态。对应地,在第二预设时间段内不会监测到所述心跳日志,若所述目标页面的异常显示状态是由于对应浏览器本身的程序缺陷导致,则通过重新加载所述目标页面,可以使所述目标页面恢复显示正常状态。对应地,在第二预设时间段内会监测到所述心跳信息。因此,在本实施例中,通过在第二预设时间段内对所述心跳日志进行监测,来确定所述目标页面是否恢复到显示正常状态。Understandably, if the abnormal display state of the target page is not caused by a program defect of the corresponding browser itself, the target page cannot be restored to the normal display state by reloading the target page. 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, you can The target page is restored to display a normal state. Correspondingly, the heartbeat information will be monitored within the second preset time period. Therefore, in this embodiment, it is determined whether the target page is restored to a normal display state by monitoring the heartbeat log within a second preset time period.
S608,若在所述第二预设时间段内捕获到所述心跳日志,则确定所述目标页面恢复显示正常状态。S608, if the heartbeat log is captured within the second preset time period, determine that the target page is restored to display a normal state.
S609,若在所述第二预设时间段内未捕获到所述心跳日志,则向预先确定的终端发送所述目标页面显示异常状态的提示信息。S609, if the heartbeat log is not captured within the second preset time period, send a prompt message that the target page displays an abnormal state to a predetermined terminal.
通过上述分析可知,通过在第二预设时间段内监测所述心跳日志,可以及时发现无法通过刷新页面以及重新加载恢复的页面异常显示状态,并及时向预先确定终端发送所述目标页面显示异常状态的提示信息,提醒运维人员及时对所述显示异常状态进行恢复,提高页面恢复的及时性。It can be seen from the above analysis that by monitoring the heartbeat log in the second preset time period, the abnormal display state of the page that cannot be restored by refreshing the page and reloading can be found in time, and the abnormal display state of the target page can be sent to the predetermined terminal in time. The prompt information of the status reminds the operation and maintenance personnel to restore the abnormal display state in time, and improves the timeliness of page restoration.
图7是本申请实施例提供的页面状态监控装置的结构示意图。由图7可知,本申请实施例提供的页面状态监控装置7包括:加载模块701、监测模块702、确定模块703、恢复模块704。其中,FIG. 7 is a schematic structural diagram of a page state monitoring apparatus provided by an embodiment of the present application. As can be seen from FIG. 7 , the page
加载模块701,用于接收携带有页面属性信息的页面加载指令,基于所述页面属性信息加载目标页面并显示;A
监测模块702,用于对心跳日志进行监测,所述心跳日志由控制所述目标页面显示的预设线程输出;A
确定模块703,用于基于所述心跳日志确定所述目标页面的显示状态;A
恢复模块704,用于在若所述目标页面的显示状态为显示异常状态,则对所述目标页面执行显示状态恢复操作。The
在一种可选的实现方式中,所述加载模块701,包括:In an optional implementation manner, the
启动单元,用于在检测到用户触发的携带有页面属性信息的页面加载指令后,启动对应的浏览器;a startup unit, configured to start a corresponding browser after detecting a page loading instruction that carries page attribute information triggered by a user;
第一加载单元,用于在所述浏览器中基于所述页面属性信息加载所述目标页面并显示。A first loading unit, configured to load and display the target page in the browser based on the page attribute information.
在一种可选的实现方式中,所述目标页面的显示状态包括显示异常状态和显示正常状态;In an optional implementation manner, the display state of the target page includes a display abnormal state and a display normal state;
所述确定模块703,包括:The determining
第一确定单元,用于在若在当前监测周期内未捕获到所述心跳日志,则确定所述目标页面处于显示异常状态;a first determining unit, configured to determine that the target page is in a display abnormal state if the heartbeat log is not captured in the current monitoring period;
第二确定单元,用于在若在当前监测周期内捕获到所述心跳日志,则确定所述目标页面处于显示正常状态。The second determining unit is configured to determine that the target page is in a normal display state if the heartbeat log is captured in the current monitoring period.
在一种可选的实现方式中,所述恢复模块704,包括:In an optional implementation manner, the
第一控制单元,用于在若所述目标页面的显示状态为显示异常状态,则控制预设守护线程加载第一目标数据;a first control unit, configured to control a preset daemon thread to load the first target data if the display state of the target page is an abnormal display state;
恢复单元,用于根据所述第一目标数据恢复所述目标页面的显示状态。A restoring unit, configured to restore the display state of the target page according to the first target data.
在一种可选的实现方式中,所述第一目标数据用于刷新所述目标页面;In an optional implementation manner, the first target data is used to refresh the target page;
所述恢复单元具体用于:The recovery unit is specifically used for:
根据所述第一目标数据刷新所述目标页面。The target page is refreshed according to the first target data.
在一种可选的实现方式中,所述恢复模块704,还包括:In an optional implementation manner, the
第一监测单元,用于在第一预设时间段内对所述心跳日志进行监测;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 display a normal 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 the second target data if the heartbeat log is not captured within the first preset time period, and the second target data is used for reloading the target page;
第二加载单元,用于根据所述第二目标数据重新加载所述目标页面。A second loading unit, configured to reload the target page according to the second target data.
在一种可选的实现方式中,所述恢复模块704,还包括:In an optional implementation manner, the
第二监测单元,用于在第二预设时间段内对所述心跳日志进行监测;a second monitoring unit, configured to monitor the heartbeat log within a second preset time period;
第四确定单元,用于若在所述第二预设时间段内捕获到所述心跳日志,则确定所述目标页面恢复显示正常状态;a fourth determining unit, configured to determine that the target page is restored to display a normal state if the heartbeat log is captured within the second preset time period;
发送单元,用于若在所述第二预设时间段内未捕获到所述心跳日志,则向预先确定的终端发送所述目标页面显示异常状态的提示信息。A sending unit, configured to send, to a predetermined terminal, prompt information that the target page displays an abnormal state if the heartbeat log is not captured within the second preset time period.
图8是本申请实施例提供的终端设备的结构示意图。如图8所示,该实施例的终端设备8包括:处理器80、存储器81以及存储在存储器81中并可在处理器80上运行的计算机程序82,例如页面状态监控程序。处理器80执行计算机程序82时实现上述各个页面状态监控方法实施例中的步骤,例如图1所示的步骤101至104。FIG. 8 is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 8 , the
示例性的,计算机程序82可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在存储器81中,并由处理器80执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序82在所述终端设备8中的执行过程。例如,计算机程序82可以被分割成加载模块、监测模块、确定模块以及恢复模块(虚拟装置中的模块),各模块具体功能如下:Exemplarily, the
加载模块,用于接收携带有页面属性信息的页面加载指令,基于所述页面属性信息加载目标页面并显示;a loading module, configured to receive a page loading instruction carrying page attribute information, load and display a target page based on the page attribute information;
监测模块,用于对心跳日志进行监测,所述心跳日志由控制所述目标页面显示的预设线程输出;a monitoring module for monitoring a heartbeat log, the heartbeat log being output by a preset thread that controls the display of the target page;
确定模块,用于基于所述心跳日志确定所述目标页面的显示状态;a determining module, configured to determine the display state of the target page based on the heartbeat log;
恢复模块,用于在若所述目标页面的显示状态为显示异常状态,则对所述目标页面执行显示状态恢复操作。A restoration module, configured to perform a display state restoration operation on the target page if the display state of the target page is a display abnormal state.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art 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. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized 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 from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize 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. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个通信单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple communication units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。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 alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, 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 When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. . Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may 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, the computer-readable media Electric carrier signals and telecommunication signals are not included.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911410635.8A CN113127239B (en) | 2019-12-31 | 2019-12-31 | Page state monitoring method, device, terminal and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911410635.8A CN113127239B (en) | 2019-12-31 | 2019-12-31 | Page state monitoring method, device, terminal and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113127239A true CN113127239A (en) | 2021-07-16 |
| CN113127239B CN113127239B (en) | 2024-10-25 |
Family
ID=76770269
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911410635.8A Active CN113127239B (en) | 2019-12-31 | 2019-12-31 | Page state monitoring method, device, terminal and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113127239B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112527748A (en) * | 2020-12-24 | 2021-03-19 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for analyzing user operation behaviors |
| CN114201312A (en) * | 2021-11-18 | 2022-03-18 | 广东三维家信息科技有限公司 | Communication method and device between client pages, electronic equipment and storage medium |
Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070038682A1 (en) * | 2005-08-15 | 2007-02-15 | Microsoft Corporation | Online page restore from a database mirror |
| CN102215215A (en) * | 2010-08-02 | 2011-10-12 | 深圳市深信服电子科技有限公司 | Method for recovering page and electronic terminal |
| CN102375758A (en) * | 2010-08-20 | 2012-03-14 | 联芯科技有限公司 | Method and device for preventing apparent death of browser of mobile communication equipment |
| CN102779177A (en) * | 2012-06-27 | 2012-11-14 | 优视科技有限公司 | Back-up method, restoring method and device of browse history of browser |
| CN103024038A (en) * | 2012-12-12 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for browsing webpage |
| CN103167016A (en) * | 2013-01-07 | 2013-06-19 | 北京奇虎科技有限公司 | Method and device for uploading and processing browser crash data |
| CN103678019A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for automatically restoring browser |
| CN103778254A (en) * | 2014-02-24 | 2014-05-07 | 北京国双科技有限公司 | Method, device and system for processing page access data |
| WO2017023244A1 (en) * | 2015-07-31 | 2017-02-09 | Hewlett Packard Enterprise Development Lp | Fault tolerant computing |
| CN106648971A (en) * | 2016-11-11 | 2017-05-10 | 努比亚技术有限公司 | Crash recovery device, terminal and method |
| WO2017219740A1 (en) * | 2016-06-24 | 2017-12-28 | 武汉斗鱼网络科技有限公司 | Method and system for maintaining active user set based on time roulette and page heartbeat |
| CN108255868A (en) * | 2016-12-29 | 2018-07-06 | 北京国双科技有限公司 | Check the method and apparatus linked in website |
| CN109446455A (en) * | 2018-09-14 | 2019-03-08 | 广东神马搜索科技有限公司 | Page processing method and device |
| CN110401580A (en) * | 2019-06-20 | 2019-11-01 | 平安普惠企业管理有限公司 | Webpage status monitoring method and relevant device based on heartbeat mechanism |
| CN110471784A (en) * | 2019-07-29 | 2019-11-19 | 阿里巴巴集团控股有限公司 | Playback terminal abnormality eliminating method and device based on Electron platform |
| WO2019228034A1 (en) * | 2018-05-30 | 2019-12-05 | 杭州海康威视数字技术股份有限公司 | Method and apparatus for data synchronization |
-
2019
- 2019-12-31 CN CN201911410635.8A patent/CN113127239B/en active Active
Patent Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070038682A1 (en) * | 2005-08-15 | 2007-02-15 | Microsoft Corporation | Online page restore from a database mirror |
| CN102215215A (en) * | 2010-08-02 | 2011-10-12 | 深圳市深信服电子科技有限公司 | Method for recovering page and electronic terminal |
| CN102375758A (en) * | 2010-08-20 | 2012-03-14 | 联芯科技有限公司 | Method and device for preventing apparent death of browser of mobile communication equipment |
| CN102779177A (en) * | 2012-06-27 | 2012-11-14 | 优视科技有限公司 | Back-up method, restoring method and device of browse history of browser |
| CN103678019A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for automatically restoring browser |
| CN103024038A (en) * | 2012-12-12 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for browsing webpage |
| CN103167016A (en) * | 2013-01-07 | 2013-06-19 | 北京奇虎科技有限公司 | Method and device for uploading and processing browser crash data |
| CN103778254A (en) * | 2014-02-24 | 2014-05-07 | 北京国双科技有限公司 | Method, device and system for processing page access data |
| WO2017023244A1 (en) * | 2015-07-31 | 2017-02-09 | Hewlett Packard Enterprise Development Lp | Fault tolerant computing |
| WO2017219740A1 (en) * | 2016-06-24 | 2017-12-28 | 武汉斗鱼网络科技有限公司 | Method and system for maintaining active user set based on time roulette and page heartbeat |
| CN106648971A (en) * | 2016-11-11 | 2017-05-10 | 努比亚技术有限公司 | Crash recovery device, terminal and method |
| CN108255868A (en) * | 2016-12-29 | 2018-07-06 | 北京国双科技有限公司 | Check the method and apparatus linked in website |
| WO2019228034A1 (en) * | 2018-05-30 | 2019-12-05 | 杭州海康威视数字技术股份有限公司 | Method and apparatus for data synchronization |
| CN109446455A (en) * | 2018-09-14 | 2019-03-08 | 广东神马搜索科技有限公司 | Page processing method and device |
| CN110401580A (en) * | 2019-06-20 | 2019-11-01 | 平安普惠企业管理有限公司 | Webpage status monitoring method and relevant device based on heartbeat mechanism |
| CN110471784A (en) * | 2019-07-29 | 2019-11-19 | 阿里巴巴集团控股有限公司 | Playback terminal abnormality eliminating method and device based on Electron platform |
Non-Patent Citations (4)
| Title |
|---|
| 张磊;王丽娜;王德军;: "一种网页防篡改的系统模型", 武汉大学学报(理学版), no. 01, 24 February 2009 (2009-02-24) * |
| 志军;: "浏览器崩溃不可怕", 电脑迷, no. 09, 1 May 2010 (2010-05-01) * |
| 范建华;宋云波;: "一种基于E-Key及Web页面监控的网站防篡改机制研究", 成都信息工程学院学报, no. 04 * |
| 范建华;宋云波;: "一种基于E-Key及Web页面监控的网站防篡改机制研究", 成都信息工程学院学报, no. 04, 15 August 2009 (2009-08-15) * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112527748A (en) * | 2020-12-24 | 2021-03-19 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for analyzing user operation behaviors |
| CN114201312A (en) * | 2021-11-18 | 2022-03-18 | 广东三维家信息科技有限公司 | Communication method and device between client pages, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113127239B (en) | 2024-10-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10152382B2 (en) | Method and system for monitoring virtual machine cluster | |
| CN111221800B (en) | Database migration method and device, electronic equipment and storage medium | |
| CN112181942B (en) | Time series database system and data processing method and device | |
| JP2020091835A (en) | Method and device for processing information | |
| US9544399B2 (en) | Visually depicting cloud resource utilization during execution of an application | |
| US10558484B2 (en) | Systems and methods for securing virtual machines | |
| CN109726076B (en) | Applet life cycle management method and system | |
| WO2018095107A1 (en) | Bios program abnormal processing method and apparatus | |
| CN115048147B (en) | A firmware upgrade method, device, equipment, and storage medium | |
| CN105302768A (en) | Slave CPU exception processing method and apparatus | |
| CN113672340A (en) | Incremental backup method, system, device and readable storage medium for virtual machine | |
| CN112817656B (en) | Applet running method and device | |
| CN113127239A (en) | Page state monitoring method, device, terminal and storage medium | |
| US20140331205A1 (en) | Program Testing Service | |
| CN106776206A (en) | The method of monitor process state, device and electronic equipment | |
| CN111130856A (en) | A server configuration method, system, device, and computer-readable storage medium | |
| CN117033084B (en) | Virtual machine backup method and device, electronic equipment and storage medium | |
| WO2022142716A1 (en) | Information processing method and apparatus regarding wireless hotspot | |
| CN111858234A (en) | A task execution method, apparatus, device and medium | |
| US10872019B2 (en) | Load and save recovery partition using mobile device | |
| US20170214591A1 (en) | Server, screen information acquisition method and bmc | |
| CN116827618A (en) | Composite intrusion detection device and method | |
| US11113122B1 (en) | Event loop diagnostics | |
| US11477104B2 (en) | Data rate monitoring to determine channel failure | |
| CN114721871A (en) | Data backup method and device and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |