CN106357480B - Method and device for monitoring network performance of application and mobile terminal - Google Patents

Method and device for monitoring network performance of application and mobile terminal Download PDF

Info

Publication number
CN106357480B
CN106357480B CN201611037910.2A CN201611037910A CN106357480B CN 106357480 B CN106357480 B CN 106357480B CN 201611037910 A CN201611037910 A CN 201611037910A CN 106357480 B CN106357480 B CN 106357480B
Authority
CN
China
Prior art keywords
network
monitoring information
access
monitoring
network access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611037910.2A
Other languages
Chinese (zh)
Other versions
CN106357480A (en
Inventor
章炎
张新勇
杨俊宝
王谋林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Oneapm Communication Technology Co Ltd
Original Assignee
Beijing Oneapm Communication Technology 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 Beijing Oneapm Communication Technology Co Ltd filed Critical Beijing Oneapm Communication Technology Co Ltd
Priority to CN201611037910.2A priority Critical patent/CN106357480B/en
Publication of CN106357480A publication Critical patent/CN106357480A/en
Application granted granted Critical
Publication of CN106357480B publication Critical patent/CN106357480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Abstract

The invention discloses a method and a device for monitoring network performance of an application and a mobile terminal. The method for monitoring the network performance of the application comprises the following steps. At least one part of each network request message of the monitored application and at least one part of the corresponding response message are collected, and at least one part of each collected network request message and at least one part of the corresponding response message are stored as one piece of monitoring information in the message queue. And according to the time sequence, judging whether the network access address corresponding to each piece of monitoring information in the message queue is abnormal every other preset time, and classifying the determined monitoring information with normal network access address based on a preset classification type. Transmitting the classified monitoring information to a monitoring server.

Description

Method and device for monitoring network performance of application and mobile terminal
Technical Field
The invention relates to the field of software monitoring, in particular to a method and a device for monitoring network performance of an application and a mobile terminal.
Background
With the development of mobile internet technology, APP of mobile terminals is being developed in large quantities. Users are also becoming more and more accustomed to various activities such as information browsing, shopping or working through the APP of mobile terminals. The network performance of the mobile terminal APP has a significant impact on the user experience.
Currently, in order to test the network performance of a mobile terminal APP, a tester may determine the network performance of the APP by obtaining a network access log about the APP. However, the monitoring scheme based on the acquisition log is only suitable for the development and debugging stage of the APP, and cannot collect network performance data when a real user uses the APP.
The present invention therefore proposes a new technique for monitoring the network performance of an application.
Disclosure of Invention
To this end, the present invention provides a new solution for monitoring network performance of an application, which effectively solves at least one of the above problems.
According to an aspect of the present invention, there is provided a method of monitoring network performance of an application, adapted to be executed in a monitored application of a mobile terminal. The method comprises the following steps. At least one part of each network request message of the monitored application and at least one part of the corresponding response message are collected, and at least one part of each collected network request message and at least one part of the corresponding response message are stored as one piece of monitoring information in the message queue. And according to the time sequence, judging whether the network access address corresponding to each piece of monitoring information in the message queue is abnormal every other preset time, and classifying the determined monitoring information with normal network access address based on a preset classification type. Transmitting the classified monitoring information to a monitoring server.
Optionally, the method for monitoring the network performance of the application according to the present invention further includes deleting the monitoring information of the determined network access address abnormality. The predetermined classification types include: network errors, http response exceptions, and http response normality.
Optionally, in the method for monitoring network performance of an application according to the present invention, the operation of collecting at least a part of each network request message and at least a part of a corresponding response message of the monitored application includes the following steps. Collecting http request message header information, current request time, network access address, request mode, network connection mode and network operation state in each network request message. And acquiring response message header information, access end time and a state code in the corresponding response message.
Optionally, the method for monitoring network performance of an application according to the present invention further comprises the following steps. And classifying the normal monitoring information of the network access address according to the network access address, and counting the monitoring information corresponding to each network access address to obtain a corresponding performance index. Transmitting the obtained performance index to the monitoring server. The obtained performance indexes comprise the access times of each network access address, the maximum value of the single access time length, the minimum value of the single access time length and the total access time length.
According to yet another aspect of the present invention, there is provided an apparatus for monitoring network performance of an application, adapted to reside in an application of a mobile terminal. The device comprises an acquisition unit, a processing unit and a transmission unit.
The collecting unit is suitable for collecting at least one part of each network request message of the monitored application and at least one part of the corresponding response message, and storing at least one part of each collected network request message and at least one part of the corresponding response message as one piece of monitoring information in the message queue. The processing unit is suitable for judging whether the network access address corresponding to each piece of monitoring information in the message queue is abnormal or not at intervals of preset time according to the time sequence, and classifying the determined monitoring information with normal network access address based on a preset classification type. The transmission unit is adapted to transmit the classified monitoring information to the monitoring server.
According to a further aspect of the present invention there is provided a mobile terminal comprising one or more applications hosting a network performance monitoring apparatus according to the present invention.
According to the technical scheme for monitoring the network performance of the application, the network access process involved in the running process of the application can be monitored so as to continuously acquire the monitoring information (such as at least one part of the request and response messages) about the network access. In particular, the monitoring scheme of the present invention may classify a plurality of pieces of monitoring information in a batch and provide the classified monitoring information to the monitoring server. In addition, the monitoring scheme of the invention can classify the monitoring information according to the network access address and count the corresponding performance index. In this way, the monitoring scheme of the present invention can dynamically provide the latest performance index values (e.g., the number of accesses per network access address, the maximum value of the single access duration, the minimum value of the single access duration, the total access duration, etc.) to the monitoring server.
In conclusion, the monitoring scheme of the invention can continuously monitor the performance data of the real user when the real user uses the application to access the network.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 illustrates a block diagram of a mobile terminal 100 according to some embodiments of the present invention;
FIG. 2 illustrates a schematic diagram of an apparatus 200 for monitoring network performance of an application, according to some embodiments of the invention;
FIG. 3 illustrates a flow diagram of a method 300 of monitoring network performance of an application, in accordance with some embodiments of the invention; and
FIG. 4 illustrates a flow diagram of a method 400 of monitoring network performance of an application in accordance with some embodiments of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a block diagram of a mobile terminal 100. The mobile terminal 100 may include a memory interface 102, one or more data processors, image processors and/or central processing units 104, and a peripheral interface 106.
The memory interface 102, the one or more processors 104, and/or the peripherals interface 106 can be discrete components or can be integrated in one or more integrated circuits. In the mobile terminal 100, the various elements may be coupled by one or more communication buses or signal lines. Sensors, devices, and subsystems can be coupled to peripheral interface 106 to facilitate a variety of functions.
For example, a motion sensor 110, a light sensor 112, and a distance sensor 114 may be coupled to the peripheral interface 106 to facilitate directional, lighting, and ranging functions. Other sensors 116 may also be coupled to the peripheral interface 106, such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, or other sensing device, to facilitate related functions.
The camera subsystem 120 and optical sensor 122, which may be, for example, a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) optical sensor, may be used to facilitate implementation of camera functions such as recording photographs and video clips. Communication functions may be facilitated by one or more wireless communication subsystems 124, which may include radio frequency receivers and transmitters and/or optical (e.g., infrared) receivers and transmitters. The particular design and implementation of the wireless communication subsystem 124 may depend on the one or more communication networks supported by the mobile terminal 100. For example, the mobile terminal 100 may include a network designed to support LTE, 3G, GSM networks, GPRS networks, EDGE networks, Wi-Fi or WiMax networks, and BluetoothTMA communication subsystem 124 of the network.
The audio subsystem 126 may be coupled to a speaker 128 and a microphone 130 to facilitate voice-enabled functions, such as voice recognition, voice replication, digital recording, and telephony functions. The I/O subsystem 140 may include a touch screen controller 142 and/or one or more other input controllers 144. The touch screen controller 142 may be coupled to a touch screen 146. For example, the touch screen 146 and touch screen controller 142 may detect contact and movement or pauses made therewith using any of a variety of touch sensing technologies, including but not limited to capacitive, resistive, infrared, and surface acoustic wave technologies. One or more other input controllers 144 may be coupled to other input/control devices 148 such as one or more buttons, rocker switches, thumbwheels, infrared ports, USB ports, and/or pointing devices such as styluses. The one or more buttons (not shown) may include up/down buttons for controlling the volume of the speaker 128 and/or microphone 130.
The memory interface 102 may be coupled with a memory 150. The memory 150 may include high speed random access memory and/or non-volatile memory, such as one or more magnetic disk storage devices, one or more optical storage devices, and/or flash memory (e.g., NAND, NOR). The memory 150 may store an operating system 172, such as an operating system like Android, iOS or Windows Phone. The operating system 172 may include instructions for handling basic system services and for performing hardware dependent tasks. The memory 150 may also store applications 174. While the mobile device is running, the operating system 172 is loaded from the memory 150 and executed by the processor 104. The application 174, when running, is also loaded from the memory 150 and executed by the processor 104. Applications 174 run on top of operating system 172 and utilize the interface provided by operating system 172 and the underlying hardware to implement various user-desired functions, such as instant messaging, web browsing, picture management, and the like. The application 174 may be provided independent of the operating system or may be self-contained.
In general, the network performance of each of the applications 174 may greatly affect the user experience. The invention provides a technical scheme for monitoring the network performance of application, namely, a monitoring device (which can also be called a probe) is integrated in the application to be monitored. For example, the monitored application shown in fig. 1 has resident thereon an apparatus 200 for monitoring network performance. The apparatus 200 of the present invention is configured to collect various network performance data of a monitored application in accessing a network.
It should be noted that, when accessing the network, the application usually needs to call the operating system (172) or a network communication unit provided by a third party. In other words, the application sends the network request message through the network communication unit. The network communication unit notifies the application when receiving the corresponding response message. In one embodiment according to the invention, the probes may be integrated into the application being monitored by JAVA bytecode rewriting technology (e.g., JAVA ASM). For details of the related art of ASM, see: http:// asm.ow2.org, which is not described in detail herein. More specifically, embodiments of the present invention may be configured to replace the network interface of the monitored application with an interface that includes the ability to collect network data. On the basis, the probe can acquire network data in the process that the monitored application accesses the network. Thus, the probe of the present invention can monitor the network performance of the monitored application in a real use environment when the application is used by a user. The apparatus 200 for monitoring network performance of an application of the present invention is further illustrated with reference to fig. 2.
Fig. 2 illustrates a schematic diagram of an apparatus 200 for monitoring network performance of an application according to some embodiments of the invention. The apparatus 200 is adapted to reside in a monitored application. In other words, the apparatus 200 may be considered a component of the monitored application.
As shown in fig. 2, the apparatus 200 includes an acquisition unit 210, a processing unit 220, and a transmission unit 230. Wherein the collecting unit 210 is adapted to collect at least a part of each network request message and at least a part of the corresponding response message of the monitored application. In other words, the collecting unit 210 may collect the network performance related data from each network request message and the response message corresponding to the request. Further, the collecting unit 210 may store at least a portion of each collected network request message and at least a portion of the corresponding response message as one piece of monitoring information in the message queue. In an embodiment of the present invention, the collecting unit 210 may collect http request header information, current request time, network access address, request mode, network connection mode, and network operation state in each network request message. In addition, the collecting unit 210 may also collect response message header information, response data length, access end time, and status code in the response message. It should be noted that the data included in the monitoring information is not limited to the data shown in the above embodiments, and may also be configured to include more or less network data than the above embodiments. In yet another embodiment according to the invention, each piece of monitoring information corresponds to an access transaction. Wherein, the current request time in the monitoring information corresponds to the opening time of the access transaction. The access end time in the monitoring information corresponds to the end time of the access transaction. In other words, the acquisition unit 210 may monitor the entire execution process of an access transaction and obtain corresponding monitoring information.
In addition, the message queue can store a plurality of pieces of monitoring information. Here, the message queue may be configured as various well-known data structures, and the present invention is not limited thereto. On this basis, the processing unit 220 may select to batch process the monitoring information in the message queue. In one embodiment according to the present invention, the processing unit 220 may process the monitoring information according to a predetermined cycle (duration), for example. For example, the predetermined period may be 2s, but is not limited thereto. Accordingly, the processing unit 220 may process the monitoring information in the message queue once every 2 seconds. In yet another embodiment according to the present invention, the processing unit 220 may monitor the amount of monitoring information in the message queue and process the monitoring information therein when the amount reaches a threshold (e.g., 20). In yet another embodiment according to the present invention, the transmission unit 230 is configured to include a timing module (not shown). At each timing arrival, the transmission unit 230 may instruct the processing unit 220 to process the monitored information in the message queue. As described above, by processing the monitored information in the message queue in batches, the processing unit 220 may avoid too frequent processing operations. The specific operation of the processing unit 220 is explained below.
The processing unit 220 is adapted to determine whether the network access address corresponding to each piece of monitoring information in the message queue is abnormal. Further, the processing unit 220 may classify the determined monitoring information that the network access address is normal based on a predetermined classification type. In one embodiment according to the present invention, the processing unit 220 first determines whether the network access address is empty. If the address is empty, the processing unit 220 may determine that the network access address is abnormal and delete the corresponding monitoring information. In addition, the processing unit 220 determines that the format of the network access address is wrong, and may also determine that the address is abnormal, and delete the corresponding monitoring information. Here, the network access address may be in the format of an IP address or a domain name, for example.
When determining that the network access address is normal, the processing unit 220 may classify the monitoring information that the network access address is normal according to a predetermined classification type. Embodiments of the present invention may employ a variety of classification rules to group monitoring information depending on the classification requirements for the network data. In one embodiment according to the invention, the predetermined classification types may include network error, http response exception, and http response normal. In this embodiment, the classification type is determined based on the response status code. For example, the processing unit 220 may extract the monitoring information with the response status code greater than 1000 into the network error corresponding set. The processing unit 220 extracts the monitoring information of which the response status code is larger than 400 and smaller than 1000 into the http response exception corresponding set. And extracting the monitoring information with the response code of 200 into a set with normal http response. In addition, each time the processing unit 220 completes the classification operation, the message queue may be emptied, so that the collecting unit 210 continues to store new monitoring information into the message queue.
For the classified monitoring information, the transmission unit 230 may transmit it to the monitoring server. Therefore, the monitoring server can perform subsequent analysis on the network performance of the APP in actual use according to the received monitoring information.
In addition, the processing unit 230 of the present invention may be further configured to classify the monitoring information of the network access addresses that are normal according to the network access addresses, and count the monitoring information corresponding to each network access address to obtain the corresponding performance index. In particular, the network access address used for the classification may be, for example, a main web address. The processing unit 230 may classify the monitoring information corresponding to the access address containing the main address into a set. On this basis, the processing unit 230 may count the number of accesses to the main address, the maximum value of the single access time length, the minimum value of the single access time length, the total access time length, and the like. In addition, the processing unit 230 of the present invention can also count and calculate a wider variety of performance indicators, which is not limited by the present invention. It should be noted that the processing unit 230 may be configured to count the monitoring information for each predetermined time period. In addition, the processing unit 230 may also be configured to update the performance index value corresponding to each network access address after processing the monitoring information in the message queue every predetermined time. The updated performance indicator value is a statistical result of the monitoring information over a plurality of predetermined time periods. Accordingly, the transmission unit 230 may transmit the performance indicator to the monitoring server.
In summary, the apparatus 200 according to the present invention can monitor the network access process involved in the application operation process to continuously obtain monitoring information (e.g. at least a part of the request and response messages) about the network access. In particular, the apparatus 200 of the present invention may classify a plurality of pieces of monitoring information in a batch and provide the classified monitoring information to the monitoring server. In addition, the apparatus 200 of the present invention may classify the monitoring information according to the network access address and count the corresponding performance index. In this way, the monitoring scheme of the present invention can dynamically provide the latest performance index values (e.g., the number of accesses per network access address, the maximum value of the single access duration, the minimum value of the single access duration, the total access duration, etc.) to the monitoring server.
FIG. 3 illustrates a flow diagram of a method 300 of monitoring network performance of an application, according to some embodiments of the invention. The method 300 is adapted to be performed in a monitored application of a mobile terminal.
As shown in fig. 3, the method 300 begins at step S310. In step S310, at least a part of each network request message of the monitored application and at least a part of the corresponding response message are collected, and at least a part of each collected network request message and at least a part of the corresponding response message are stored as one piece of monitoring information in the message queue. According to an embodiment of the present invention, in step S310, http request header information, current request time, network access address, request mode, network connection mode, and network operation state in each network request message are collected. In addition, in step S310, response header information, access end time, and status code in the corresponding response message are collected.
For the monitoring information stored in the message queue, the method 300 performs step S320. In step S320, it is determined whether the network access address corresponding to each piece of monitoring information in the message queue is abnormal every predetermined time interval according to the time sequence. When it is determined in step S320 that the network access address in the monitoring information is normal, the method 300 performs step S330. In step S330, the determined monitoring information that the network access address is normal is classified based on a predetermined classification type. According to an embodiment of the invention, the predetermined classification types include, but are not limited to, network error, http response exception, and http response normal.
For the classified monitoring information, the method 300 is adapted to perform step S340. In step S340, the classified monitoring information is transmitted to the monitoring server. For a more detailed implementation of the method 300, reference is made to the above description of the apparatus 200, which is not repeated here.
FIG. 4 illustrates a flow diagram of a method 400 of monitoring network performance of an application in accordance with some embodiments of the invention. The method 400 is adapted to be performed in a monitored application of a mobile terminal.
As shown in fig. 4, the method 400 includes steps S410, S420, S430, and S440. Here, steps S410 to S440 are identical to steps S310 to S340, respectively, and are not described in detail herein.
In addition, when it is determined in step S420 that the network access address in the monitoring information is abnormal, the method 400 performs step S450. In step S450, the monitoring information of the determined network access address abnormality is deleted.
In addition, the method 400 further includes steps S460 and S470. In step S460, the monitoring information with normal network access addresses is classified according to the network access addresses, and the monitoring information corresponding to each network access address is counted to obtain the corresponding performance index. According to an embodiment of the present invention, the performance index obtained in step S460 includes, but is not limited to, the counted number of accesses of each network access address, the maximum value of the single access time duration, the minimum value of the single access time duration, and the total access time duration.
In step S470, the obtained performance indicators are transmitted to the monitoring server. It should be noted that, in some embodiments according to the present invention, step S470 and step S440 may be executed in a combined manner, and the present invention is not limited thereto. In addition, please refer to the above description of the apparatus 200 for a more specific implementation of the method 400, which is not described herein again.
A10, the apparatus as in any of A7-A9, wherein the predetermined classification types comprise: network errors, http response exceptions, and http response normality. A11, the device according to any one of A7-A10, wherein the processing unit is further adapted to classify the monitoring information of the network access addresses according to the network access addresses, and count the monitoring information corresponding to each network access address to obtain the corresponding performance index; the transmission unit is further adapted to transmit the obtained performance indicator to the monitoring server. A12, the apparatus as in A11, wherein the obtained performance indicators comprise: and counting the access times, the maximum value of the single access time length, the minimum value of the single access time length and the total access time length of each network access address.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (11)

