CN108337127A - application performance monitoring method, system, terminal and computer readable storage medium - Google Patents

application performance monitoring method, system, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108337127A
CN108337127A CN201711399047.XA CN201711399047A CN108337127A CN 108337127 A CN108337127 A CN 108337127A CN 201711399047 A CN201711399047 A CN 201711399047A CN 108337127 A CN108337127 A CN 108337127A
Authority
CN
China
Prior art keywords
monitoring data
monitoring
mobile terminal
monitored
server
Prior art date
Application number
CN201711399047.XA
Other languages
Chinese (zh)
Inventor
苏先乐
林金星
Original Assignee
中国平安人寿保险股份有限公司
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 中国平安人寿保险股份有限公司 filed Critical 中国平安人寿保险股份有限公司
Priority to CN201711399047.XA priority Critical patent/CN108337127A/en
Publication of CN108337127A publication Critical patent/CN108337127A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing packet switching networks
    • H04L43/06Report generation
    • H04L43/062Report generation for traffic related reporting
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring

Abstract

The invention discloses a kind of application performance monitoring method, monitoring system, mobile terminal and computer readable storage medium, which includes:Mobile terminal receives the list to be monitored that server is sent;Mobile terminal is based on list to be monitored and obtains all applications to be monitored and monitoring data type, and the monitoring data type includes data processing type and resource consumption type;First monitoring data of data processing type and the second monitoring data of resource consumption type in each application to be monitored of mobile terminal acquisition;First monitoring data and the second monitoring data are sent to server by mobile terminal, so that server is analyzed.The present invention is by the way that monitoring data to be acquired according to preset kind, part monitoring data is prevented not to be collected, to which the monitoring data for avoiding the occurrence of acquisition is more unilateral, cause terminal can not overall monitor to complete performance data the phenomenon that, and then improve the working efficiency of monitoring data collection.

Description

Application performance monitoring method, system, terminal and computer readable storage medium

Technical field

The present invention relates to performance monitoring technical field more particularly to a kind of application performance monitoring method, monitoring system, movements Terminal and computer readable storage medium.

Background technology

Nowadays, it is mounted with that miscellaneous application software, different application software are full in the mobile terminal that people use Foot user miscellaneous functional requirement, the function that application software is provided is more, to the runnability of mobile terminal It is required that also higher.Therefore, for the various application software in mobile terminal, many manufacturers develop Monitor systemfor application softwares, For carrying out performance monitoring to each application software, and corresponding Optimizing Suggestions are provided for monitoring data.

But current Monitor systemfor application softwares are refreshed to the data transmission efficiency of application software and interface mostly The frequency is monitored, and this monitoring data are more unilateral, is not monitored and is divided from the data processing performance of application software Analysis, this will cause the monitoring data that Monitor systemfor application softwares are acquired and analyzed more unilateral, can not comprehensively monitor and answer With the partial data of software, so as to cause when certain critical datas not being monitored occur abnormal, application monitors system System can not send out alarm in time, thereby reduce the working efficiency of monitoring application software.

Invention content

The main purpose of the present invention is to provide a kind of application performance monitoring method, monitoring system, mobile terminal and calculating Machine readable storage medium storing program for executing, it is intended to solve the unilateral skill for causing monitoring function working efficiency low of performance monitoring data of terminal acquisition Art problem.

To achieve the above object, the embodiment of the present invention provides a kind of application performance monitoring method, the application performance monitoring side Method is applied to mobile terminal, and the application performance monitoring method includes:

Mobile terminal receives the list to be monitored that server is sent;

Mobile terminal is based on list to be monitored and obtains all applications to be monitored and monitoring data type, the monitoring data class Type includes data processing type and resource consumption type;

The first monitoring data and resource consumption type of data processing type in each application to be monitored of mobile terminal acquisition The second monitoring data;

First monitoring data and the second monitoring data are sent to server by mobile terminal, so that server is analyzed.

Preferably, the mobile terminal acquires the first monitoring data and money of data processing type in each application to be monitored Source consume type the second monitoring data the step of include:

Interface refresh rate, network link information and the storehouse of each application to be monitored of mobile terminal acquisition acquire information, with Obtain the first monitoring data;

CPU usage, memory usage and the thread occupancy of each application to be monitored of mobile terminal acquisition, to obtain the Two monitoring datas.

Preferably, the application performance monitoring method further includes:

Mobile terminal receives the monitoring data that server is sent and updates table, and based on monitoring data update table update monitoring number According to type;

Mobile terminal acquires the third monitoring data of new monitoring data type;

Third monitoring data is sent to server by mobile terminal.

The embodiment of the present invention provides a kind of application performance monitoring method, which is applied to server, The application performance monitoring method includes:

Server sends list to be monitored to mobile terminal, and the list to be monitored includes application to be monitored and monitoring data Type;

Server receives the first monitoring data and the second monitoring data that mobile terminal is sent;

Server carries out data analysis to the first monitoring data and the second monitoring data respectively, obtains analysis result to generate Performance test is reported.

Preferably, first monitoring data includes that interface refresh rate, network link information and storehouse acquire information, described Network link information includes network connection speed, the first monitoring data of the server pair carry out data analysis the step of include:

When server detects that interface refresh rate is less than first threshold, the insufficient analysis result of output frame rate;

When server detects that network link information is that exception information or network connection speed are less than second threshold, output The analysis result of network linking failure;

When server detects that storehouse acquisition information is exception information, output data calls chaotic analysis result.

