CN109274548A - A kind of method for monitoring application program, computer readable storage medium and terminal device - Google Patents

A kind of method for monitoring application program, computer readable storage medium and terminal device Download PDF

Info

Publication number
CN109274548A
CN109274548A CN201810962895.5A CN201810962895A CN109274548A CN 109274548 A CN109274548 A CN 109274548A CN 201810962895 A CN201810962895 A CN 201810962895A CN 109274548 A CN109274548 A CN 109274548A
Authority
CN
China
Prior art keywords
storage
memory space
monitoring data
data
storage region
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.)
Pending
Application number
CN201810962895.5A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201810962895.5A priority Critical patent/CN109274548A/en
Publication of CN109274548A publication Critical patent/CN109274548A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The invention belongs to field of computer technology more particularly to a kind of method for monitoring application program, computer readable storage medium and terminal device.The monitoring data of specified application in the method acquisition terminal equipment;Whether the data transmission link detected between the application program and preset server is normal;If there is exception in the data transmission link between the application program and the server, by preset storage region of the supervising data storage into the terminal device;Detect whether the data transmission link between the application program and the server restores normal;If the data transmission link between the application program and the server restores normal, by the monitoring data transmission stored in the storage region into the server.Through the invention, the loss of monitoring data is effectively prevented, provides sufficient data basis for the subsequent performance evaluation to application program and optimization.

Description

