CN109815083B - Application crash monitoring method and device, electronic equipment and medium - Google Patents

Application crash monitoring method and device, electronic equipment and medium Download PDF

Info

Publication number
CN109815083B
CN109815083B CN201811575161.8A CN201811575161A CN109815083B CN 109815083 B CN109815083 B CN 109815083B CN 201811575161 A CN201811575161 A CN 201811575161A CN 109815083 B CN109815083 B CN 109815083B
Authority
CN
China
Prior art keywords
target
information
crash
application
request
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.)
Active
Application number
CN201811575161.8A
Other languages
Chinese (zh)
Other versions
CN109815083A (en
Inventor
叶涛
何颖
王燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruiting Network Technology Shanghai Co ltd
Original Assignee
Ruiting Network Technology Shanghai Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ruiting Network Technology Shanghai Co ltd filed Critical Ruiting Network Technology Shanghai Co ltd
Priority to CN201811575161.8A priority Critical patent/CN109815083B/en
Publication of CN109815083A publication Critical patent/CN109815083A/en
Application granted granted Critical
Publication of CN109815083B publication Critical patent/CN109815083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a device for monitoring application collapse, electronic equipment and a medium. The method comprises the following steps: the method comprises the steps of constructing an asynchronous loading request corresponding to crash information in a target site, accessing the target site according to the asynchronous loading request, and crawling target crash information of a target application, wherein the asynchronous loading request carries description information of the target application, and monitoring operation on crash conditions of the target application is executed based on the target crash information, so that real-time automatic monitoring on the crash conditions of the target application is realized, labor cost and time cost are saved, the problem that large-area crash conditions are not found timely is avoided, and instantaneity and efficiency of monitoring application crash are improved.

Description

Application crash monitoring method and device, electronic equipment and medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for monitoring application crash, an electronic device, and a computer-readable storage medium.
Background
With the development of smart phones, millions of applications are produced, and besides the design and functions of the applications, the performance problem of the applications also directly affects whether the applications can enter mobile terminals of people.
At present, except for a small number of companies in the industry to develop a crash (crash) monitoring platform, most companies rely on a third-party monitoring platform, and the third-party monitoring platform is manually used for checking applied crash information in real time, so that the labor cost is high, and the large-area crash condition generated by application is difficult to find in time.
Disclosure of Invention
In view of the above problems, a method, an apparatus, an electronic device, and a computer-readable storage medium for monitoring application crash are provided to solve the problems that manual checking of the crash situation of an application results in high labor cost, and it is difficult to find a large-area crash situation of the application in time.
According to an aspect of the present invention, there is provided a method for monitoring application crash, including:
constructing an asynchronous loading request corresponding to the crash information in the target site;
accessing the target site according to the asynchronous loading request, and crawling target crash information of a target application, wherein the asynchronous loading request carries description information of the target application;
and executing monitoring operation on the crash condition of the target application based on the target crash information.
Optionally, the asynchronous loading request further carries user permission information, so that the target site provides the target crash information, and before the target site is accessed according to the asynchronous loading request and the target crash information of the target application is crawled, the method further includes:
searching user authority information correspondingly stored in the target site;
if the user permission information cannot be found, initiating a user verification request to the target site;
and receiving the user authority information returned by the target site.
Optionally, the asynchronous loading request further carries a preset duration, and the crawling of the target crash information of the target application includes:
crawling target collapse information of the preset duration before the current time at set time intervals;
after crawling target collapse information of a target application, the method further comprises:
and storing the target breakdown information into a time sequence database.
Optionally, the performing, based on the target crash information, a monitoring operation of the crash condition of the target application includes:
acquiring the target crash information and a corresponding timestamp from the time sequence database;
and generating a display chart of the crash situation of the target application according to the target crash information and the corresponding timestamp.
Optionally, before the generating a display chart of the crash situation of the target application according to the target crash information and the corresponding timestamp, the method further includes:
and processing a plurality of pieces of target crash information with the same timestamp, and determining display data for generating the display chart.
Optionally, the target crash information includes a number of crashes, and the performing, based on the target crash information, a monitoring operation of the crash situation of the target application includes:
judging that the collapse times exceed a preset threshold value;
and reminding the crash situation of the target application.
According to another aspect of the present invention, there is provided an application crash monitoring apparatus, including:
the request construction module is used for constructing an asynchronous loading request corresponding to the crash information in the target site;
the information crawling module is used for accessing the target site according to the asynchronous loading request and crawling target crash information of a target application, wherein the asynchronous loading request carries description information of the target application;
and the operation execution module is used for executing monitoring operation on the crash condition of the target application based on the target crash information.
Optionally, the asynchronous loading request further carries user permission information, so that the target site provides the target crash information, and the apparatus further includes:
the information searching module is used for searching user permission information correspondingly stored in the target site before the target site is accessed according to the asynchronous loading request and target collapse information of a target application is crawled;
the request initiating module is used for initiating a user verification request to the target site if the user permission information cannot be found;
and the information receiving module is used for receiving the user authority information returned by the target site.
Optionally, the asynchronous loading request further carries a preset duration, and the information crawling module includes:
the information crawling submodule is used for crawling the target collapse information of the preset duration before the current time at set time intervals;
the device further comprises:
and the writing module is used for storing the target crash information into a time sequence database after the target crash information of the crawling target application is obtained.
Optionally, the operation execution module includes:
the acquisition submodule is used for acquiring the target crash information and the corresponding timestamp from the time sequence database;
and the chart generation submodule is used for generating a display chart of the collapse condition of the target application according to the target collapse information and the corresponding timestamp.
Optionally, the apparatus further comprises:
and the data determining module is used for processing a plurality of pieces of target crash information with the same timestamp before generating the display chart of the crash situation of the target application according to the target crash information and the corresponding timestamp, and determining display data for generating the display chart.
Optionally, the target crash information includes a number of crashes, and the operation execution module includes:
the judging submodule is used for judging that the number of times of collapse exceeds a preset threshold;
and the reminding sub-module is used for reminding the crash situation of the target application.
In accordance with another aspect of the present invention, there is provided an electronic apparatus including: the monitoring method comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the monitoring method for the application crash is realized.
According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the above-mentioned monitoring method for application crash.
In summary, according to the embodiments of the present invention, the target crash information of the target application is crawled by constructing the asynchronous loading request corresponding to the crash information in the target site, accessing the target site according to the asynchronous loading request, where the asynchronous loading request carries the description information of the target application, and performing the monitoring operation on the crash situation of the target application based on the target crash information, so as to implement real-time automatic monitoring on the crash situation of the target application, save labor cost and time cost, avoid the problem that the crash situation of a large area is not found in time, and improve the real-time performance and efficiency of monitoring the crash of the application.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a method for monitoring application crashes according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for monitoring application crashes according to a second embodiment of the present invention;
FIG. 3 is a block diagram of a monitoring apparatus for application crash according to a third embodiment of the present invention;
fig. 4 shows a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Referring to fig. 1, a flowchart of a monitoring method for application crash in an embodiment of the present invention is shown, which specifically includes:
step 101, an asynchronous loading request corresponding to the crash information in the target site is constructed.
The application crash includes flash back, no response, or any other suitable situation, which is not limited in this embodiment of the present invention. The crash information includes the number of times of crash (crash) of an application, the number of devices affected by the crash, the type of crash, or any other suitable information related to the crash of the application, which is not limited in this embodiment of the present invention. The target site can monitor the collapse of various applications and provide collapse information on the page of the target site, but an externally-disclosed interface of the collapse information is not provided, and only an application developer can directly check the collapse information of the applications on the page.
The crash information is asynchronously loaded into the pages of the target site. An Asynchronous load request refers to a request that can update a portion of a web page without reloading the entire web page, such as an ajax (Asynchronous Javascript And XML) request. The request link of asynchronous loading can be obtained by a browser package capture, then a third-party tool, for example, Postman, is utilized to construct corresponding request information, and the asynchronous loading request is simulated.
And 102, accessing the target site according to the asynchronous loading request, and crawling target crash information of a target application, wherein the asynchronous loading request carries description information of the target application.
And the crawler program accesses the target site according to the asynchronous loading request corresponding to the crash information, and the target site can return response data of the asynchronous loading request to the crawler program. In order to achieve the purpose of monitoring the crash information of the target application, the asynchronous loading request carries description information of the target application, where the description information includes a packet name, a version identifier, and the like of the target application, or any other applicable description information, and this is not limited in the embodiment of the present invention. The target site may determine that the response data to be returned is crash information of the target application according to the description information of the target application, and record the crash information as target crash information.
In this embodiment of the present invention, the target site is accessed according to the asynchronous loading request, and the implementation manner of crawling the target crash information of the target application may include multiple manners, for example, the asynchronous loading request further carries a preset time length, the target crash information of the preset time length before the current time is crawled from the target site at set intervals, and after the target crash information of the target application is crawled, the target crash information is stored in the time sequence database, which may specifically include any applicable crawling manner.
In specific implementation, when the target crash information is crawled, the response data returned by the target site may have other irrelevant information besides the required target crash information, and the response data needs to be filtered to obtain the finally available target crash information.
And 103, executing monitoring operation on the crash condition of the target application based on the target crash information.
In this embodiment of the present invention, based on the target crash information, the implementation manner of performing the monitoring operation on the crash situation of the target application may include multiple manners, for example, the target crash information and the corresponding timestamp are obtained from the time sequence database, a display chart of the crash situation of the target application is generated according to the target crash information and the corresponding timestamp, and the crash situation of the target application may also be prompted when it is determined that the number of times of crash exceeds a preset threshold, or any other suitable monitoring operation is performed.
For example, the crawled collapse times of the target application are written into a time sequence database infiluxdb (an open source time sequence database) in real time, a monitoring platform Grafana (a cross-platform open source measurement analysis and visualization tool) is configured, a data source of the monitoring platform Grafana is bound with the time sequence database infiluxdb, a Dashboard is added to the monitoring platform Grafana, and the collapse times are graphically displayed.
In summary, according to the embodiments of the present invention, the target crash information of the target application is crawled by constructing the asynchronous loading request corresponding to the crash information in the target site, accessing the target site according to the asynchronous loading request, where the asynchronous loading request carries the description information of the target application, and performing the monitoring operation on the crash situation of the target application based on the target crash information, so as to implement real-time automatic monitoring on the crash situation of the target application, save labor cost and time cost, avoid the problem that the crash situation of a large area is not found in time, and improve the real-time performance and efficiency of monitoring the crash of the application.
Example two
Referring to fig. 2, a flowchart of a monitoring method for application crash in the second embodiment of the present invention is shown, which specifically includes:
step 201, an asynchronous loading request corresponding to the crash information in the target site is constructed.
In the embodiment of the present invention, the specific implementation manner of this step may refer to the description in the foregoing embodiment, and details are not described herein.
Step 202, searching user authority information correspondingly stored in the target site.
In the embodiment of the invention, the target site is accessed according to the asynchronous loading request, and when the target collapse information of the target application is crawled, the target site returns the target collapse information only when the client is verified in the user login state, so that the asynchronous loading request is required to carry the user permission information.
The user permission information refers to permission information that is issued to the client by the target site after the successful login of the user is verified, for example, a token (token) that is issued to the client by the target site after the account name and the password of the user are verified to be correct. The user right information is stored in correspondence with the target site, and is usually stored in cookie information of the target site.
In the embodiment of the invention, before accessing the target site according to the asynchronous loading request and crawling the target crash information, whether user permission information corresponding to the target site exists or not is searched, if the user permission information is searched, the asynchronous loading request carries the user permission information when accessing the target site according to the asynchronous loading request, so that the target site provides the target crash information.
Step 203, if the user permission information cannot be found, initiating a user verification request to the target site.
In the embodiment of the invention, if the user permission information cannot be found, a user verification request is initiated to the target site, for example, a user login request is sent to the target site, wherein the user login request comprises an account name and a password of a user, so that the user can be verified by the target site.
And step 204, receiving the user authority information returned by the target site.
In the embodiment of the invention, after the target site is successfully verified, the user authority information is returned, the user authority information is received and stored, and when the target site is accessed according to the asynchronous loading request, the asynchronous loading request carries the user authority information.
Step 205, accessing the target site according to the asynchronous loading request, and crawling the target crash information of the preset duration before the current time at set time intervals.
In the embodiment of the invention, the asynchronous loading request carries the description information, the user permission information and the preset time length of the target application, the target site is accessed according to the asynchronous loading request at set time intervals, and the target crash information with the preset time length before the current time is crawled. The preset time can be set according to actual needs, and the embodiment of the invention limits the deficiency.
For example, data is crawled once every one minute, data within ten minutes (preset duration) before the current time is crawled each time, the crawled target collapse information is provided with a timestamp, and if the timestamps of the two crawled target collapse information are the same, the two crawled target collapse information are both kept.
Step 206, storing the target crash information into a time sequence database.
In the embodiment of the invention, the time sequence database is called a time sequence database. The time series database is mainly used for processing data with time tags (which are changed in time sequence, i.e., time-sequenced), and the data with time tags is also called time series data. And storing the crawled target collapse information into a time sequence database.
For example, after crawling the target crash information each time, writing the target crash information into a time sequence database infiluxdb, and if the data crawled twice have the target crash information with a timestamp of 12:01:00, all the data are written into the time sequence database infiluxdb, because the latest data in the target site has a delay, when the data at the time point is crawled again every other minute after the data at the time point is crawled last, the data at the same time point may be updated, and therefore the target crash information with the same timestamp needs to be written into the time sequence database.
Step 207, obtaining the target crash information and the corresponding timestamp from the time sequence database.
And 208, generating a display chart of the crash situation of the target application according to the target crash information and the corresponding timestamp.
In the embodiment of the invention, a display chart of the crash situation of the target application is generated according to the target crash information and the corresponding timestamp, for example, a monitoring time period is selected, a bar chart, a curve chart and the like of the target crash information such as the number of times of crash in the time period or the number of devices affected by the crash are generated, and the latest data is updated in real time, so that the latest crash situation can be checked in real time.
In this embodiment of the present invention, preferably, before generating the display chart of the crash situation of the target application according to the target crash information and the corresponding timestamp, the method further includes: and processing a plurality of pieces of target crash information with the same timestamp, and determining display data for generating the display chart.
Because a plurality of pieces of target crash information with the same timestamp are crawled at different times, data may have differences, in order to reflect the crash situation more accurately, the target crash information is processed, and the processed data is used as display data for generating a display chart. For example, the data mode for the period is set in the DashBoard of the monitoring platform Grafana: and taking a median or an average and the like, and taking the median or the average according to data such as the equipment number which is set to influence the collapse times or the collapse, and taking the median or the average as display data for generating a display chart so as to improve the accuracy of the monitored collapse condition.
Step 209, determining that the number of crashes exceeds a preset threshold.
In the embodiment of the invention, the target collapse information comprises the collapse times, and in order to remind workers in time, a preset threshold value is set according to actual needs. It is determined whether the number of times of collapse exceeds a preset threshold, and step 210 is executed when the number of times of collapse exceeds the preset threshold.
And step 210, reminding the crash situation of the target application.
In the embodiment of the present invention, when it is determined that the number of times of collapse exceeds the preset threshold, a prompt is given to the collapse condition of the target application, for example, a prompt mail is sent, and the mail content is the collapse condition of the target application, that is, various pieces of target collapse information when the number of times of collapse exceeds the preset threshold, or a generated display chart. Any suitable reminding manner may be specifically included, and the embodiment of the present invention is not limited thereto.
In summary, according to the embodiment of the present invention, an asynchronous loading request corresponding to crash information in a target site is constructed, the target site is accessed according to the asynchronous loading request, and target crash information of a target application is crawled, where the asynchronous loading request carries description information of the target application, the target crash information and a corresponding timestamp are obtained from the timing database, a display diagram of a crash situation of the target application is generated according to the target crash information and the corresponding timestamp, it is determined that the number of times of crash exceeds a preset threshold, and the crash situation of the target application is prompted, so that real-time automatic monitoring of the crash situation of the target application is achieved, labor cost and time cost are saved, a problem that a large-area crash situation is not found in time is avoided, and real-time performance and efficiency of monitoring the crash of the application are improved.
Further, by searching the user permission information correspondingly stored in the target site, if the user permission information cannot be searched, a user authentication request is initiated to the target site, and the user permission information returned by the target site is received, so that the crawler can acquire the permission of the target site, the target crash information is successfully crawled, and the problem that the target site can acquire data only when the user is limited to login is solved.
Furthermore, the display data used for generating the display chart is determined by processing the target crash information with the same timestamp, so that the accuracy of the monitored crash condition is improved.
EXAMPLE III
Referring to fig. 3, a block diagram of a monitoring apparatus for application crash in a third embodiment of the present invention is shown, which may specifically include:
a request construction module 301, configured to construct an asynchronous loading request corresponding to the crash information in the target site;
an information crawling module 302, configured to access the target site according to the asynchronous loading request, and crawl target crash information of a target application, where the asynchronous loading request carries description information of the target application;
an operation executing module 303, configured to execute a monitoring operation on a crash condition of the target application based on the target crash information.
In this embodiment of the present invention, optionally, the asynchronous loading request further carries user permission information, so that the target site provides the target crash information, and the apparatus further includes:
the information searching module is used for searching user permission information correspondingly stored in the target site before the target site is accessed according to the asynchronous loading request and target collapse information of a target application is crawled;
the request initiating module is used for initiating a user verification request to the target site if the user permission information cannot be found;
and the information receiving module is used for receiving the user authority information returned by the target site.
In this embodiment of the present invention, optionally, the asynchronous loading request further carries a preset duration, and the information crawling module includes:
the information crawling submodule is used for crawling the target collapse information of the preset duration before the current time at set time intervals;
the device further comprises:
and the writing module is used for storing the target crash information into a time sequence database after the target crash information of the crawling target application is obtained.
In this embodiment of the present invention, optionally, the operation execution module includes:
the acquisition submodule is used for acquiring the target crash information and the corresponding timestamp from the time sequence database;
and the chart generation submodule is used for generating a display chart of the collapse condition of the target application according to the target collapse information and the corresponding timestamp.
In this embodiment of the present invention, optionally, the apparatus further includes:
and the data determining module is used for processing a plurality of pieces of target crash information with the same timestamp before generating the display chart of the crash situation of the target application according to the target crash information and the corresponding timestamp, and determining display data for generating the display chart.
In this embodiment of the present invention, optionally, the target crash information includes a number of crashes, and the operation execution module includes:
the judging submodule is used for judging that the number of times of collapse exceeds a preset threshold;
and the reminding sub-module is used for reminding the crash situation of the target application.
In summary, according to the embodiments of the present invention, the target crash information of the target application is crawled by constructing the asynchronous loading request corresponding to the crash information in the target site, accessing the target site according to the asynchronous loading request, where the asynchronous loading request carries the description information of the target application, and performing the monitoring operation on the crash situation of the target application based on the target crash information, so as to implement real-time automatic monitoring on the crash situation of the target application, save labor cost and time cost, avoid the problem that the crash situation of a large area is not found in time, and improve the real-time performance and efficiency of monitoring the crash of the application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 4, the electronic device 800 may include one or more processors 801 and one or more memories 802 coupled to the processors 801. The electronic device 800 may also include an input interface 803 and an output interface 804 for communicating with another apparatus or system. Program code executed by the CPU of the processor 801 may be stored in the memory 802.
The processor 801 in the electronic device 800 calls the program code stored in the memory 802 to execute the monitoring method of application crash in the above embodiment.
The processor is the control center of the server and provides a processing device for executing instructions, performing interrupt operations, providing timing functions and various other functions. The processor may be a single core (single CPU) processor or a multi-core (multi-CPU) processor. Unless otherwise stated, a component such as a processor or a memory described as performing a task may be implemented as a general component, which is temporarily used to perform the task at a given time, or as a specific component specially manufactured to perform the task. The term "processor" as used herein refers to one or more devices, circuits and/or processing cores that process data, such as computer program instructions.
The above elements in the above server may be connected to each other by a bus, such as one of a data bus, an address bus, a control bus, an expansion bus, and a local bus, or any combination thereof.
There is also provided, in accordance with an embodiment of the present invention, a computer-readable storage medium having a computer program stored thereon, where the storage medium may be a Read-Only Memory (ROM) or a Read-write medium, such as a hard disk or a flash Memory. The computer program, when executed by a processor, implements the application crash monitoring method of the foregoing embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the device, the electronic device and the medium for monitoring application crash provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A method for monitoring application crashes, comprising:
constructing an asynchronous loading request corresponding to the crash information in the target site;
accessing the target site according to the asynchronous loading request, and crawling target crash information of a target application, wherein the asynchronous loading request carries description information of the target application, and the description information comprises a packet name of the target application;
based on the target crash information, executing monitoring operation on the crash condition of the target application;
the constructing of the asynchronous loading request corresponding to the crash information in the target site includes: and acquiring the request link of asynchronous loading through a browser packet capturing, constructing corresponding request information, and simulating the asynchronous loading request.
2. The method of claim 1, wherein the asynchronous load request further carries user permission information, so that the target site provides the target crash information, and before the target site is accessed according to the asynchronous load request and target crash information of a target application is crawled, the method further comprises:
searching user authority information correspondingly stored in the target site;
if the user permission information cannot be found, initiating a user verification request to the target site;
and receiving the user authority information returned by the target site.
3. The method of claim 1, wherein the asynchronous load request further carries a preset duration, and wherein crawling the target crash information of the target application comprises:
crawling target collapse information of the preset duration before the current time at set time intervals;
after crawling target collapse information of a target application, the method further comprises:
and storing the target breakdown information into a time sequence database.
4. The method of claim 3, wherein performing the monitoring operation for the crash condition of the target application based on the target crash information comprises:
acquiring the target crash information and a corresponding timestamp from the time sequence database;
and generating a display chart of the crash situation of the target application according to the target crash information and the corresponding timestamp.
5. The method of claim 4, wherein prior to the generating a presentation graph of crash conditions for the target application based on the target crash information and corresponding timestamps, the method further comprises:
and processing a plurality of pieces of target crash information with the same timestamp, and determining display data for generating the display chart.
6. The method of claim 1, wherein the target crash information comprises a number of crashes, and wherein performing the monitoring operation for the crash condition of the target application based on the target crash information comprises:
judging that the collapse times exceed a preset threshold value;
and reminding the crash situation of the target application.
7. An apparatus for monitoring application crashes, comprising:
the request construction module is used for constructing an asynchronous loading request corresponding to the crash information in the target site;
the information crawling module is used for accessing the target site according to the asynchronous loading request and crawling target crash information of a target application, wherein the asynchronous loading request carries description information of the target application, and the description information comprises a packet name of the target application;
the operation execution module is used for executing monitoring operation on the crash condition of the target application based on the target crash information;
the request construction module is specifically used for acquiring the request link of asynchronous loading through packet capturing of the browser, constructing corresponding request information and simulating the asynchronous loading request.
8. The apparatus of claim 7, wherein the asynchronous load request further carries user permission information to enable the target site to provide the target crash information, the apparatus further comprising:
the information searching module is used for searching user permission information correspondingly stored in the target site before the target site is accessed according to the asynchronous loading request and target collapse information of a target application is crawled;
the request initiating module is used for initiating a user verification request to the target site if the user permission information cannot be found;
and the information receiving module is used for receiving the user authority information returned by the target site.
9. The apparatus of claim 7, wherein the asynchronous load request further carries a preset duration, and wherein the information crawling module comprises:
the information crawling submodule is used for crawling the target collapse information of the preset duration before the current time at set time intervals;
the device further comprises:
and the writing module is used for storing the target crash information into a time sequence database after the target crash information of the crawling target application is obtained.
10. The apparatus of claim 9, wherein the operation execution module comprises:
the acquisition submodule is used for acquiring the target crash information and the corresponding timestamp from the time sequence database;
and the chart generation submodule is used for generating a display chart of the collapse condition of the target application according to the target collapse information and the corresponding timestamp.
11. The apparatus of claim 10, further comprising:
and the data determining module is used for processing a plurality of pieces of target crash information with the same timestamp before generating the display chart of the crash situation of the target application according to the target crash information and the corresponding timestamp, and determining display data for generating the display chart.
12. The apparatus of claim 7, wherein the target crash information comprises a number of crashes, and wherein the operation execution module comprises:
the judging submodule is used for judging that the number of times of collapse exceeds a preset threshold;
and the reminding sub-module is used for reminding the crash situation of the target application.
13. An electronic device, comprising: processor, memory and computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing a method of monitoring for an application crash as claimed in any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out a method of monitoring an application crash as claimed in any one of claims 1 to 6.
CN201811575161.8A 2018-12-21 2018-12-21 Application crash monitoring method and device, electronic equipment and medium Active CN109815083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811575161.8A CN109815083B (en) 2018-12-21 2018-12-21 Application crash monitoring method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811575161.8A CN109815083B (en) 2018-12-21 2018-12-21 Application crash monitoring method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN109815083A CN109815083A (en) 2019-05-28
CN109815083B true CN109815083B (en) 2021-06-04

Family

ID=66602312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811575161.8A Active CN109815083B (en) 2018-12-21 2018-12-21 Application crash monitoring method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN109815083B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092826A (en) * 2017-03-24 2017-08-25 北京国舜科技股份有限公司 Web page contents real-time safety monitoring method
CN108563526A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 A kind of iOS interim cards monitoring strategies

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810086B (en) * 2012-11-08 2017-12-22 腾讯科技(深圳)有限公司 Make processing method, the apparatus and system of the network address of browser collapse
US9348671B1 (en) * 2015-07-23 2016-05-24 Google Inc. Monitoring application loading
CN105740419A (en) * 2016-01-29 2016-07-06 广州酷狗计算机科技有限公司 Method and apparatus for acquiring dynamically loaded content in webpage
CN106844774A (en) * 2017-03-01 2017-06-13 苏州朗动网络科技有限公司 A kind of crawler system and grasping means based on C# crawl internet public datas

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092826A (en) * 2017-03-24 2017-08-25 北京国舜科技股份有限公司 Web page contents real-time safety monitoring method
CN108563526A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 A kind of iOS interim cards monitoring strategies

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
爬取通过ajax动态加载的页面(实时监控华尔街见闻资讯与快讯);lzw2016;《https://blog.csdn.net/lzw2016/article/details/79327340》;20180215;第1页至第6页 *

Also Published As

Publication number Publication date
CN109815083A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109062809B (en) Online test case generation method and device and electronic equipment
CN105446874B (en) A kind of detection method and device of resource distribution file
US8306805B2 (en) Scenario generation method and scenario generation apparatus
CN106294094A (en) The method of testing of game server, client, server and system
CN110782374A (en) Electronic evidence obtaining method and system based on block chain
CN107908553B (en) Association testing method, application server and computer readable storage medium
CN110909229A (en) Webpage data acquisition and storage system based on simulated browser access
KR102242219B1 (en) Method and device for preventing the server from being attacked
CN112052070A (en) Application containerization evaluation method and device, electronic equipment and storage medium
CN110011964B (en) Webpage environment detection method and device
CN111522728A (en) Method for generating automatic test case, electronic device and readable storage medium
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
CN104375935A (en) Method and device for testing SQL injection attack
CN109299015B (en) Software testing method, device and system
CN109815083B (en) Application crash monitoring method and device, electronic equipment and medium
CN109634836A (en) Test data packaging method, device, equipment and storage medium
CN110874475A (en) Vulnerability mining method, vulnerability mining platform and computer readable storage medium
CN107957939B (en) Webpage interaction interface testing method and system
EP3014562A1 (en) Simulating sensors
CN107682224B (en) Method and device for testing network WEB page
CN113448862A (en) Software version testing method and device and computer equipment
CN108628750B (en) Test code processing method and device
CN110661678B (en) Abnormity monitoring method and device
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN105787615A (en) Assessment method and device

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