Preferably, second monitoring data includes CPU usage, memory usage and thread occupancy, the service The second monitoring data of device pair carry out data analysis the step of include:

When server detects that CPU usage is more than third threshold value, the unreasonable analysis result of output resource distribution;

When server detects that memory usage is more than four threshold values, the unreasonable analysis result of the output utilization of resources;

When server detects that thread occupancy is more than five threshold values, output function designs unreasonable analysis result.

Preferably, the application performance monitoring method further includes:

Server obtains new monitoring data type, and generates monitoring data based on monitoring data type and update table;

Monitoring data update table is sent to mobile terminal by server, and receives the third monitoring number of mobile terminal feedback According to.

The present invention also provides a kind of monitoring system, the monitoring system includes mobile terminal and server,

The mobile terminal includes:

First receiving module, the list to be monitored for receiving server transmission;

Acquisition module, for obtaining all applications to be monitored and monitoring data type, the monitoring based on list to be monitored Data type includes data processing type and resource consumption type;

First acquisition module, the first monitoring data and resource for acquiring data processing type in each application to be monitored Consume the second monitoring data of type;

First sending module, for the first monitoring data and the second monitoring data to be sent to server, for server It is analyzed;

The server includes:

Second sending module, for sending list to be monitored to mobile terminal, the list to be monitored includes to be monitored answers With with monitoring data type;

Second receiving module, the first monitoring data and the second monitoring data for receiving mobile terminal transmission;

Analysis module obtains analysis knot for carrying out data analysis to the first monitoring data and the second monitoring data respectively Fruit is to generate performance test report.

In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes:Memory, Processor, communication bus and the application performance monitoring programme being stored on the memory,

The communication bus is for realizing the communication connection between processor and memory;

The processor is for executing the application performance monitoring programme, to realize following steps:

Mobile terminal receives the list to be monitored that server is sent;

Mobile terminal is based on list to be monitored and obtains all applications to be monitored and monitoring data type, the monitoring data class Type includes data processing type and resource consumption type;

The first monitoring data and resource consumption type of data processing type in each application to be monitored of mobile terminal acquisition The second monitoring data;

First monitoring data and the second monitoring data are sent to server by mobile terminal, so that server is analyzed.

Preferably, the mobile terminal acquires the first monitoring data and money of data processing type in each application to be monitored Source consume type the second monitoring data the step of include:

Interface refresh rate, network link information and the storehouse of each application to be monitored of mobile terminal acquisition acquire information, with Obtain the first monitoring data;

CPU usage, memory usage and the thread occupancy of each application to be monitored of mobile terminal acquisition, to obtain the Two monitoring datas.

Preferably, the application performance monitoring method further includes:

Mobile terminal receives the monitoring data that server is sent and updates table, and based on monitoring data update table update monitoring number According to type;

Mobile terminal acquires the third monitoring data of new monitoring data type;

Third monitoring data is sent to server by mobile terminal.

Preferably, the application performance monitoring method includes:

Server sends list to be monitored to mobile terminal, and the list to be monitored includes application to be monitored and monitoring data Type;

Server receives the first monitoring data and the second monitoring data that mobile terminal is sent;

Server carries out data analysis to the first monitoring data and the second monitoring data respectively, obtains analysis result to generate Performance test is reported.

Preferably, first monitoring data includes that interface refresh rate, network link information and storehouse acquire information, described Network link information includes network connection speed, the first monitoring data of the server pair carry out data analysis the step of include:

When server detects that interface refresh rate is less than first threshold, the insufficient analysis result of output frame rate;

When server detects that network link information is that exception information or network connection speed are less than second threshold, output The analysis result of network linking failure;

When server detects that storehouse acquisition information is exception information, output data calls chaotic analysis result.

Preferably, second monitoring data includes CPU usage, memory usage and thread occupancy, the service The second monitoring data of device pair carry out data analysis the step of include:

When server detects that CPU usage is more than third threshold value, the unreasonable analysis result of output resource distribution;

When server detects that memory usage is more than four threshold values, the unreasonable analysis result of the output utilization of resources;

When server detects that thread occupancy is more than five threshold values, output function designs unreasonable analysis result.

Preferably, the application performance monitoring method further includes:

Server obtains new monitoring data type, and generates monitoring data based on monitoring data type and update table;

Monitoring data update table is sent to mobile terminal by server, and receives the third monitoring number of mobile terminal feedback According to.

In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Storage medium storage there are one either more than one program the one or more programs can by one or one with On processor execute for:

Mobile terminal receives the list to be monitored that server is sent;

Mobile terminal is based on list to be monitored and obtains all applications to be monitored and monitoring data type, the monitoring data class Type includes data processing type and resource consumption type;

The first monitoring data and resource consumption type of data processing type in each application to be monitored of mobile terminal acquisition The second monitoring data;

First monitoring data and the second monitoring data are sent to server by mobile terminal, so that server is analyzed.

In technical scheme of the present invention, mobile terminal receives the list to be monitored that server is sent;Mobile terminal is based on waiting for Watch-list obtains all applications to be monitored and monitoring data type, and the monitoring data type includes data processing type and money Source consumes type;The first monitoring data and resource consumption class of data processing type in each application to be monitored of mobile terminal acquisition Second monitoring data of type;First monitoring data and the second monitoring data are sent to server by mobile terminal, for server It is analyzed.The present invention prevents part monitoring data not to be collected by the way that monitoring data to be acquired according to preset kind, To which the monitoring data for avoiding the occurrence of acquisition is more unilateral, cause terminal can not overall monitor showing to complete performance data As, and then improve the working efficiency of monitoring data collection.