1. A method of monitoring network performance of an application, adapted to be executed in a monitored application of a mobile terminal, a network interface of the monitored application being replaced by an interface capable of collecting network data, the method comprising:
acquiring at least one part of each network request message and at least one part of a corresponding response message of the monitored application by using the interface capable of collecting network data, and storing at least one part of each acquired network request message and at least one part of the corresponding response message as one piece of monitoring information in a message queue, wherein each piece of monitoring information corresponds to one access transaction, the current request time in the monitoring information corresponds to the opening time of the access transaction, and the access end time in the monitoring information corresponds to the end time of the access transaction;
according to the time sequence, judging whether the network access address corresponding to each piece of monitoring information in the message queue is empty or wrong in format every preset time interval, if so, determining that the network access address is abnormal, and classifying the monitoring information with normal determined network access address based on a preset classification type, wherein the preset classification type comprises the following steps: network errors, http response exception and http response normality; and
transmitting the classified monitoring information to a monitoring server.
2. The method of claim 1, further comprising deleting monitoring information for the determined network access address anomaly.
3. The method of claim 1 or 2, the collecting at least a portion of each network request message and at least a portion of a corresponding response message for the monitored application comprising:
collecting http request message header information, current request time, a network access address, a request mode, a network connection mode and a network operation state in each network request message;
and acquiring response message header information, access end time and a state code in the corresponding response message.
4. The method of claim 1, further comprising:
classifying the normal monitoring information of the network access addresses according to the network access addresses, and counting the monitoring information corresponding to each network access address to obtain corresponding performance indexes;
transmitting the obtained performance index to the monitoring server.
5. The method of claim 4, wherein the obtained performance indicators comprise:
and counting the access times, the maximum value of the single access time length, the minimum value of the single access time length and the total access time length of each network access address.
6. An apparatus for monitoring network performance of an application, adapted to reside in an application of a mobile terminal, a network interface of the monitored application being replaced by an interface capable of collecting network data, the apparatus comprising:
the acquisition unit is suitable for acquiring at least one part of each network request message and at least one part of a corresponding response message of the monitored application by using the interface capable of collecting the network data, and storing at least one part of each acquired network request message and at least one part of a corresponding response message as one piece of monitoring information in a message queue, wherein each piece of monitoring information corresponds to one access transaction, the current request time in the monitoring information corresponds to the opening time of the access transaction, and the access end time in the monitoring information corresponds to the end time of the access transaction;
the processing unit is suitable for judging whether the network access address corresponding to each piece of monitoring information in the message queue is empty or wrong in format or not at intervals of preset time according to the time sequence, if yes, the network access address is determined to be abnormal, and the monitoring information with the normal network access address is classified based on preset classification types, wherein the preset classification types comprise: network errors, http response exception and http response normality;
a transmission unit adapted to transmit the classified monitoring information to a monitoring server.
7. The apparatus of claim 6, wherein the processing unit is further adapted to delete monitoring information for the determined network access address anomaly.
8. The apparatus according to claim 6 or 7, the collecting unit being adapted to perform the operation of collecting at least a part of each network request message and at least a part of a corresponding response message of a monitored application according to:
collecting http request message header information, current request time, a network access address, a request mode, a network connection mode and a network operation state in each network request message;
and acquiring response message header information, response data length, access end time and a state code in the corresponding response message.
9. The apparatus of claim 6, wherein the processing unit is further adapted to classify the monitoring information of the network access addresses that are normal according to the network access addresses, and count the monitoring information corresponding to each network access address to obtain a corresponding performance index;
the transmission unit is further adapted to transmit the obtained performance indicator to the monitoring server.
10. The apparatus of claim 9, wherein the obtained performance indicators comprise:
and counting the access times, the maximum value of the single access time length, the minimum value of the single access time length and the total access time length of each network access address.
11. A mobile terminal, comprising: one or more applications hosting the apparatus of any of claims 6-10.
CN201611037910.2A 2016-11-23 2016-11-23 Method and device for monitoring network performance of application and mobile terminal Active CN106357480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611037910.2A CN106357480B (en) 2016-11-23 2016-11-23 Method and device for monitoring network performance of application and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611037910.2A CN106357480B (en) 2016-11-23 2016-11-23 Method and device for monitoring network performance of application and mobile terminal