A kind of method for monitoring application program, computer readable storage medium and terminal device
Technical field
The invention belongs to field of computer technology more particularly to a kind of method for monitoring application program, computer-readable storage Medium and terminal device.
Background technique
In order to be better understood by the behavior pattern of application program in actual operation, generally requires server and set in terminal The application program of standby upper operation is monitored online in real time, still, application program often carry out in disconnection mode using, For example, when user is in the usage scenario that no WIFI and mobile network cover, the operating habit of user, the exception occurred in operation The data such as information can not all be arrived by server real-time monitoring, cause the loss of these data, be unfavorable for the performance to application program Analysis and optimization.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method for monitoring application program, computer readable storage medium and Terminal device can not be caused with solving the data generated when application program uses in disconnection mode by server real-time monitoring The problem of loss of data.
The first aspect of the embodiment of the present invention provides a kind of method for monitoring application program, may include:
The monitoring data of specified application in acquisition terminal equipment;
Whether the data transmission link detected between the application program and preset server is normal;
If there is exception in the data transmission link between the application program and the server, by the monitoring data Store the preset storage region into the terminal device;
Detect whether the data transmission link between the application program and the server restores normal;
If the data transmission link between the application program and the server restores normal, by the storage region The monitoring data transmission of middle storage is into the server.
The second aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer-readable instruction, and the computer-readable instruction realizes following steps when being executed by processor:
The monitoring data of specified application in acquisition terminal equipment;
Whether the data transmission link detected between the application program and preset server is normal;
If there is exception in the data transmission link between the application program and the server, by the monitoring data Store the preset storage region into the terminal device;
Detect whether the data transmission link between the application program and the server restores normal;
If the data transmission link between the application program and the server restores normal, by the storage region The monitoring data transmission of middle storage is into the server.
The third aspect of the embodiment of the present invention provides a kind of Application Monitoring terminal device, including memory, processing Device and storage in the memory and the computer-readable instruction that can run on the processor, the processor execution Following steps are realized when the computer-readable instruction:
The monitoring data of specified application in acquisition terminal equipment;
Whether the data transmission link detected between the application program and preset server is normal;
If there is exception in the data transmission link between the application program and the server, by the monitoring data Store the preset storage region into the terminal device;
Detect whether the data transmission link between the application program and the server restores normal;
If the data transmission link between the application program and the server restores normal, by the storage region The monitoring data transmission of middle storage is into the server.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention is in advance in terminal device In be provided with storage region for storing monitoring data, in the operational process of application program, moment acquisition applications program Monitoring data can carry out real-time monitoring data transmission if application program is online, and when application program is in When data transmission link between off-line state namely application program and server occurs abnormal, then monitoring data can be cached Into the storage region, cached until the data transmission link between application program and server restores normal, then by these Monitoring data transmission in the storage region is to server, is subsequent correspondence to effectively prevent the loss of monitoring data Sufficient data basis is provided with the performance evaluation of program and optimization.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of method for monitoring application program in the embodiment of the present invention;
Fig. 2 is the whether normal exemplary flow of data transmission link detected between application program and preset server Figure;
Fig. 3 is the signal for storing the list structure of monitoring data;
Fig. 4 is a kind of one embodiment structure chart of Application Monitoring device in the embodiment of the present invention;
Fig. 5 is a kind of schematic block diagram of Application Monitoring terminal device in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Fig. 1, a kind of one embodiment of method for monitoring application program may include: in the embodiment of the present invention
Step S101, in acquisition terminal equipment specified application monitoring data.
In this embodiment, the monitoring data collected can include but is not limited to several data types below:
Data type 1: page exception data.Page exception usually influences whether the displaying of the page, such as white screen, click do not have Situations such as reaction, can directly result in the page and not be available.
Data type 2: interface requests status data.The data outer layer that interface requests are returned all can include a status word Section, this field enumerate the information such as this interface requests whether successful, failure, or exception and also can if interface is problematic The page is caused not to be available indirectly or the problems such as data exception.
Data type 3: user's operation data.In the case where having abnormal occur, operation of the user on the page is understood Journey is remarkably contributing to reproduction and investigation to problem, so the data also have great role.
Data type 4: key node page data.The record of the key node page, indicates which user has already been through A little node pages, can recorde the substantially route that user flows through the page, can also be regarded as the big data of user, as user One important evidence of operation behavior analysis.
Step S102, whether the data transmission link detected between the application program and preset server is normal.
Specifically, step S102 may include step as shown in Figure 2:
Step S1021, it is sent by the data transmission link timing to the server according to preset detection cycle Preset detection data packet.
The detection cycle can be configured according to the actual situation, for example, can be set to 1 second, 2 seconds, 5 seconds or The other values of person.But it should be noted that the detection cycle is shorter, then testing result real-time is higher, but disappears to resource Consumption can be more, conversely, the detection cycle is longer, then testing result real-time is lower, but can be fewer to the consumption of resource, need The two is weighed as the case may be.
Step S1022, judge whether receive the clothes in preset waiting time after the detection data packet is sent The feedback information of business device.
The waiting time can be configured according to the actual situation, for example, can be set to 0.1 second, 0.2 second, 0.5 second or other values.
If receiving the feedback information of the server within the waiting time, S1023 is thened follow the steps, if described The feedback information for not receiving the server in waiting time, thens follow the steps S1024.
Step S1023, determine that the data transmission link is normal.
Step S1024, it is abnormal to determine that the data transmission link occurs.
In another kind in the specific implementation, if not receiving institute in preset waiting time after detection data packet transmission The feedback information of server is stated, T times can be repeated and continue to send detection data packet to the server, if T times does not receive It is abnormal just to determine that the data transmission link occurs for the feedback information of the server.Wherein, T is positive integer, can be according to reality Border situation is set to 2 times, 3 times, 5 times or other values.
If the data transmission link between the application program and the server is normal, will can directly collect The monitoring data is sent to the server.
If exception occurs in the data transmission link between the application program and the server, need to collect The monitoring data be locally stored, execute step S103 and its subsequent step at this time.
Step S103, the preset storage region by the supervising data storage into the terminal device.
If the data transmission link between the application program and the server always remains as in a longer period of time Abnormality may then accumulate down a large amount of monitoring data, lead to the spill-over of the storage region.
Following three kinds of different processing modes can be used in the present embodiment:
Mode one: directly being covered according to the time sequencing of supervising data storage, and the data stored afterwards directly override The data being written at first.
Specifically, the residue for obtaining memory space needed for storing the monitoring data and the storage region first is deposited Space is stored up, if memory space needed for storing the monitoring data is less than or equal to the residual memory space of the storage region, Then by the supervising data storage into the storage region;If memory space needed for storing the monitoring data is greater than described The residual memory space of storage region, then by the earliest history monitoring data of DelNum storage time for meeting following condition from It is deleted in the storage region, and after completing to the deletion of the history monitoring data, extremely by the supervising data storage In the storage region:
Wherein, DelNum is positive integer, and dn is for the history monitoring data according to storage time in the storage region The serial number being from morning to night arranged successively, 1≤dn≤DelNum, RemainSpace are the residual memory space of the storage region, StorageSpacednFor the dn articles occupied memory space of history monitoring data in the storage region, CurSpace is Memory space needed for storing the monitoring data.
Mode two: data cover is carried out according to data type subregion.
The storage region is divided into multiple storage subregions, each storage subregion is for storing different types of data Monitoring data, for example, entire storage region can be divided into 4 storage subregions herein, wherein storage subregion 1 use In memory page abnormal data, stores subregion 2 and be used for memory interface solicited status data, storage subregion 3 is used for storing Family operation data, storage subregion 4 is for storing key node page data.
It should be noted that storage subregion here is a virtual concept, it is not actual physical region, together One storage subregion can be one piece of complete physical storage areas, be also possible to discrete object in actual physical store Manage storage region.
When being stored, deposit corresponding with the data type of the monitoring data is chosen first in the storage region Subregion is stored up, the remaining storage for then obtaining memory space needed for storing the monitoring data and the storage subregion is empty Between, if memory space needed for storing the monitoring data is less than or equal to the residual memory space of the storage subregion, By the supervising data storage into the storage subregion;If memory space needed for storing the monitoring data is greater than described The residual memory space of subregion is stored, then the history monitoring data that DelNum storage time for meeting following condition is earliest It deletes from the storage subregion, and after completing to the deletion of the history monitoring data, the monitoring data is deposited Storage is into the storage subregion:
Wherein, DelNum is positive integer, dn be the history monitoring data in the storage subregion according to storing when Between the serial number that is from morning to night arranged successively, 1≤dn≤DelNum, k are the serial number of the storage subregion, 1≤k≤ SubSectorNum, SubSectorNum are the number of the storage subregion in the storage region, SubRemainSpacekFor The residual memory space of the storage subregion, StorageSpacek,dnFor the dn articles history prison in the storage subregion The occupied memory space of data is controlled, CurSpace is memory space needed for the storage monitoring data.
Mode two: data cover is carried out according to the priority of data type, it is low that the high data cover of priority falls priority Data.
Different priority different data types can be arranged in the present embodiment, for example, the number of highest priority According to for page exception data, be secondly interface requests status data, be again user's operation data, priority it is minimum be crucial Node page data.
Monitoring data is stored according to the form of chained list, and different data types has a corresponding chained list, Then settable four chained lists carry out data storage altogether, wherein storage chained list 1 is used for memory page abnormal data, and storage chained list 2 is used In memory interface solicited status data, chained list 3 is stored for storing user's operation data, storage chained list 4 is for storing crucial section Point page data.The characteristics of chained list is each data element therein other than storing the data of itself, and it is next that its is also stored The pointer of a data element, as shown in Figure 3.
When being stored, target chained list is chosen first in the storage region, the target chained list is and the prison The corresponding storage chained list of data type of data is controlled, memory space needed for storing the monitoring data and described is then obtained The residual memory space of storage region, if memory space needed for storing the monitoring data is less than or equal to the storage region Residual memory space, then the monitoring data is added in the target chained list;If storing needed for the monitoring data Memory space is greater than the residual memory space of the storage region, then it is minimum that preset priority is chosen in the storage region Storage chained list as replacement chained list, by the earliest history monitoring data of DelNum storage time for meeting following condition from institute It states and is deleted in replacement chained list, and after completing to the deletion of the history monitoring data, the monitoring data is added to institute It states in target chained list:
Wherein, DelNum is positive integer, and dn is for the history monitoring data according to storage time in the replacement chained list The serial number being from morning to night arranged successively, 1≤dn≤DelNum, l be it is described replacement chained list serial number, 1≤l≤ LinkedListNum, LinkedListNum are the number of the storage chained list in the storage region, and RemainSpace is described The residual memory space of storage region, StorageSpacel,dnFor the dn articles history monitoring data institute in the replacement chained list The memory space of occupancy, CurSpace are memory space needed for the storage monitoring data.
Step S104, whether the data transmission link detected between the application program and the server restores normal.
Detection process in step S104 is identical as the detection process in step S102, specifically can refer in step S102 It is described in detail, details are not described herein for the present embodiment.
If the data transmission link between the application program and the server is deposited still in abnormality described The storage to the monitoring data is still kept in storage area domain, if the data chain between the application program and the server Road restores normal, thens follow the steps S105.
Step S105, by the monitoring data transmission stored in the storage region into the server.
It, then can be by offline period after the data transmission link between the application program and the server restores normal The monitoring data of interior storage is gradually transmitted in the server, specifically, can successively be sent according to chronological order, It can successively be sent according to the priority sequence from high to low of data type.Every transmission one data will then be locally stored Data are deleted, and are used with reserving memory space for subsequent storage.
In conclusion the embodiment of the present invention is provided with the memory block for storing monitoring data in terminal device in advance Domain, in the operational process of application program, the monitoring data of moment acquisition applications program, if application program is online, Can then carry out real-time monitoring data transmission, and when application program be in off-line state namely application program and server it Between data transmission link when occurring abnormal, then monitoring data can be cached in the storage region, until application program and clothes Be engaged in device between data transmission link restore it is normal when, then by these be buffered in the monitoring data transmission in the storage region to clothes Business device provides abundance to effectively prevent the loss of monitoring data for the subsequent performance evaluation to application program and optimization Data basis.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to a kind of method for monitoring application program described in foregoing embodiments, Fig. 4 shows offer of the embodiment of the present invention A kind of Application Monitoring device one embodiment structure chart.
In the present embodiment, a kind of Application Monitoring device may include:
Monitoring data collection module 401, the monitoring data of specified application in acquisition terminal equipment;
Data link detection module 402, for detecting the transmission of the data between the application program and preset server Whether link is normal;
Supervising data storage module 403, if for the data transmission link between the application program and the server There is exception, then the preset storage region by the supervising data storage into the terminal device;
Monitoring data transmission module 404, if for the data transmission link between the application program and the server Restore normal, then by the monitoring data transmission stored in the storage region into the server.
Optionally, the supervising data storage module may include:
First storage information acquisition unit, for obtains store the monitoring data needed for memory space and described deposit The residual memory space in storage area domain;
First storage unit, if being less than or equal to the memory block for memory space needed for storing the monitoring data The residual memory space in domain, then by the supervising data storage into the storage region;
Second storage unit, if being greater than the surplus of the storage region for memory space needed for storing the monitoring data Remaining memory space, then by the earliest history monitoring data of DelNum storage time for meeting following condition from the storage region Middle deletion, and after completing to the deletion of the history monitoring data, by the supervising data storage to the storage region In:
Wherein, DelNum is positive integer, and dn is for the history monitoring data according to storage time in the storage region The serial number being from morning to night arranged successively, 1≤dn≤DelNum, RemainSpace are the residual memory space of the storage region, StorageSpacednFor the dn articles occupied memory space of history monitoring data in the storage region, CurSpace is Memory space needed for storing the monitoring data.
Optionally, the supervising data storage module may include:
Subregion selection unit, it is corresponding with the data type of the monitoring data for being chosen in the storage region Store subregion;
Second storage information acquisition unit, for obtains store the monitoring data needed for memory space and described deposit Store up the residual memory space of subregion;
Third storage unit, if being less than or equal to storage for memory space needed for storing the monitoring data The residual memory space in region, then by the supervising data storage into the storage subregion;
4th storage unit, if being greater than the storage subregion for memory space needed for storing the monitoring data Residual memory space, then it is the earliest history monitoring data of DelNum storage time for meeting following condition is sub from the storage It is deleted in region, and after completing to the deletion of the history monitoring data, by the supervising data storage to the storage In subregion:
Wherein, DelNum is positive integer, dn be the history monitoring data in the storage subregion according to storing when Between the serial number that is from morning to night arranged successively, 1≤dn≤DelNum, k are the serial number of the storage subregion, 1≤k≤ SubSectorNum, SubSectorNum are the number of the storage subregion in the storage region, SubRemainSpacekFor The residual memory space of the storage subregion, StorageSpacek,dnFor the dn articles history prison in the storage subregion The occupied memory space of data is controlled, CurSpace is memory space needed for the storage monitoring data.
Optionally, the supervising data storage module may include:
Target chained list selection unit, in the storage region choose target chained list, the target chained list for institute State the corresponding storage chained list of data type of monitoring data;
Third stores information acquisition unit, for obtains store the monitoring data needed for memory space and described deposit The residual memory space in storage area domain;
5th storage unit, if being less than or equal to the memory block for memory space needed for storing the monitoring data The monitoring data is then added in the target chained list by the residual memory space in domain;
Chained list selection unit is replaced, if being greater than the storage region for memory space needed for storing the monitoring data Residual memory space, then the minimum storage chained list of preset priority is chosen in the storage region as replacement chained list;
6th storage unit, the earliest history monitoring data of DelNum storage time for following condition will to be met from It deletes in the replacement chained list, and after completing to the deletion of the history monitoring data, the monitoring data is added to In the target chained list:
Wherein, DelNum is positive integer, and dn is for the history monitoring data according to storage time in the replacement chained list The serial number being from morning to night arranged successively, 1≤dn≤DelNum, l be it is described replacement chained list serial number, 1≤l≤ LinkedListNum, LinkedListNum are the number of the storage chained list in the storage region, and RemainSpace is described The residual memory space of storage region, StorageSpacel,dnFor the dn articles history monitoring data institute in the replacement chained list The memory space of occupancy, CurSpace are memory space needed for the storage monitoring data.
Further, the data link detection module may include:
Detection data packet transmission unit, for passing through the data transmission link timing to institute according to preset detection cycle It states server and sends preset detection data packet;
Feedback information judging unit, for judging whether connect in preset waiting time after the detection data packet is sent Receive the feedback information of the server;
First determination unit, if the feedback information for receiving the server within the waiting time, it is determined that The data transmission link is normal;
Second determination unit, if the feedback information for not receiving the server within the waiting time, really The fixed data transmission link occurs abnormal.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of module and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Fig. 5 shows a kind of schematic block diagram of Application Monitoring terminal device provided in an embodiment of the present invention, in order to just In explanation, only parts related to embodiments of the present invention are shown.
In the present embodiment, the Application Monitoring terminal device 5 can be mobile phone, tablet computer, notebook, intelligence Wrist-watch, Intelligent bracelet, intelligent glasses etc. calculate equipment.The Application Monitoring terminal device 5 can include: processor 50, storage Device 51 and it is stored in the computer-readable instruction 52 that can be run in the memory 51 and on the processor 50, such as held The computer-readable instruction of the above-mentioned method for monitoring application program of row.The processor 50 executes the computer-readable instruction 52 Step in the above-mentioned each method for monitoring application program embodiment of Shi Shixian, such as step S101 to S105 shown in FIG. 1.Or Person, the processor 50 realize each module/unit in above-mentioned each Installation practice when executing the computer-readable instruction 52 Function, such as the function of module 401 to 404 shown in Fig. 4.
Illustratively, the computer-readable instruction 52 can be divided into one or more module/units, one Or multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Institute Stating one or more module/units can be the series of computation machine readable instruction section that can complete specific function, the instruction segment For describing implementation procedure of the computer-readable instruction 52 in the Application Monitoring terminal device 5.
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the Application Monitoring terminal device 5, such as using journey The hard disk or memory of sequence monitor terminal equipment 5.The memory 51 is also possible to the outer of the Application Monitoring terminal device 5 The plug-in type hard disk being equipped in portion's storage equipment, such as the Application Monitoring terminal device 5, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, The memory 51 can also both including the Application Monitoring terminal device 5 internal storage unit and also including external storage Equipment.The memory 51 is for storing needed for the computer-readable instruction and the Application Monitoring terminal device 5 Other instruction and datas.The memory 51 can be also used for temporarily storing the data that has exported or will export.
The functional units in various embodiments of the present invention may be integrated into one processing unit, is also possible to each Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used To use formal implementation of hardware, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including several computer-readable instructions are used so that one Platform computer equipment (can be personal computer, server or the network equipment etc.) executes described in each embodiment of the present invention The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of computer-readable instruction.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method for monitoring application program characterized by comprising
The monitoring data of specified application in acquisition terminal equipment;
Whether the data transmission link detected between the application program and preset server is normal;
If there is exception in the data transmission link between the application program and the server, by the supervising data storage To the preset storage region in the terminal device;
Detect whether the data transmission link between the application program and the server restores normal;
If the data transmission link between the application program and the server restores normal, will be deposited in the storage region The monitoring data transmission of storage is into the server.
2. method for monitoring application program according to claim 1, which is characterized in that it is described by the supervising data storage extremely Preset storage region in the terminal device includes:
Obtain memory space and the residual memory space of the storage region needed for storing the monitoring data;
It, will if memory space needed for storing the monitoring data is less than or equal to the residual memory space of the storage region The supervising data storage is into the storage region;
If memory space needed for storing the monitoring data is greater than the residual memory space of the storage region, will be under satisfaction The history monitoring data that DelNum storage time of column condition is earliest is deleted from the storage region, and is completed to described After the deletion of history monitoring data, by the supervising data storage into the storage region:
Wherein, DelNum is positive integer, dn be the history monitoring data in the storage region according to storage time from morning The serial number being arranged successively to evening, 1≤dn≤DelNum, RemainSpace are the residual memory space of the storage region, StorageSpacednFor the dn articles occupied memory space of history monitoring data in the storage region, CurSpace is Memory space needed for storing the monitoring data.
3. method for monitoring application program according to claim 1, which is characterized in that it is described by the supervising data storage extremely Preset storage region in the terminal device includes:
Storage subregion corresponding with the data type of the monitoring data is chosen in the storage region;
Obtain the residual memory space of memory space needed for storing the monitoring data and the storage subregion;
If memory space needed for storing the monitoring data is less than or equal to the residual memory space of the storage subregion, By the supervising data storage into the storage subregion;
If memory space needed for storing the monitoring data is greater than the residual memory space of the storage subregion, will meet The earliest history monitoring data of DelNum storage time of following condition is deleted from the storage subregion, and in completion pair After the deletion of the history monitoring data, by the supervising data storage into the storage subregion:
Wherein, DelNum is positive integer, dn be the history monitoring data in the storage subregion according to storage time from The early serial number being arranged successively to evening, 1≤dn≤DelNum, k are the serial number for storing subregion, 1≤k≤ SubSectorNum, SubSectorNum are the number of the storage subregion in the storage region, SubRemainSpacekFor The residual memory space of the storage subregion, StorageSpacek,dnFor the dn articles history prison in the storage subregion The occupied memory space of data is controlled, CurSpace is memory space needed for the storage monitoring data.
4. method for monitoring application program according to claim 1, which is characterized in that it is described by the supervising data storage extremely Preset storage region in the terminal device includes:
Target chained list is chosen in the storage region, the target chained list is corresponding with the data type of the monitoring data Store chained list;
Obtain memory space and the residual memory space of the storage region needed for storing the monitoring data;
It, will if memory space needed for storing the monitoring data is less than or equal to the residual memory space of the storage region The monitoring data is added in the target chained list;
If memory space needed for storing the monitoring data is greater than the residual memory space of the storage region, deposited described The minimum storage chained list of preset priority is chosen in storage area domain as replacement chained list;
The earliest history monitoring data of DelNum storage time for meeting following condition is deleted from the replacement chained list, and After completing to the deletion of the history monitoring data, the monitoring data is added in the target chained list:
Wherein, DelNum is positive integer, dn be the history monitoring data in the replacement chained list according to storage time from morning The serial number being arranged successively to evening, the serial number of 1≤dn≤DelNum, l for the replacement chained list, 1≤l≤LinkedListNum, LinkedListNum is the number of the storage chained list in the storage region, and RemainSpace is the residue of the storage region Memory space, StorageSpacel,dnFor it is described replacement chained list in the dn articles occupied memory space of history monitoring data, CurSpace is memory space needed for the storage monitoring data.
5. method for monitoring application program according to any one of claim 1 to 4, which is characterized in that described in the detection Data transmission link between application program and preset server whether normally include:
Preset detection data is sent to the server by the data transmission link timing according to preset detection cycle Packet;
Judge the feedback information for whether receiving the server in preset waiting time after the detection data packet is sent;
If receiving the feedback information of the server within the waiting time, it is determined that the data transmission link is normal;
If not receiving the feedback information of the server within the waiting time, it is determined that the data transmission link occurs It is abnormal.
6. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special Sign is, the application journey as described in any one of claims 1 to 5 is realized when the computer-readable instruction is executed by processor The step of sequence monitoring method.
7. a kind of Application Monitoring terminal device, including memory, processor and storage are in the memory and can be The computer-readable instruction run on the processor, which is characterized in that the processor executes the computer-readable instruction Shi Shixian following steps:
The monitoring data of specified application in acquisition terminal equipment;
Whether the data transmission link detected between the application program and preset server is normal;
If there is exception in the data transmission link between the application program and the server, by the supervising data storage To the preset storage region in the terminal device;
Detect whether the data transmission link between the application program and the server restores normal;
If the data transmission link between the application program and the server restores normal, will be deposited in the storage region The monitoring data transmission of storage is into the server.
8. Application Monitoring terminal device according to claim 7, which is characterized in that described to deposit the monitoring data Storing up preset storage region into the terminal device includes:
Obtain memory space and the residual memory space of the storage region needed for storing the monitoring data;
It, will if memory space needed for storing the monitoring data is less than or equal to the residual memory space of the storage region The supervising data storage is into the storage region;
If memory space needed for storing the monitoring data is greater than the residual memory space of the storage region, will be under satisfaction The history monitoring data that DelNum storage time of column condition is earliest is deleted from the storage region, and is completed to described After the deletion of history monitoring data, by the supervising data storage into the storage region:
Wherein, DelNum is positive integer, dn be the history monitoring data in the storage region according to storage time from morning The serial number being arranged successively to evening, 1≤dn≤DelNum, RemainSpace are the residual memory space of the storage region, StorageSpacednFor the dn articles occupied memory space of history monitoring data in the storage region, CurSpace is Memory space needed for storing the monitoring data.
9. Application Monitoring terminal device according to claim 7, which is characterized in that described to deposit the monitoring data Storing up preset storage region into the terminal device includes:
Storage subregion corresponding with the data type of the monitoring data is chosen in the storage region;
Obtain the residual memory space of memory space needed for storing the monitoring data and the storage subregion;
If memory space needed for storing the monitoring data is less than or equal to the residual memory space of the storage subregion, By the supervising data storage into the storage subregion;
If memory space needed for storing the monitoring data is greater than the residual memory space of the storage subregion, will meet The earliest history monitoring data of DelNum storage time of following condition is deleted from the storage subregion, and in completion pair After the deletion of the history monitoring data, by the supervising data storage into the storage subregion:
Wherein, DelNum is positive integer, dn be the history monitoring data in the storage subregion according to storage time from The early serial number being arranged successively to evening, 1≤dn≤DelNum, k are the serial number for storing subregion, 1≤k≤ SubSectorNum, SubSectorNum are the number of the storage subregion in the storage region, SubRemainSpacekFor The residual memory space of the storage subregion, StorageSpacek,dnFor the dn articles history prison in the storage subregion The occupied memory space of data is controlled, CurSpace is memory space needed for the storage monitoring data.
10. Application Monitoring terminal device according to claim 7, which is characterized in that described by the monitoring data The preset storage region stored into the terminal device includes:
Target chained list is chosen in the storage region, the target chained list is corresponding with the data type of the monitoring data Store chained list;
Obtain memory space and the residual memory space of the storage region needed for storing the monitoring data;
It, will if memory space needed for storing the monitoring data is less than or equal to the residual memory space of the storage region The monitoring data is added in the target chained list;
If memory space needed for storing the monitoring data is greater than the residual memory space of the storage region, deposited described The minimum storage chained list of preset priority is chosen in storage area domain as replacement chained list;
The earliest history monitoring data of DelNum storage time for meeting following condition is deleted from the replacement chained list, and After completing to the deletion of the history monitoring data, the monitoring data is added in the target chained list:
Wherein, DelNum is positive integer, dn be the history monitoring data in the replacement chained list according to storage time from morning The serial number being arranged successively to evening, the serial number of 1≤dn≤DelNum, l for the replacement chained list, 1≤l≤LinkedListNum, LinkedListNum is the number of the storage chained list in the storage region, and RemainSpace is the residue of the storage region Memory space, StorageSpacel,dnFor it is described replacement chained list in the dn articles occupied memory space of history monitoring data, CurSpace is memory space needed for the storage monitoring data.
CN201810962895.5A 2018-08-22 2018-08-22 A kind of method for monitoring application program, computer readable storage medium and terminal device Pending CN109274548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810962895.5A CN109274548A (en) 2018-08-22 2018-08-22 A kind of method for monitoring application program, computer readable storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810962895.5A CN109274548A (en) 2018-08-22 2018-08-22 A kind of method for monitoring application program, computer readable storage medium and terminal device

