A method, system, device and storage medium for real-time positioning of CEF page anomalies
By adding observer monitoring module and OCR recognition technology to the PV process, real-time monitoring and handling of CEF page exceptions has been solved, and the problem of inability to locate and resolve page exceptions in the existing technology is solved, improving the stability and user experience of the website.
Patent Information
- Application Number
- CN202310544572.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-15
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2043-05-15
Smart Images

Figure CN116932258B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, system, device and storage medium for real-time positioning of CEF page anomalies. Background Art
[0002] CEF (Chromium Embedded Framework): CEF is an open source embedded framework based on the Chromium browser kernel, which can be used to develop independent, cross-platform applications or browser plug-ins. The implementation of the present invention requires the use of the CEF framework to render pages and provide interfaces such as external query page elements.
[0003] In the current general solution, when CEF has an exception, only the page exception is known, but the specific cause of the problem is unknown, so it is impossible to effectively locate and solve the actual problem. The reason is that the error code obtained through the web itself is not comprehensive. For example, when the browser kernel crashes or the network is abnormal, the server cannot be notified in real time. However, a third-party observer can notify the back-end service of the problem in real time. Monitoring web browsers through third-party observers is more accurate and real-time, which has become one of the technical methods that need to be solved for CEF page exceptions. Summary of the invention
[0004] In view of this, the purpose of the present invention is to propose a method, system, device and storage medium for real-time positioning of CEF page anomalies. By adding an observer monitoring module in the PV (Page View) process, an external program monitors and processes the CEF browser in real time as an observer, which can quickly locate and solve page anomalies. The observer monitoring module is responsible for monitoring abnormal conditions, obtaining the cause of the abnormality, and reporting it to the server. The server classifies, monitors and warns the reported data through big data cloud computing, which facilitates the development of rapid positioning and repair of problems.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] In a first aspect, an embodiment of the present invention provides a method for real-time positioning of CEF page exceptions, comprising the following steps:
[0007] Step 1: Start the PV process and add the observer monitoring module, CEF browser module and reporting module to the PV process;
[0008] Step 2: When the EC (E-commerce) business triggers the PV process to open the page, the CEF browser module obtains the page loading status. If the loading is successful, the page elements are obtained for analysis. If the loading fails, the error code is obtained.
[0009] Step 3: The observer monitoring module performs OCR (Optical Character Recognition) on the CEF browser page to determine whether the page is loaded successfully;
[0010] Step 4: The observer monitoring module collects information and reports it to the server, which analyzes the reported information, performs monitoring and issues early warning.
[0011] As a further solution of the present invention, after the EC account is logged in, the PV process is started, and when the CEF browser module obtains the page loading status, it includes:
[0012] If the state is loading, it will enter the next round of attempts;
[0013] Get the error code returned by CEF when loading fails;
[0014] When loading is successful, get the page elements and judge the server or page abnormality through the page elements.
[0015] As a further solution of the present invention, when the EC (E-commerce) business triggers the PV process to open a page, each EC process starts a PV process, and the PV process is used to interact with the EC process and the encapsulated CEF browser module, and acts as an observer role. The PV process also links to the server and reports, wherein the observer identity is responsible for detecting the status of the CEF browser to ensure that CEF works normally.
[0016] As a further solution of the present invention, when the EC service triggers the PV process to open a page, the EC process is further used to send an open page instruction to the PV through inter-process communication, and the PV process calls the CEF interface to open the specified page.
[0017] As a further solution of the present invention, the PV process is also used to detect the health status of CEF in real time. If CEF is stuck or the module is abnormal, it will be restarted and reported. If the page is opened successfully, the PV process will call the interface to obtain the page elements to analyze whether the page is displayed normally. At the same time, the PV process uses OCR to detect the page and find abnormalities such as white screen and only displaying the skeleton.
[0018] As a further solution of the present invention, the CEF browser module is a browser kernel, which is used for page rendering; when receiving the instruction to open the page, the result is returned to notify the PV process, and the status of the CEF browser module includes loading, loading success, and loading failure; the CEF browser module is also used to obtain page elements. When the page is opened successfully, the PV process analyzes the obtained page elements to detect whether the page is displayed normally.
[0019] Another aspect of the present invention further provides a system for real-time location of CEF page anomalies, including a CEF browser module, an OCR detection module, an observer monitoring module, and a reporting module;
[0020] The CEF browser module is responsible for opening the page and returning the status code, and for providing an interface for external query page elements;
[0021] The OCR detection module is responsible for detecting the opened pages and detecting abnormalities such as a white screen or only displaying a skeleton image;
[0022] The observer monitoring module is used to monitor whether the CEF browser module is abnormal and is responsible for information collection and reporting;
[0023] The reporting module is responsible for performing big data analysis on the reports, generating reports and issuing warnings.
[0024] As a further solution of the present invention, the system for real-time positioning of CEF page anomalies also includes a server, which is used to receive reported information. The server is connected to an analysis module, which is used to analyze, monitor and warn the reported information.
[0025] As a further solution of the present invention, the system for real-time positioning of CEF page anomalies further includes a PV process observer monitoring module, and the PV process observer monitoring module is used to obtain the cause of the anomaly when detecting the anomaly.
[0026] In another aspect of the present invention, a computer device is provided, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, any one of the methods for locating CEF page exceptions in real time according to the present invention is executed.
[0027] In another aspect of the present invention, a computer-readable storage medium is provided, storing computer program instructions, which, when executed, implement any one of the methods for real-time location of CEF page anomalies according to the present invention.
[0028] Compared with the prior art, the present invention proposes a method, system, device and storage medium for real-time location of CEF page anomalies, which has the following beneficial technical effects:
[0029] The present invention provides a method for real-time location of CEF page anomalies by monitoring the performance indicators of CEF pages (such as loading time, CPU occupancy, etc.) to detect page anomalies, and combining log recording, event tracking and other technologies for analysis and location. The corresponding system can use these technologies to achieve automatic monitoring and alarm, improve system stability and user experience.
[0030] The main benefits of the method and system include:
[0031] 1. Improve web page performance and user experience: Timely detection and resolution of exceptions can avoid problems such as freezes and crashes during user access and improve website availability.
[0032] 2. Reduce maintenance costs: Automated monitoring and alarming can reduce the cost of manual intervention and reduce losses caused by website downtime or abnormalities.
[0033] 3. Optimize operation management: timely understand the website operation status and performance bottlenecks, help optimize operation management strategies, and improve the website's efficiency and competitiveness.
[0034] These and other aspects of the present application will be more concise and understandable in the following description of the embodiments. It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments of the present application. In the drawings:
[0036] Figure 1 A flowchart of a method for real-time location of CEF page anomalies in an embodiment of the present invention;
[0037] Figure 2 It is a schematic diagram of the EC process starting the PV process in a method for real-time positioning of CEF page abnormalities of the present invention;
[0038] Figure 3 A schematic diagram of the PV process executing operations in the method for real-time positioning of CEF page abnormalities according to the present invention;
[0039] Figure 4 A schematic diagram of the system structure for real-time location of CEF page anomalies according to the present invention;
[0040] Figure 5 A schematic diagram of the structure of a server in a system for real-time location of CEF page anomalies according to the present invention;
[0041] Figure 6 A schematic diagram of the hardware structure of an embodiment of a computer device for implementing a method for locating CEF page anomalies in real time according to the present invention;
[0042] Figure 7 The diagram is a schematic diagram of an embodiment of a computer-readable storage medium for implementing a method for locating CEF page exceptions in real time according to the present invention.
[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] Below, the present application is further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.
[0045] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, other steps or units inherent to a process, method, system, product or device that includes a series of steps or units.
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0049] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0050] In the current general solution, when an exception occurs in CEF, only the page exception is known, but the specific cause of the problem is unknown, so it is impossible to effectively locate and solve the actual problem. The reason is that the error code and other methods obtained through the web itself are not comprehensive. For example, the server cannot be notified in real time when there is a browser kernel problem crash exception and network exception. Therefore, the present invention proposes a method, system, device and storage medium for real-time positioning of CEF page exceptions. By adding an observer monitoring module to the PV process, an external program monitors and processes the CEF browser in real time as an observer, which can quickly locate and solve page exception problems. The observer monitoring module is responsible for monitoring abnormal situations, obtaining the cause of the abnormality, and reporting it to the server. The server classifies, monitors and warns the reported data through big data cloud computing, which facilitates development to quickly locate and fix problems.
[0051] See also Figure 1 As shown, an embodiment of the present invention provides a method for real-time positioning of CEF page anomalies, wherein the method comprises the following steps S1-S4;
[0052] Step 1: Start the PV process and add the observer monitoring module, CEF browser module and reporting module to the PV process;
[0053] Step 2: When the EC service triggers the PV process to open the page, the CEF browser module obtains the page loading status. If the loading is successful, the page elements are obtained for analysis. If the loading fails, the error code is obtained.
[0054] Step 3: The observer monitoring module performs OCR recognition on the CEF browser page to determine whether the page is loaded successfully. If the page content is empty or an error code is detected, it is determined that the page loading has failed.
[0055] Step 4: The observer monitoring module collects information and reports it to the server. The server analyzes the reported information, monitors and issues warnings, thereby monitoring and issuing warnings on the health status of the page.
[0056] In an embodiment of the present invention, the present invention provides a method and system for real-time positioning of CEF browser anomalies based on an observer. The system can quickly locate and solve page anomalies by adding an observer monitoring module in the PV process, and an external program monitors and processes the CEF browser in real time as an observer. The observer monitoring module is responsible for monitoring anomalies, obtaining the cause of the anomaly, and reporting to the server. The server classifies, monitors and warns the reported data through big data cloud computing, which facilitates the development of rapid positioning and repair of problems.
[0057] In this embodiment, after the EC account logs in, the PV process is started, and when the CEF browser module obtains the page loading status, it includes:
[0058] If the state is loading, it will enter the next round of attempts;
[0059] Get the error code returned by CEF when loading fails;
[0060] When loading is successful, get the page elements and judge the server or page abnormality through the page elements.
[0061] In this embodiment, the present invention uses an external process monitoring browser to monitor and process CEF abnormal processes as an observer. The third-party observer can notify the back-end service of the problem in real time. Monitoring the web browser through the third-party observer is more accurate and real-time.
[0062] See also Figure 2 As shown, when the EC (E-commerce) business triggers the PV process to open a page, each EC process starts a PV process, and the PV process is used to interact with the EC process and the encapsulated CEF browser module, and acts as an observer role. The PV process also links to the server and reports, where the observer identity is responsible for detecting the status of the CEF browser to ensure that CEF works normally.
[0063] In this embodiment, the EC process is the main body, and each EC process will start a PV process to ensure the uniqueness of the user's page operation. The PV process is responsible for interacting with the EC process and the CEF browser module and the role of the observer identity is responsible for detecting the status of the CEF browser to ensure that CEF works normally. The PV process also connects to the server and reports.
[0064] In this embodiment, CEF does not directly link to the server. The server here is different from the front-end page link to the server. The server here is only responsible for collecting reports and analyzing warnings. This design is mainly to monitor and report to the observer, and monitor whether there will be any problems, because it cannot report when it is abnormal.
[0065] When the EC service triggers the PV process to open a page, the EC process is also used to send an open page instruction to the PV through inter-process communication, and the PV process calls the CEF interface to open the specified page.
[0066] In this embodiment, see Figure 3 As shown, the PV process is also used to detect the health status of CEF in real time. If CEF is stuck or the module is abnormal, it will be restarted and reported. If the page is opened successfully, the PV process calls the interface to obtain the page elements to analyze whether the page is displayed normally. At the same time, the PV process detects the page through OCR to find abnormalities such as white screen and only displaying the skeleton.
[0067] That is, after EC logs in, the PV process is called up. The PV process is responsible for interacting with the EC and CEF browser modules and acting as an observer. When EC opens a page, the EC process sends an open page instruction to PV through inter-process communication, and the PV process calls the CEF interface to open the specified page. The PV process detects the health status of CEF in real time. If CEF is stuck or the module is abnormal, it will restart and report. If the page is opened successfully, the PV process will call the interface to obtain the page elements to analyze whether the page is displayed normally. At the same time, the PV process detects the page through OCR to better detect the abnormalities of white screen and only displaying the skeleton.
[0068] In this embodiment, the CEF browser module is a browser kernel used for page rendering; when receiving a page opening instruction, the result is returned to notify the PV process, and the status of the CEF browser module includes loading, loading success, and loading failure; the CEF browser module is also used to obtain page elements. When the page is opened successfully, the PV process analyzes the obtained page elements to detect whether the page is displayed normally.
[0069] The failure status has a status code indicating the cause of the failure, which can be classified and analyzed based on the returned error code. The CEF browser module can obtain page elements. When the page is successfully opened, the PV process will obtain the page elements for analysis to detect whether the page is displayed normally.
[0070] The present invention can obtain the cause of the abnormality through the external program observer identity and CEF self-detection, and report it to the server. The server classifies, monitors and warns through the reported data, so that the development can quickly locate and repair the problem.
[0071] It should be noted that the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0072] It should be understood that, although described in a certain order, these steps are not necessarily performed in sequence in the above order. Unless there is clear explanation in this article, the execution of these steps does not have strict order restriction, and these steps can be performed in other orders. Moreover, a part of the steps of the present embodiment may include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a part of the steps or stages in other steps or other steps.
[0073] It should be noted that CEF (Chromium Embedded Framework): CEF is an open source embedded framework based on the Chromium browser kernel, which can be used to develop independent, cross-platform applications or browser plug-ins. The implementation of this patent requires the use of the CEF framework to render pages and provide interfaces such as external query page elements.
[0074] OCR technology: OCR (Optical Character Recognition) is a technology that converts text in an image into editable text. The implementation of this patent requires the use of OCR technology to detect the CEF browser page to determine whether the page has been loaded successfully.
[0075] Observer pattern: Observer pattern is a design pattern that defines a one-to-many dependency relationship between objects, so that multiple observer objects can monitor a subject object at the same time and be notified when the subject object's state changes. The implementation of this patent requires the use of the observer pattern to achieve real-time monitoring and processing of the CEF browser state.
[0076] PV is the abbreviation of Page View, which refers to the number of times a website or application page is visited. Every time a page is loaded, the computer will record a PV, regardless of whether the user repeatedly visits the same page. Therefore, PV can be used as one of the indicators to measure website / application traffic.
[0077] EC account refers to an account registered and owned by an enterprise on an e-commerce platform, which is used for e-commerce activities, including publishing product information, receiving orders, managing inventory, and completing transactions. For example, e-commerce platforms such as Taobao and JD.com require sellers to register an EC account before they can start selling goods.
[0078] EC business refers to various business activities carried out by enterprises in the field of e-commerce, including but not limited to online sales, online payment, logistics distribution, after-sales service, etc. Enterprises can carry out EC business by building their own e-commerce websites or entering third-party e-commerce platforms to better meet consumer needs and improve sales efficiency and brand awareness.
[0079] The second aspect of the present invention, see Figure 4 As shown, a system for real-time positioning of CEF page anomalies is also provided. The system for real-time positioning of CEF page anomalies includes a CEF browser module, an OCR detection module, an observer monitoring module, and a reporting module.
[0080] The CEF browser module is responsible for opening the page and returning the status code, and for providing an interface for external query page elements;
[0081] The OCR detection module is responsible for detecting the opened page and detecting abnormalities such as a blank screen and a skeleton image on the page;
[0082] The observer monitoring module is used to monitor whether the CEF browser module is abnormal and is responsible for information collection and reporting;
[0083] The reporting module is responsible for performing big data analysis on the reports, generating reports and issuing warnings.
[0084] In this embodiment, see Figure 5 As shown, the system for real-time positioning of CEF page anomalies also includes a server end, which is used to receive reported information. The server end is connected to an analysis module, which is used to analyze, monitor and warn the reported information.
[0085] In this embodiment, the system for real-time positioning of CEF page anomalies also includes a PV process observer monitoring module, which is used to obtain the cause of the anomaly when detecting the anomaly. After knowing the cause of the anomaly, it is convenient to locate and solve the problem as quickly as possible.
[0086] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0087] According to a third aspect of an embodiment of the present invention, a computer device 1000 is provided, including a memory 1001 and a processor 1002, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method of any one of the above embodiments is implemented.
[0088] like Figure 6 FIG. 1 is a schematic diagram of the hardware structure of a computer device for executing a method for locating CEF page anomalies in real time provided by the present invention. Figure 6 The computer device 1000 shown in the figure is taken as an example, and the computer device includes a processor 1002 and a memory 1001, and may also include: an input device and an output device. The processor 1002, the memory 1001, the input device and the output device may be connected via a bus or other means. Figure 6 The example of the bus connection is taken as an example. The input device can receive input digital or character information, and generate signal input related to real-time positioning of CEF page abnormalities. The output device can include display devices such as display screens.
[0089] The memory 1001, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method for real-time positioning of CEF page anomalies in the embodiment of the present application. The memory 1001 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the use of the method for real-time positioning of CEF page anomalies, etc. In addition, the memory 1001 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1001 may optionally include a memory remotely arranged relative to the processor 1002, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0090] In some embodiments, the processor 1002 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 1002 is generally used to control the overall operation of the computer device 1000. In this embodiment, the processor 1002 is used to run the program code stored in the memory 1001 or process data. The processors 1002 of the multiple computer devices 1000 of the computer device of this embodiment execute various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 1001, that is, the method for locating CEF page exceptions in real time in the above method embodiment, including the following steps:
[0091] Step 1: Log in with an EC account to start the PV process. The PV process starts the observer monitoring module, CEF browser module, and reporting module.
[0092] Step 2: EC business triggers the notification of PV process to open the page, and CEF browser module obtains the current loading status of its own page;
[0093] (1) In the loading state, enter the next round of attempts
[0094] (2) Get the error code returned by CEF when loading fails
[0095] (3) The page elements are obtained after loading successfully, and the server or page abnormality is determined based on the page elements.
[0096] If the above is normal, proceed to step 3.
[0097] Step 3: The observer monitoring module performs OCR recognition on the CEF browser module page to determine whether the page is loaded abnormally.
[0098] Step 4: The observer monitoring module collects the information related to the above steps and reports it to the server.
[0099] Step 5: The server performs big data cloud computing on the reports to monitor and warn of the health status of the page.
[0100] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or by hardware. Those skilled in the art can understand that all or part of the processes in the above embodiment methods can be completed by instructing the relevant hardware through a computer program.
[0101] A fourth aspect of the embodiments of the present invention further provides a computer-readable storage medium. Figure 7 A schematic diagram of a computer-readable storage medium for a method for real-time location of CEF page anomalies provided according to an embodiment of the present invention. Figure 7 As shown, the computer-readable storage medium 2000 stores a computer program instruction 2001, which can be executed by a processor. When the computer program instruction 2001 is executed, the method of any one of the above embodiments is implemented, that is, the method of locating CEF page exceptions in real time in the above method embodiment includes the following steps:
[0102] Step 1: Log in with an EC account to start the PV process. The PV process starts the observer monitoring module, CEF browser module, and reporting module.
[0103] Step 2: EC business triggers the notification of PV process to open the page, and CEF browser module obtains the current loading status of its own page;
[0104] (1) In the loading state, enter the next round of attempts
[0105] (2) Get the error code returned by CEF when loading fails
[0106] (3) The page elements are obtained after loading successfully, and the server or page abnormality is determined based on the page elements.
[0107] If the above is normal, proceed to step 3.
[0108] Step 3: The observer monitoring module performs OCR recognition on the CEF browser module page to detect abnormalities such as whether the page is blank or only displays the skeleton image.
[0109] Step 4: The observer monitoring module collects the information related to the above steps and reports it to the server.
[0110] Step 5: The server performs big data cloud computing on the reports to monitor and warn of the health status of the page.
[0111] It should be understood that, without conflict, all the embodiments, features and advantages described above for the method for real-time location of CEF page anomalies according to the present invention are also applicable to the system and storage medium for real-time location of CEF page anomalies according to the present invention.
[0112] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0113] Finally, it should be noted that the computer-readable storage medium (e.g., memory) herein may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. As an example and not by way of limitation, a nonvolatile memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. A volatile memory may include a random access memory (RAM), which may act as an external cache memory. As an example and not by way of limitation, RAM may be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
[0114] The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein may be implemented or executed using the following components designed to perform the functions herein: a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and / or any other such configuration.
[0115] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0116] It should be understood that, as used herein, the singular form "a" or "an" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the items listed in association. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments.
[0117] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for real-time location of CEF page anomalies, characterized in that: The steps include: Step 1: Start the PV process and add the observer monitoring module, CEF browser module and reporting module to the PV process; Step 2: When the EC service triggers the PV process to open the page, the CEF browser module obtains the page loading status. If the loading is successful, the page elements are obtained for analysis. If the loading fails, the error code is obtained. Step 3: The observer monitoring module performs OCR recognition on the CEF browser page to determine whether there is any abnormality on the page; Step 4: The observer monitoring module collects information and reports it to the server, which analyzes the reported information, performs monitoring and early warning; When the EC service triggers the PV process to open a page, each EC process starts a PV process, and the PV process is used to interact with the EC process and the encapsulated CEF browser module, and acts as an observer. The PV process also links to the server and reports, and the observer identity is responsible for detecting the status of the CEF browser to ensure that CEF works normally. The EC process is also used to send an open page instruction to the PV through inter-process communication, and the PV process calls the CEF interface to open the specified page. The PV process is also used to detect the health status of CEF in real time. If CEF is stuck or the module is abnormal, it will be restarted and reported. If the page is opened successfully, the PV process will call the interface to obtain the page elements to analyze whether the page is displayed normally. At the same time, the PV process uses OCR to detect whether the page is white or only displays the skeleton.
2. The method for real-time positioning of CEF page anomalies according to claim 1, characterized in that: After the EC account logs in, the PV process is started. When the CEF browser module obtains the page loading status, it includes: If the state is loading, it will enter the next round of attempts; Get the error code returned by CEF when loading fails; When loading is successful, get the page elements and judge the server or page abnormality through the page elements.
3. The method for real-time positioning of CEF page anomalies according to claim 2, characterized in that: The CEF browser module is a browser kernel used for page rendering. After receiving the page opening instruction, the CEF kernel returns the result to notify the PV process. The status of the CEF browser module includes loading, loading success, and loading failure. The CEF browser module is also used to obtain page elements. When the page is opened successfully, the PV process analyzes the obtained page elements to detect whether the page is displayed normally.
4. A system for real-time location of CEF page anomalies, characterized in that: Includes CEF browser module, OCR detection module, observer monitoring module, and reporting module; The CEF browser module is responsible for opening the page and returning the status code, and for providing an interface for external query page elements; The OCR detection module is responsible for detecting the opened pages, detecting page anomalies such as white screen and page displaying only skeleton image; wherein, when the EC service triggers the PV process to open the page, each EC process starts a PV process, and the PV process is used to interact with the EC process and the encapsulated CEF browser module, and acts as an observer role identity. The PV process simultaneously links to the server and reports, wherein the observer identity is responsible for detecting the status of the CEF browser to ensure that CEF works normally; the EC process is also used to send an open page instruction to the PV through inter-process communication, and the PV process calls the CEF interface to open the specified page; the PV process is also used to detect the health status of the CEF in real time, and restarts and reports if the CEF is stuck or the module is abnormal. If the page is opened successfully, the PV process calls the interface to obtain the page elements to analyze whether the page is displayed normally. At the same time, the PV process uses OCR to detect whether the page is white or only displays the skeleton. The observer monitoring module is used to monitor whether the CEF browser module is abnormal and is responsible for information collection and reporting; The reporting module is responsible for performing big data analysis on the reports, generating reports and issuing warnings.
5. The system for real-time location of CEF page anomalies according to claim 4, characterized in that: The system for real-time positioning of CEF page anomalies also includes a server end, which is used to receive reported information. The server end is connected to an analysis module, which is used to analyze, monitor and warn the reported information.
6. A computer device, characterized in that: The computer device includes multiple computer devices, each of which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer device is characterized in that the processors of the multiple computer devices jointly implement the steps of the method for real-time locating CEF page exceptions as described in any one of claims 1 to 3 when executing the computer program.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program stored in the storage medium implements the steps of the method for locating CEF page exceptions in real time as described in any one of claims 1 to 3 when executed by a processor.
Citation Information
Patent Citations
Method and device for monitoring page element
CN110619102A
Web page availability monitoring method and device, medium and electronic equipment
CN112417347A
Page detection method and device, equipment and medium
CN114820484A