Publications (2)

Publication Number Publication Date
CN106357480A CN106357480A (en) 2017-01-25
CN106357480B true CN106357480B (en) 2020-02-14

Family

ID=57861774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611037910.2A Active CN106357480B (en) 2016-11-23 2016-11-23 Method and device for monitoring network performance of application and mobile terminal

Country Status (1)

Country Link
CN (1) CN106357480B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696400A (en) * 2017-04-12 2018-10-23 北京京东尚科信息技术有限公司 network monitoring method and device
CN107370806B (en) * 2017-07-12 2020-11-24 北京京东尚科信息技术有限公司 HTTP status code monitoring method, device, storage medium and electronic equipment
CN109271310B (en) * 2017-07-18 2022-07-05 北京京东尚科信息技术有限公司 Development testing method and device for network function of mobile application program
CN107577550B (en) * 2017-08-31 2021-02-09 奇安信科技集团股份有限公司 Method and device for determining whether response of access request is abnormal
CN107994943B (en) * 2017-12-05 2020-04-10 中盈优创资讯科技有限公司 Parameter acquisition system, method and computer-readable storage medium
CN109992470B (en) * 2017-12-29 2022-11-22 北京国双科技有限公司 Threshold value adjusting method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868548A (en) * 2012-08-15 2013-01-09 苏州迈科网络安全技术股份有限公司 Method and system for detecting distribution of application performance influenced users
CN102902621A (en) * 2011-07-28 2013-01-30 塔塔咨询服务有限公司 Application performance measurement and reporting
CN105068876A (en) * 2015-07-01 2015-11-18 北京博睿宏远科技发展有限公司 Method for acquiring mobile phone APP performance data based on distributed true phones
CN105138460A (en) * 2015-09-18 2015-12-09 北京恒华伟业科技股份有限公司 Software testing method and system
CN106100895A (en) * 2016-07-11 2016-11-09 东软集团股份有限公司 Application performance achievement data acquisition method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902621A (en) * 2011-07-28 2013-01-30 塔塔咨询服务有限公司 Application performance measurement and reporting
CN102868548A (en) * 2012-08-15 2013-01-09 苏州迈科网络安全技术股份有限公司 Method and system for detecting distribution of application performance influenced users
CN105068876A (en) * 2015-07-01 2015-11-18 北京博睿宏远科技发展有限公司 Method for acquiring mobile phone APP performance data based on distributed true phones
CN105138460A (en) * 2015-09-18 2015-12-09 北京恒华伟业科技股份有限公司 Software testing method and system
CN106100895A (en) * 2016-07-11 2016-11-09 东软集团股份有限公司 Application performance achievement data acquisition method and system