Publications (1)

Publication Number Publication Date
CN109274548A true CN109274548A (en) 2019-01-25

Family

ID=65154013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810962895.5A Pending CN109274548A (en) 2018-08-22 2018-08-22 A kind of method for monitoring application program, computer readable storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN109274548A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399756A (en) * 2019-09-29 2020-07-10 杭州海康威视系统技术有限公司 Data storage method, data downloading method and device
CN112839075A (en) * 2020-12-22 2021-05-25 科华恒盛股份有限公司 Data transmission method applied to acquisition equipment and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986779A (en) * 2014-05-29 2014-08-13 沈文策 Application data transmission method, device and terminal equipment
CN104394201A (en) * 2014-11-12 2015-03-04 国云科技股份有限公司 Distributed web application monitoring method
CN107092564A (en) * 2017-04-21 2017-08-25 深信服科技股份有限公司 A kind of data processing method and device
CN107590144A (en) * 2016-07-07 2018-01-16 中兴通讯股份有限公司 A kind of file memory method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986779A (en) * 2014-05-29 2014-08-13 沈文策 Application data transmission method, device and terminal equipment
CN104394201A (en) * 2014-11-12 2015-03-04 国云科技股份有限公司 Distributed web application monitoring method
CN107590144A (en) * 2016-07-07 2018-01-16 中兴通讯股份有限公司 A kind of file memory method and terminal
CN107092564A (en) * 2017-04-21 2017-08-25 深信服科技股份有限公司 A kind of data processing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399756A (en) * 2019-09-29 2020-07-10 杭州海康威视系统技术有限公司 Data storage method, data downloading method and device
CN111399756B (en) * 2019-09-29 2024-01-02 杭州海康威视系统技术有限公司 Data storage method, data downloading method and device
CN112839075A (en) * 2020-12-22 2021-05-25 科华恒盛股份有限公司 Data transmission method applied to acquisition equipment and related device

Similar Documents

Publication Publication Date Title
WO2020259421A1 (en) Method and apparatus for monitoring service system
US9367803B2 (en) Predictive analytics for information technology systems
CN109491850A (en) A kind of disk failure prediction technique and device
CN105989441A (en) Model parameter adjustment method and device
CN106383760A (en) Computer fault management method and apparatus
US10282458B2 (en) Event notification system with cluster classification
WO2020172852A1 (en) Computing resource scheduling method, scheduler, internet of things system, and computer readable medium
CN109992473A (en) Monitoring method, device, equipment and the storage medium of application system
CN113360270B (en) Data cleaning task processing method and device
CN109299297A (en) A kind of image cache method for cleaning and terminal device
CN109274548A (en) A kind of method for monitoring application program, computer readable storage medium and terminal device
CN111522668A (en) Method and apparatus for resource configuration and computer-readable storage medium
CN110018932B (en) Method and device for monitoring container magnetic disk
GB2516357A (en) Methods and apparatus for monitoring conditions prevailing in a distributed system
Wu et al. Adaptive sequential predictive maintenance policy with nonperiodic inspection for hard failures
CN106899436A (en) A kind of cloud platform failure predication diagnostic system
CN1783121B (en) Method and system for executing design automation
CN110232073A (en) A kind of Data Management Analysis system and method
CN110096339A (en) A kind of scalable appearance configuration recommendation system and method realized based on system load
US20230385048A1 (en) Predictive recycling of computer systems in a cloud environment
CN114327963A (en) Anomaly detection method and device
CN110221929A (en) A kind of service software system architecture and its application method
Mendes et al. Decision-theoretic planning for cloud computing
CN115617515A (en) Memory allocation method and device for intelligent Internet of things operating system and storage medium
Anke et al. Distributed Decision Support in a PLM scenario

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125