Description of the drawings

Fig. 1 is the flow diagram of one preferred embodiment of application performance monitoring method of the present invention;

Fig. 2 is the refinement flow diagram of step S30 in Fig. 1;

Fig. 3 is the flow diagram of the another embodiment of application performance monitoring method of the present invention;

Fig. 4 is the system architecture design diagram of monitoring system of the present invention;

Fig. 5 is the device structure schematic diagram for the hardware running environment that present invention method is related to.

The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.

Specific implementation mode

It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.

The present invention provides a kind of application performance monitoring method, in application performance monitoring method first embodiment, with reference to figure 1, which is applied to mobile terminal, and the application performance monitoring method includes:

Step S10, mobile terminal receive the list to be monitored that server is sent;

A large amount of application program, requirement of the different application programs to the runnability of terminal are installed in mobile terminal It is different.And the various operation datas of application program can reflect the performance condition of the application program, therefore prison can be passed through The operation data of application program is controlled to carry out the Optimal improvements of application program.

In the present embodiment, mobile terminal can receive the list to be monitored of server transmission, and the list to be monitored refers to Be that server drafts the data type for needing monitored application program and required acquisition monitoring.

Step S20, mobile terminal are based on list to be monitored and obtain all applications to be monitored and monitoring data type, the prison It includes data processing type and resource consumption type to control data type;

The data in list to be monitored can be read in mobile terminal, get all applications to be monitored in list and to be adopted The type of the monitoring data of collection.The monitoring data type refers to the data for the monitoring data being counted into statistical analysis scope Classification.It since the operation data of application to be monitored is more, is acquired if having no destination, then easy ting produce data corruption The phenomenon that.

Usually, to the monitoring of application to be monitored mainly data transmission capabilities of the monitoring application program in internet and The refreshing frequency of application interface, to verify by the switching fluency of the networked capabilities of application to be monitored and application interface.And to The acquisition and analysis of upper monitoring data can only obtain the ability of the application program on surface layer, and can not analyze and obtain application software to end Hold the consumption ability of resource.And application program influences whether the consumption ability of terminal resource the operational effect of terminal.Therefore, it waits for It monitors and is also needed in the monitoring data of application using the data of resource consumption type as the standard of referring to.

The runnability of one application to be monitored may be embodied in the data-handling capacity and resource consumption ability of the application, Therefore corresponding data processing type monitoring data and resource consumption type monitoring data by be the application to be monitored weight Want data.And contained in list to be monitored the monitored object of monitoring in need and the monitoring type of monitoring data, that is, move Dynamic terminal can get the prison that data are collected required for corresponding application to be monitored from the list to be monitored that server is sent Control type.

Step S30, the first monitoring data and resource of data processing type in each application to be monitored of mobile terminal acquisition Consume the second monitoring data of type;

After acquisition for mobile terminal to application to be monitored and monitoring data type, you can determine in the terminal each to be monitored Using, and according to all operation datas of the application to be monitored, acquire the first monitoring number of wherein corresponding data processing type According to this and consumption resource type the second monitoring data.

Specifically, may include with reference to Fig. 2, step S30:

Step S31, interface refresh rate, network link information and the storehouse acquisition of each application to be monitored of mobile terminal acquisition Information, to obtain the first monitoring data;

Step S32, CPU usage, memory usage and the thread occupancy of each application to be monitored of mobile terminal acquisition, To obtain the second monitoring data.

Mobile terminal monitors all applications to be monitored for being defined as being monitored in real time, to be monitored to apply in the runtime Between certainly exist data exchange and variation, and data flow can be directly detected by mobile terminal, therefore corresponding data stream It can also be acquired.These data are mainly reflected in two aspects:The service ability of application to be monitored itself and to be monitored Using the occupancy to system resource, the form of expression is that application to be monitored is enable to respond quickly and executes instruction and to be monitored answer With function operation can be completed in the limited resources that system provides.First monitoring data of data processing type can embody application Whether program in machine code generates higher data redundancy or data coupling, and the higher code data of execution efficiency can more embody to be monitored The data-handling capacity of application;Second monitoring data of resource consumption type can embody the profit to be monitored using occupying system resources With rate.If utilization rate is relatively low, need to occupy a large amount of resource, then terminal system can be caused larger burden by illustrating to apply.

In the present embodiment, the monitoring data of data processing type includes interface refresh rate, the lattice chain of application to be monitored Connect information and storehouse acquisition information.The interface refresh rate refers to update of the electron beam to the image currently shown on screen Speed, i.e. display frame rate.The network link information refers to the connection relation of application and internet to be monitored, and storehouse acquires Information refers to, using the called switch speed of data and interface data, showing as the smoothness of data feedback and interface response Degree.

The monitoring data of consumption resource type includes that CPU usage, memory usage and the thread of application to be monitored occupy Rate.The CPU usage refers to the ratio of the current occupied CPU processing capacities of application to be monitored;The memory usage Refer to the ratio memory of the current expense occupied in systems of application to be monitored;The thread occupancy refers to be monitored answer Occupied thread ratio when with normal operation.

In the present embodiment, mobile terminal is divided into data processing type and resource consumption by classifying to monitoring data Two kinds of type, and to application to be monitored current operation when generated the first monitoring data for belonging to data processing type and belong to Second monitoring data of resource consumption type is acquired acquisition and preserves.

First monitoring data and the second monitoring data are sent to server by step S40, mobile terminal, for server into Row analysis.

Mobile terminal sends out the first monitoring data of application to be monitored and the second monitoring data by way of data transmission It send to server end, which can be connected by cable and is transmitted, and wireless transmission can also be used.Due to monitoring data Analysis needs the analysis computing device of profession, and mobile terminal does not have powerful analysis computing function, therefore mobile terminal can Collected first monitoring data of institute and the second monitoring data are sent to server, so that server executes subsequent analysis meter Calculate flow.

It is understood that the first monitoring data may include interface refresh rate, network link information and storehouse acquisition information, Second monitoring data may include CPU usage, memory usage and thread occupancy.So number is monitored by first in mobile terminal In the step of being sent to server with the second monitoring data, mobile terminal can be according to the first monitoring data and the second monitoring number According to refinement type, by collected first monitoring data of institute and the respective number of the second monitoring data by way of compressing and being packaged It arranges combination respectively according to type, so as to server identifying call, and server is sent under the transmission of data transmission channel, with It is analyzed for server.

In technical scheme of the present invention, mobile terminal receives the list to be monitored that server is sent;Mobile terminal is based on waiting for Watch-list obtains all applications to be monitored and monitoring data type, and the monitoring data type includes data processing type and money Source consumes type;The first monitoring data and resource consumption class of data processing type in each application to be monitored of mobile terminal acquisition Second monitoring data of type;First monitoring data and the second monitoring data are sent to server by mobile terminal, for server It is analyzed.The present invention prevents part monitoring data not to be collected by the way that monitoring data to be acquired according to preset kind, To which the monitoring data for avoiding the occurrence of acquisition is more unilateral, cause terminal can not overall monitor showing to complete performance data As, and then improve the working efficiency of monitoring data collection.

Further, on the basis of application performance monitoring method first embodiment of the present invention, application of the present invention is proposed Energy monitoring method second embodiment, difference lies in the application performance monitoring method further includes with previous embodiment:

Step S50, mobile terminal receive the monitoring data that server is sent and update table, and more based on monitoring data update table New monitoring data type;

Mobile terminal can real-time reception server send monitoring data update table.The monitoring data update table refers to Additions and deletions are carried out in server to the monitoring data type in current application to be monitored and change the directory listings of operations such as to look into.Monitoring data The update of update table can be incremental update, can also be full dose update, i.e., newer data can be in monitoring data update table It is that the additions and deletions based on last monitoring data type change and look into, can also be that the additions and deletions of arbitrary monitoring data change and look into.

Monitoring data update table is based on the more new strategy of the monitoring data of new monitoring dimension expansion, can improve Current mobile terminal is unilateral to data in the first monitoring data and the second monitoring data that are acquired or monitoring data type is tieed up Spend less situation.The monitoring data type more new terminal that mobile terminal can update in table according to monitoring data is currently performed Monitoring strategies.

Step S60, mobile terminal acquire the third monitoring data of new monitoring data type;

In this step, third monitoring data can will at any time increase as developer when developing new monitoring dimension The new monitoring data type for the monitoring of being acquired, for example, external environment detected when application operation to be monitored data, Such as application to be monitored is that sound wave adjusts application, then sonic data when mobile terminal need to be acquired for musical instrument tuning, it is assumed that wait for Mistake of the monitoring application there are Data Detection functionally, then application to be monitored will be caused to be unable to operate normally, causing can not be real The function of existing musical instrument tuning.In the present embodiment, third monitoring data is a kind of type of new monitoring data, independently of first Except monitoring data and the second monitoring data, but it can equally reflect the operation conditions of application to be monitored.

Third monitoring data is sent to server by step S70, mobile terminal.

After the monitoring data type for updating mobile terminal monitored application to be monitored, mobile terminal can acquire newer prison Control the corresponding third monitoring data of data type.Optionally, it is assumed that third monitoring data is the device data of mobile terminal, that , device data is by the monitoring data as new dimension, it may include processor model, camera module type or screen type etc. With application to be monitored belong to hardware and software Deng, device data, the adaptation of the two equally plays the runnability of application to be monitored To certain influence.Such as the function of the hardware cell of some old models more lags, and can not quickly drive execution newest Application to be monitored performance.Therefore hardware cell device data can be used as another kind dimension monitoring data type, by Mobile terminal is acquired.

Certainly, above equipment data only reference explanation as an example, do not represent third monitoring data be only limited to Upper range, is not limited thereto.Third monitoring data belongs to independently of new except the first monitoring data and the second monitoring data Monitoring data type.After acquisition for mobile terminal to third monitoring data, you can be sent to server.

The present invention provides a kind of application performance monitoring method, in application performance monitoring method 3rd embodiment, with reference to figure 3, which is applied to server, and the application performance monitoring method includes:

Step S80, server send list to be monitored to mobile terminal, the list to be monitored include application to be monitored and Monitoring data type;

Server is to be monitored by generations such as preset rules, user's importing rule or User Defined editor's rules in local terminal List, the list include the application to be monitored to be monitored and application monitoring data type etc. to be monitored.Server The list to be monitored will be sent to mobile terminal, and data acquisition is carried out for mobile terminal.

Step S90, server receive the first monitoring data and the second monitoring data that mobile terminal is sent;

After mobile terminal receives list to be monitored, data acquisition is carried out according to list to be monitored, and server can connect Receive the first monitoring data and the second monitoring data of mobile terminal transmission.It is understood that server can be by receiving The first monitoring data and the second monitoring data data packet, get interface refresh rate, net that the first monitoring data includes CPU usage, memory usage and the thread that network link information and storehouse acquisition information and the second monitoring data include account for With rate.

Step S100, server carry out data analysis to the first monitoring data and the second monitoring data respectively, obtain analysis As a result to generate performance test report.

Server receives the first monitoring data and the second monitoring data, and is analyzed by server, analytic process master It is embodied in:For corresponding threshold value under all monitoring data settings, which can carry out self-defined according to actual conditions Configuration.As long as the correspondence index of monitoring data proves the results of performance analysis of the data not except threshold value allowable range It is up to standard.By the analysis to the first monitoring data and the second monitoring data, all analysis results can be collected and recorded by server Get off, is recorded all analysis result Corresponding matchings by preset test report template, you can generate complete performance test Report.Performance test report is mainly referred to developer, and developer can be directed to the content of performance test report, according to Corresponding application software carries out compatibility adaptation and the algorithmic dispatching optimization of system function platform.

First monitoring data includes interface refresh rate, network link information and storehouse acquisition information, the lattice chain It includes network connection speed to connect information, the first monitoring data of the server pair carry out data analysis the step of include:

Step a, when server detects that interface refresh rate is less than first threshold, the insufficient analysis result of output frame rate;

The interface of application to be monitored would generally refresh frame per second in real time, have process to avoid operating or executing in user During step function (such as playing video, the lyrics), fail to show corresponding feedback interface in time.Modern mobile terminal exists Multiple interface can be refreshed in 1 second, to promote the feedback speed of terminal, promote user experience.In the present embodiment, server is interface Refresh rate sets minimum threshold, which is denoted as first threshold.So it is less than the first threshold in interface refresh rate When, that is, prove that the interface refresh rate of the application to be monitored of mobile terminal is less than minimum threshold, it means that the application to be monitored Frame per second output it is insufficient, need to be adjusted.And server is when detecting this analysis result, based on adopting for interface refresh rate Collect the insufficient analysis result of frame data output rate.

Step b, when server detects that network link information is that exception information or network connection speed are less than second threshold When, the analysis result of output network linking failure;

Network link information includes the connection of each router, forwarding, feedback etc. specifying information.It is detected in server When network link information is exception information, it was demonstrated that current application to be monitored, which fails normally to establish with internet, to be connected, and is existed certain Networking obstacle;Or when server detects that network connection speed is less than second threshold, it was demonstrated that although though application to be monitored Internet can be so connected, but Internet service can not be normally used.Can not normal use Internet service, it is to be monitored to answer With will be unable to its data being sent to corresponding application backstage, the application update and data backup of application to be monitored are realized, especially It is for needing the application program using Internet service, the connection failure with internet will greatly reduce to be monitored answer Performance condition.Therefore can not normal use Internet service when, server will export network linking failure analysis result.

Step c, when server detects that storehouse acquisition information is exception information, output data calls chaotic analysis knot Fruit.

It is mainly the execution by operation and the operation performed by the current application to be monitored of acquisition that storehouse, which acquires information, State can reflect the actual state to be monitored applied in data call and data configuration.When server detects that storehouse is adopted Integrate information as exception information, it was demonstrated that it is current it is to be monitored apply in code realization that there are certain data redundancies, may be in data Inefficiency in the allotment of steps flow chart.Server can acquire information output data according to storehouse and call chaotic analysis knot at this time Fruit.

The analysis result that interface refresh rate, network link information, storehouse are acquired information three by server gathers together, Using as be subsequently generated performance test report reference data.

Second monitoring data includes CPU usage, memory usage and thread occupancy, the server pair second Monitoring data carry out data analysis the step of include:

Step d, when server detects that CPU usage is more than third threshold value, the unreasonable analysis of output resource distribution As a result;

Server has preset third threshold value as threshold value, when server detects occupancy of the application to be monitored to CPU When more than third threshold value, it was demonstrated that application to be monitored maintains its operation to need to occupy a large amount of cpu resource, this will be seriously affected The normal operation of other applications in mobile terminal where application to be monitored, that is to say, that be monitored apply provides to CPU There are unreasonable situation in the configuration application of source, need to be further improved.The exportable resource distribution of server at this time does not conform to The analysis result of reason.

Step e, when server detects that memory usage is more than four threshold values, the unreasonable analysis of the output utilization of resources As a result;

Server has preset the 4th threshold value as threshold value, when server detects occupancy of the application to be monitored to memory When more than four threshold values, it was demonstrated that the operation of application to be monitored needs to consume a large amount of memory headroom, can be to the occupancy of memory The application volume of application to be monitored is excessive, can also be that required running space demand is larger.The memory of application to be monitored accounts for It is excessively high with rate, it was demonstrated that the resource utilization of current application to be monitored is relatively low, be easy to cause the waste of system resource, has highlighted and waited for The unreasonable exploitation in the exploitation design phase is applied in monitoring.Therefore when server detects that memory usage is more than the 4th threshold value When, the unreasonable analysis result of the exportable utilization of resources of server.

Step f, when server detects that thread occupancy is more than five threshold values, output function designs unreasonable analysis As a result.

Server has preset the 5th threshold value as threshold value, when server detects occupancy of the application to be monitored to thread When more than five threshold values, it was demonstrated that the number of threads that application to be monitored occupies is more.In the normal implementation procedure of application, usual institute Occupy thread number reflect the function executive condition of application.Assuming that a functions of application to be monitored need while opening 5,6 Thread then means that the realization process of a functions needs to execute jointly by multiple and different thread resources and can be only achieved, is easy to make There is interim card at the mobile terminal for executing a functions or fluency is not high.When the thread occupancy of application to be monitored is higher, to end The resource consumption at end is also very high.It is obvious that existing there are certain defect on the Functional Design of a functions in the process of development Advanced optimize improved space.Therefore, when server detects that thread occupancy is more than five threshold values, output function design Unreasonable analysis result.

Server gathers together the analysis result of CPU usage, memory usage, thread occupancy three, to make To be subsequently generated the reference data of performance test report.

Further, on the basis of application performance monitoring method 3rd embodiment of the present invention, application of the present invention is proposed Energy monitoring method fourth embodiment, difference lies in the application performance monitoring method further includes with previous embodiment:

Step S110, server obtains new monitoring data type, and generates monitoring data more based on monitoring data type New table;

In this step, server can get new monitoring data type from different channels, such as developer is directed to The data acquisition planning of specific application to be monitored, or to the monitoring new standard of all applications to be monitored, or increase and treat The customization analysis strategy etc. of comprehensive data is applied in monitoring.Developer can the new monitoring demand of typing, get new prison Data type is controlled, and is recorded in monitoring data update table.The monitoring data update table is referred to by server to monitoring number It is updated according to type, mobile terminal is needed to increase the record form of modification gathered data type.

Monitoring data update table is sent to mobile terminal by step S120, server, and receives the of mobile terminal feedback Three monitoring datas.

In real life scenarios, server can formulate the monitoring analysis strategy of application to be monitored according to actual conditions, because This may change monitoring data type, such as increase the monitoring data or monitoring data type of other dimensions.Such as server needs Certain monitoring data in application to be monitored, monitoring data type or monitoring data type is monitored, you can pass through clothes Monitoring data update table is sent to mobile terminal by business device, and so that mobile terminal is acquired, and server can receive by moving The collected third monitoring data of terminal.

The present invention provides a kind of monitoring system, with reference to Fig. 5, the monitoring system includes mobile terminal and server,

The mobile terminal includes:

First receiving module 10, the list to be monitored for receiving server transmission;

Acquisition module 20, for obtaining all applications to be monitored and monitoring data type, the prison based on list to be monitored It includes data processing type and resource consumption type to control data type;

First acquisition module 30, the first monitoring data and money for acquiring data processing type in each application to be monitored Source consumes the second monitoring data of type;

First sending module 40, for the first monitoring data and the second monitoring data to be sent to server, for service Device is analyzed;

The server includes:

Second sending module 80, for sending list to be monitored to mobile terminal, the list to be monitored includes to be monitored Using with monitoring data type;

Second receiving module 90, the first monitoring data and the second monitoring data for receiving mobile terminal transmission;

Analysis module 100 obtains analysis for carrying out data analysis to the first monitoring data and the second monitoring data respectively As a result to generate performance test report.

With reference to Fig. 5, Fig. 5 is the device structure schematic diagram for the hardware running environment that present invention method is related to.

Terminal of the embodiment of the present invention can be PC, can also be smart mobile phone, tablet computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3) Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound Frequency level 4) terminal devices such as player, pocket computer.

As shown in figure 5, the mobile terminal may include:Processor 1001, such as CPU, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between processor 1001 and memory 1005.Memory 1005 It can be high-speed RAM memory, can also be stable memory (non-volatile memory), such as magnetic disk storage. Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.

Optionally, which can also include user interface, network interface, camera, RF (Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..User interface may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface can also include wireline interface, the nothing of standard Line interface.Network interface may include optionally standard wireline interface and wireless interface (such as WI-FI interface).

It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 does not constitute the limit to mobile terminal It is fixed, may include either combining certain components or different components arrangement than illustrating more or fewer components.

As shown in figure 5, as may include that operating system, network are logical in a kind of memory 1005 of computer storage media Believe module and application performance monitoring programme.Operating system is the program of management and control mobile terminal hardware and software resource, Support the operation of application performance monitoring programme and other softwares and/or program.Network communication module is for realizing memory Communication between the 1005 each components in inside, and with communicated between other hardware and softwares in mobile terminal.

In mobile terminal shown in Fig. 5, processor 1001 is used to execute the application performance prison stored in memory 1005 Program is controlled, realizes following steps:

Mobile terminal receives the list to be monitored that server is sent;

Mobile terminal is based on list to be monitored and obtains all applications to be monitored and monitoring data type, the monitoring data class Type includes data processing type and resource consumption type;

The first monitoring data and resource consumption type of data processing type in each application to be monitored of mobile terminal acquisition The second monitoring data;

First monitoring data and the second monitoring data are sent to server by mobile terminal, so that server is analyzed.

Further, in each application to be monitored of mobile terminal acquisition the first monitoring data of data processing type and The step of second monitoring data of resource consumption type includes:

Interface refresh rate, network link information and the storehouse of each application to be monitored of mobile terminal acquisition acquire information, with Obtain the first monitoring data;

CPU usage, memory usage and the thread occupancy of each application to be monitored of mobile terminal acquisition, to obtain the Two monitoring datas.

Further, the application performance monitoring method further includes:

Mobile terminal receives the monitoring data that server is sent and updates table, and based on monitoring data update table update monitoring number According to type;

Mobile terminal acquires the third monitoring data of new monitoring data type;

Third monitoring data is sent to server by mobile terminal.

Further, the application performance monitoring method includes:

Server sends list to be monitored to mobile terminal, and the list to be monitored includes application to be monitored and monitoring data Type;

Server receives the first monitoring data and the second monitoring data that mobile terminal is sent;

Server carries out data analysis to the first monitoring data and the second monitoring data respectively, obtains analysis result to generate Performance test is reported.

Further, first monitoring data includes interface refresh rate, network link information and storehouse acquisition information, institute The step of it includes network connection speed to state network link information, and the first monitoring data of the server pair carries out data analysis packet It includes:

When server detects that interface refresh rate is less than first threshold, the insufficient analysis result of output frame rate;

When server detects that network link information is that exception information or network connection speed are less than second threshold, output The analysis result of network linking failure;

When server detects that storehouse acquisition information is exception information, output data calls chaotic analysis result.

Further, second monitoring data includes CPU usage, memory usage and thread occupancy, the clothes Business the second monitoring data of device pair carry out data analysis the step of include:

When server detects that CPU usage is more than third threshold value, the unreasonable analysis result of output resource distribution;

When server detects that memory usage is more than four threshold values, the unreasonable analysis result of the output utilization of resources;

When server detects that thread occupancy is more than five threshold values, output function designs unreasonable analysis result.

Further, the application performance monitoring method further includes:

Server obtains new monitoring data type, and generates monitoring data based on monitoring data type and update table;

Monitoring data update table is sent to mobile terminal by server, and receives the third monitoring number of mobile terminal feedback According to.

The specific implementation mode of mobile terminal of the present invention and each embodiment of above application method for monitoring performance are essentially identical, This is repeated no more.

The present invention also provides a kind of computer readable storage medium, there are one the computer-readable recording medium storages Either more than one program the one or more programs can also be executed by one or more than one processor with For:

Mobile terminal receives the list to be monitored that server is sent;

Mobile terminal is based on list to be monitored and obtains all applications to be monitored and monitoring data type, the monitoring data class Type includes data processing type and resource consumption type;

The first monitoring data and resource consumption type of data processing type in each application to be monitored of mobile terminal acquisition The second monitoring data;

First monitoring data and the second monitoring data are sent to server by mobile terminal, so that server is analyzed.

Computer readable storage medium specific implementation mode of the present invention and each embodiment base of above application method for monitoring performance This is identical, and details are not described herein.

It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.

The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.

Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.

It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of application performance monitoring method, which is characterized in that the application performance monitoring method is applied to mobile terminal, described to answer Include with method for monitoring performance:
Mobile terminal receives the list to be monitored that server is sent;
Mobile terminal is based on list to be monitored and obtains all applications to be monitored and monitoring data type, the monitoring data type packet Include data processing type and resource consumption type;
The of the first monitoring data and resource consumption type of data processing type in each application to be monitored of mobile terminal acquisition Two monitoring datas;
First monitoring data and the second monitoring data are sent to server by mobile terminal, so that server is analyzed.
2. application performance monitoring method as described in claim 1, which is characterized in that
The first monitoring data and resource consumption type of data processing type in each application to be monitored of mobile terminal acquisition The second monitoring data the step of include:
Interface refresh rate, network link information and the storehouse of each application to be monitored of mobile terminal acquisition acquire information, to obtain First monitoring data;
CPU usage, memory usage and the thread occupancy of each application to be monitored of mobile terminal acquisition, to obtain the second prison Control data.
3. application performance monitoring method as described in claim 1, which is characterized in that the application performance monitoring method is also wrapped It includes:
Mobile terminal receives the monitoring data that server is sent and updates table, and updates monitoring data class based on monitoring data update table Type;
Mobile terminal acquires the third monitoring data of new monitoring data type;
Third monitoring data is sent to server by mobile terminal.
4. a kind of application performance monitoring method, which is characterized in that the application performance monitoring method is applied to server, the application Method for monitoring performance includes:
Server sends list to be monitored to mobile terminal, and the list to be monitored includes application to be monitored and monitoring data class Type;
Server receives the first monitoring data and the second monitoring data that mobile terminal is sent;
Server carries out data analysis to the first monitoring data and the second monitoring data respectively, obtains analysis result to generate performance Test report.
5. application performance monitoring method as claimed in claim 4, which is characterized in that first monitoring data includes interface brush New rate, network link information and storehouse acquire information, and the network link information includes network connection speed, the server pair First monitoring data carry out data analysis the step of include:
When server detects that interface refresh rate is less than first threshold, the insufficient analysis result of output frame rate;
When server detects that network link information is that exception information or network connection speed are less than second threshold, network is exported Link the analysis result of failure;
When server detects that storehouse acquisition information is exception information, output data calls chaotic analysis result.
6. application performance monitoring method as claimed in claim 4, which is characterized in that second monitoring data includes that CPU is accounted for With rate, memory usage and thread occupancy, the step of the second monitoring data of the server pair carries out data analysis, includes:
When server detects that CPU usage is more than third threshold value, the unreasonable analysis result of output resource distribution;
When server detects that memory usage is more than four threshold values, the unreasonable analysis result of the output utilization of resources;
When server detects that thread occupancy is more than five threshold values, output function designs unreasonable analysis result.
7. application performance monitoring method as claimed in claim 6, which is characterized in that the application performance monitoring method is also wrapped It includes:
Server obtains new monitoring data type, and generates monitoring data based on monitoring data type and update table;
Monitoring data update table is sent to mobile terminal by server, and receives the third monitoring data of mobile terminal feedback.
8. a kind of monitoring system, which is characterized in that the monitoring system includes mobile terminal and server,
The mobile terminal includes:
First receiving module, the list to be monitored for receiving server transmission;
Acquisition module, for obtaining all applications to be monitored and monitoring data type, the monitoring data based on list to be monitored Type includes data processing type and resource consumption type;
First acquisition module, the first monitoring data and resource consumption for acquiring data processing type in each application to be monitored Second monitoring data of type;
First sending module, for the first monitoring data and the second monitoring data to be sent to server, so that server carries out Analysis;
The server includes:
Second sending module, for sending list to be monitored to mobile terminal, the list to be monitored include application to be monitored and Monitoring data type;
Second receiving module, the first monitoring data and the second monitoring data for receiving mobile terminal transmission;
Analysis module, for carrying out data analysis to the first monitoring data and the second monitoring data respectively, obtain analysis result with Generate performance test report.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes:Memory, processor, communication bus and storage Application performance monitoring programme on the memory,
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the application performance monitoring programme, to realize as described in any one of claim 1 to 7 The step of application performance monitoring method.
10. a kind of computer readable storage medium, which is characterized in that be stored with application on the computer readable storage medium Energy monitoring programme, is realized when the application performance monitoring programme is executed by processor as described in any one of claim 1 to 7 The step of application performance monitoring method.
CN201711399047.XA 2017-12-21 2017-12-21 application performance monitoring method, system, terminal and computer readable storage medium CN108337127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711399047.XA CN108337127A (en) 2017-12-21 2017-12-21 application performance monitoring method, system, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711399047.XA CN108337127A (en) 2017-12-21 2017-12-21 application performance monitoring method, system, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108337127A true CN108337127A (en) 2018-07-27

Family

ID=62923307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711399047.XA CN108337127A (en) 2017-12-21 2017-12-21 application performance monitoring method, system, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108337127A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999418A (en) * 2012-11-16 2013-03-27 广东欧珀移动通信有限公司 Mobile phone monitoring method based on PC (personal computer) side
CN103631703A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Software performance testing method and device in Android device
CN105144118A (en) * 2013-03-18 2015-12-09 微软技术许可有限责任公司 Application testing and analysis
CN105637497A (en) * 2013-07-12 2016-06-01 谷歌公司 Methods and systems for performance monitoring for mobile applications
CN106874168A (en) * 2017-01-12 2017-06-20 北京奇虎科技有限公司 Determine method, device and the mobile terminal of application program runnability
CN107273263A (en) * 2017-05-26 2017-10-20 努比亚技术有限公司 A kind of analysis method of misoperation, application terminal and monitoring server
CN107436840A (en) * 2017-08-01 2017-12-05 北京奇虎科技有限公司 Application program analysis of running performance method, apparatus and system
CN107463481A (en) * 2017-07-26 2017-12-12 努比亚技术有限公司 Data interactive method, mobile terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631703A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Software performance testing method and device in Android device
CN102999418A (en) * 2012-11-16 2013-03-27 广东欧珀移动通信有限公司 Mobile phone monitoring method based on PC (personal computer) side
CN105144118A (en) * 2013-03-18 2015-12-09 微软技术许可有限责任公司 Application testing and analysis
CN105637497A (en) * 2013-07-12 2016-06-01 谷歌公司 Methods and systems for performance monitoring for mobile applications
CN106874168A (en) * 2017-01-12 2017-06-20 北京奇虎科技有限公司 Determine method, device and the mobile terminal of application program runnability
CN107273263A (en) * 2017-05-26 2017-10-20 努比亚技术有限公司 A kind of analysis method of misoperation, application terminal and monitoring server
CN107463481A (en) * 2017-07-26 2017-12-12 努比亚技术有限公司 Data interactive method, mobile terminal and storage medium
CN107436840A (en) * 2017-08-01 2017-12-05 北京奇虎科技有限公司 Application program analysis of running performance method, apparatus and system

Similar Documents

Publication Publication Date Title
US10521326B2 (en) System and method for analyzing big data activities
US9323547B2 (en) Virtual machine and/or multi-level scheduling support on systems with asymmetric processor cores
US9244802B2 (en) Resource user interface
US9778721B2 (en) Method and device for monitoring power consumption of application in android terminal
CN102789305B (en) Postponing suspend
TWI533205B (en) Application lifetime management
US8286035B2 (en) Operations management apparatus, operations management system, data processing method, and operations management program
US10191529B2 (en) Real-time data management for a power grid
US20150288778A1 (en) Assigning shared catalogs to cache structures in a cluster computing system
US9628541B2 (en) Runtime grouping of tuples in a streaming application
CN103797436B (en) For the dynamic power optimization of calculation element
US7941136B2 (en) Mobile phone network optimisation systems
US5922051A (en) System and method for traffic management in a network management system
US7454427B2 (en) Autonomic control of a distributed computing system using rule-based sensor definitions
US8671099B2 (en) Clustering devices in an internet of things (‘IoT’)
EP2196050B1 (en) Mobile phone network optimisation systems
CN102831894B (en) Command processing method, command processing device and command processing system
US9367803B2 (en) Predictive analytics for information technology systems
US20130288686A1 (en) Techniques to manage energy savings for interoperable radio access technology networks
CN102213997B (en) Method and apparatus for interrupt power management
US10637743B2 (en) Hierarchical network analysis service
US20160261702A1 (en) Method And Apparatus For Processing Page Operation Data
US8307170B2 (en) Information processing method and system
Sabuncuoglu et al. Analysis of serial production lines: characterisation study and a new heuristic procedure for optimal buffer allocation
US8473602B2 (en) System and method for autonomic system management through modulation of network controls

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