Also Published As

Publication number Publication date
CN106357480A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN106357480B (en) Method and device for monitoring network performance of application and mobile terminal
CN105376335B (en) Collected data uploading method and device
JP6874950B2 (en) Methods, devices, and systems for detecting fraudulent software promotions
WO2018113385A1 (en) Method and system for dynamically tracking application of client, client, and server
CN107273263B (en) Abnormal operation analysis method, application terminal and monitoring server
US20160350170A1 (en) System for Monitoring and Tracking Application Crashes Occurring on Different Mobile Devices
US20140059388A1 (en) Diagnostic and performance data collection
CN105553770B (en) Data acquisition control method and device
CN108134816B (en) Access to data on remote device
WO2015193727A1 (en) Method, apparatus and readable medium for an api notifying an application that qos will change in future
CN107102950A (en) A kind of applied program testing method and device
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN109688094A (en) Suspicious IP configuration method, device, equipment and storage medium based on network security
US9774508B1 (en) Communication generation using sparse indicators and sensor data
CN108365982A (en) Unit exception adjustment method, device, equipment and storage medium
KR20140122964A (en) Apparatus and system for detecting malware based on cloud and method thereof
CN108984417B (en) Software testing method, device, terminal and storage medium
US20130290495A1 (en) Method of setting optimal ping interval and electronic device therefor
CN114281648A (en) Data acquisition method and device, electronic equipment and storage medium
CN106294087B (en) Statistical method and device for operation frequency of business execution operation
CN110377444B (en) Fault alarm method, device, electronic equipment and computer readable storage medium
CN109726550B (en) Abnormal operation behavior detection method and device and computer readable storage medium
CN106502899B (en) Application monitoring method, device, mobile terminal and system
CN112241362A (en) Test method, test device, server and storage medium
CN105262829B (en) Geographical position monitoring method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant