CN104932970A - Monitoring method and device of memory leakage - Google Patents

Monitoring method and device of memory leakage Download PDF

Info

Publication number
CN104932970A
CN104932970A CN201510290517.3A CN201510290517A CN104932970A CN 104932970 A CN104932970 A CN 104932970A CN 201510290517 A CN201510290517 A CN 201510290517A CN 104932970 A CN104932970 A CN 104932970A
Authority
CN
China
Prior art keywords
sample information
intended application
monitoring sample
sampling time
ram leakage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510290517.3A
Other languages
Chinese (zh)
Inventor
李明浩
王广健
刘洪杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510290517.3A priority Critical patent/CN104932970A/en
Publication of CN104932970A publication Critical patent/CN104932970A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a monitoring method and device of memory leakage. The method comprises the following steps: obtaining multiple pieces of monitoring sampling information of a target application, wherein the monitoring sampling information is regularly acquired within a preset time in which the monitored target application is subjected to a pressure test, and each piece of monitoring sampling information comprises sampling time and an occupied memory corresponding to each object contained in the target application within the sampling time; and sending the multiple pieces of monitoring sampling information within the preset time to data processing equipment to cause the data processing equipment to determine the object with memory leakage in the target application according to the monitoring sampling information. The monitoring method and device can find the object with memory leakage in the application in time.

Description

RAM leakage method for supervising and device
Technical field
The disclosure relates to computer technology, particularly a kind of RAM leakage method for supervising and device.
Background technology
Along with the development of computer technology, people can use multiple application (APP) on the smart mobile phone of oneself, such as, for the various types of Android application of the mobile phone development of android system, can download on mobile phone for user and use.
Summary of the invention
The disclosure provides a kind of RAM leakage method for supervising and device, there is the object of RAM leakage in the development phase Timeliness coverage application of applying at Android.
According to the first aspect of disclosure embodiment, a kind of RAM leakage method for supervising is provided, comprises:
Obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
Multiple monitoring sample information in the described schedule time are sent to data processing equipment, determine to occur in described intended application the object of RAM leakage to make described data processing equipment according to described multiple monitoring sample information.
According to the second aspect of disclosure embodiment, a kind of RAM leakage method for supervising is provided, comprises:
Receive the multiple monitoring sample information in the schedule time of test terminal transmission, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
According to the committed memory of described sampling time and correspondence, determine the object that RAM leakage occurs in described intended application.
According to the third aspect of disclosure embodiment, a kind of RAM leakage supervising device is provided, comprises:
Monitoring acquisition module, for obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
Information transmission modular, for the multiple monitoring sample information in the described schedule time are sent to data processing equipment, determines to occur in described intended application the object of RAM leakage to make described data processing equipment according to described multiple monitoring sample information.
According to the fourth aspect of disclosure embodiment, a kind of RAM leakage supervising device is provided, comprises:
Information receiving module, for receiving the multiple monitoring sample information in the schedule time of test terminal transmission, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
Reveal analysis module, for the committed memory according to described sampling time and correspondence, determine the object that RAM leakage occurs in described intended application.
According to the 5th aspect of disclosure embodiment, a kind of test terminal is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to: obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory; Multiple monitoring sample information in the described schedule time are sent to data processing equipment, determine to occur in described intended application the object of RAM leakage to make described data processing equipment according to described multiple monitoring sample information.
According to the 6th aspect of disclosure embodiment, a kind of data processing equipment is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to: receive the multiple monitoring sample information in the schedule time of test terminal transmission, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory; According to the committed memory of described sampling time and correspondence, determine the object that RAM leakage occurs in described intended application.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by the sample information of acquisition applications regular in monitoring period, this sample information comprises the committed memory being applied in different time, make it possible to analytical applications accordingly and, in the change of each time committed memory, and in Timeliness coverage application, the object of RAM leakage occurs.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the enforcement scene of a kind of RAM leakage monitoring according to an exemplary embodiment;
Fig. 2 is the process flow diagram of a kind of RAM leakage method for supervising according to an exemplary embodiment;
Fig. 3 is the process flow diagram of the another kind of RAM leakage method for supervising according to an exemplary embodiment;
Fig. 4 is the structural drawing of a kind of RAM leakage supervising device according to an exemplary embodiment;
Fig. 5 is the structural drawing of the another kind of RAM leakage supervising device according to an exemplary embodiment;
Fig. 6 is the block diagram of a kind of test terminal according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of data processing equipment according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
For the Android application that the smart mobile phone of Android operation system is developed, may occur that RAM leakage does not discharge after being namely applied in and using internal memory completely because the application memory caused lack of standardization of encoding is revealed, cause application committed memory to increase gradually; If RAM leakage occurs in application, application may be caused normally to run, have a strong impact on Consumer's Experience.
And RAM leakage occurs in Android application, normally apply the object comprised and reveal, such as, object cannot discharge after committed memory.RAM leakage method for supervising of the present disclosure, can in the development phase of Android application, just there is the object of RAM leakage in monitoring application in real time, to notify developer in time, like this can when occurring that OOM (Out of Memory, RAM leakage) is abnormal, developer can according to the object of the RAM leakage of Timeliness coverage, optimize application and development program targetedly, promote the stability of application.
Fig. 1 illustrates the enforcement scene of RAM leakage of the present disclosure monitoring, the monitoring that jointly can realize RAM leakage by test terminal 11 and data processing equipment 12.Wherein, test terminal 11 can provide the Android of the monitoring running environment applied, such as, can provide Android operation system, and in the Android application that this system cloud gray model is developed.Test terminal 11 can when running Android application, obtain the information that this application runs, and information transmission is processed to data processing equipment 12, there occurs RAM leakage with which object in the Android determining according to information to run test terminal 11 application.
Test terminal 11 performs the method for supervising of Fig. 2 example, and data processing equipment 12 performs the method for supervising shown in Fig. 3, flow process as follows:
201, obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in this sampling time distinguish corresponding committed memory;
202, the multiple monitoring sample information in the schedule time are sent to data processing equipment, to make data processing equipment according to the object that RAM leakage occurs in multiple monitoring sample information determination intended application.
301, receive the multiple monitoring sample information in the schedule time of test terminal transmission, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
302, according to the committed memory of described sampling time and correspondence, the object that RAM leakage occurs in described intended application is determined.
Wherein, in 201, suppose that developing a Android applies, above-mentioned Android application can be run in the test terminal 11 of having installed android system, and suppose that the situation of RAM leakage has appearred in this Android application.The disclosure (such as, 1 minute or 10 minutes) can carry out pressure test to the application occurring RAM leakage in the given time.The user of pressure test and simulation application to the use operation of application, such as, clicks the option of operation in this application, and make to apply and run corresponding function, this pressure test is by triggering application committed memory.
Concrete, Android application comprises object class, and application operationally can generate the object instance (Object instance) corresponding with class, and object instance is by committed memory.The present embodiment can carry out repeatedly pressure test, and such as repeatedly function is clicked, and applies the internal memory application and release carried out repeatedly to make above-mentioned Android.If there is RAM leakage in object class, so object instance can not releasing memory completely at end of run, the quantity of the object instance object that this object class is corresponding will get more and more, and each object can committed memory, and the internal memory that so this object takies also can be increasing.The RAM leakage method for supervising of the present embodiment is monitored being used for and is found the generation of above-mentioned situation.
Exemplary, such as can set in the given time the pressure test (such as, clicking the navigation feature button in ten Android application) that (such as, 1 minute) carries out preset times.Within the schedule time of carrying out pressure test, such as above-mentioned exemplary carry out pressure test preset in 1 minute, test terminal 11 can obtain monitoring sample information in 201, the situation of monitoring Android application (this monitored application can be called intended application) the during this period of time committed memory of each object.
Such as, can the monitoring sample information applied of taken at regular intervals Android in Preset Time, such as gather once every 100ms, so just can gather 600 times at Preset Time in 1 minute.The monitoring sample information gathered each time can comprise: the Android of sampling time and correspondence applies committed memory corresponding to each object of comprising.That is, the object can monitored at set intervals in Android application occupies how many internal memories.Can, by following cyclic design, make test terminal can monitor sample information by taken at regular intervals automatically:
BEGIN
While true;do
By sending prearranged signals amount to process corresponding to intended application, make the hprof file generating a band present sample time under/data/misc catalogue, the filename of this file is such as heap-dump-tm1275041385-pid2537.hprof;
The dormancy fixed time;
Done
END
Above by " While true; Do " statement defines a loop body; and what can be circulated in test terminal performs above-mentioned process repeatedly; " dormancy fixed time " as escribed above; can be such as dormancy 100ms; after namely performing above-mentioned information acquisition; interval 100ms performs later again, thus defines the memory occupation information just gathering each object in once monitoring application every 100ms.
Such as, above-mentioned can be the prearranged signals amount sent to process be the semaphore of-10 values, and this semaphore can make generation hprof file.Above-mentioned heap-dump-tm1275041385-pid2537.hprof file, can be called a sampling files, and the tm1275041385 in the filename of this sampling files can be the timestamp in sampling time, and pid2537 can be process identification (PID).Wherein, after operation, Android operation system can be the process that the application start one of this operation is corresponding, i.e. the process of this application, and each process has individual process identification (PID), can be called process ID in Android application, such as, and pid2537.
Can see, each semaphore by sending-10 values to process, just can generate a hprof file, and this file can comprise a monitoring sample information, and information comprises the committed memory of each object in the current application of sampling time and correspondence.The hprof file of above-mentioned generation is a kind of binary heap storage file, is the equal of the snapshot to each object committed memory in application.
In 202 and 301, test terminal 11 can by the sampling files in the schedule time, hprof files passe described above, to data processing equipment 12, analyzes the information of this file storage to determine which the object generation RAM leakage in Android application for data processing equipment 12.A lot of hprof file can be to produced within this schedule time, can will have the file transfer of identical process pid to data processing equipment 12, with ensure these fileinfos corresponding be that same Android applies.In addition, data processing equipment 12 can be such as a data handling machine of server or this locality.
In 302, the monitoring sample information that analytical test terminal 11 is uploaded by data processing equipment 12, to judge in monitored Android application, which object there occurs RAM leakage accordingly.If the object of Android application there occurs RAM leakage, the quantity of the object instance of so this object class generation will get more and more, and the internal memory that object occupies is also by increasing.
The present embodiment does not limit the mode that data processing equipment 12 carries out above-mentioned information analysis, such as, data processing equipment 12 can be use mathematical statistics method, analyze the trend obtaining internal memory which object in monitored Android application takies and increase along with the time, determine object generation RAM leakage; Or data processing equipment 12 can also adopt MAT (Memory Analyzer Tool, memory analysis instrument) to carry out analyzing the situation of RAM leakage.
Such as, before use MAT analyzes, need prof file to carry out format conversion, to be converted to the form that MAT can read, as hprof-conv/data/misc/heap-dump-tm1275041385-pid2537.hpro f pid2537.hprof.Whether MAT by the contrast to two files, obtain some quantity of information and change, and this comparing result also can be shown by view.
Such as, in above-mentioned Preset Time, can the time is initial time gather fileinfo, contrast with the fileinfo gathered at the end of the time, whether number of objects relatively in two files (or perhaps quantity of example object corresponding to certain class) and the size of committed memory increase, if increase obvious, illustrate that this object internal memory never discharges, there is RAM leakage, namely this object class is exactly the object revealed.That is, MAT can according to the multiple hprof files received, carry out the contrast of file, can also be such as, according to the order that the sampling time increases gradually, select File contrasts, and judge that the number of objects of which object in application and committed memory increase progressively increasing along with the time, so this object is exactly the destination object that RAM leakage occurs.
RAM leakage method for supervising of the present disclosure, the situation of each object committed memory in applying monitored Android is monitoring in real time, such as every 100ms just sampling should be carried out committed memory, the mode of this real-time monitoring can ensure the object finding RAM leakage in application quickly, the object of RAM leakage in quick position to application, be beneficial to developer and revise application code targetedly, by development phase of applying at Android with regard to Timeliness coverage RAM leakage, improve stability and the reliability of application, shorten the life cycle of software development, reduction cost of development.
In order to the RAM leakage method for supervising making test terminal perform Fig. 2 example, present disclose provides a kind of RAM leakage supervising device, this device is arranged on test terminal; Be simply described as follows the structure of this device, concrete principle can in conjunction with see embodiment of the method.As shown in Figure 4, RAM leakage supervising device can comprise: monitoring acquisition module 41 and information transmission modular 42; Wherein,
Monitoring acquisition module 41, for obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
Information transmission modular 42, for the multiple monitoring sample information in the described schedule time are sent to data processing equipment, determines to occur in described intended application the object of RAM leakage to make described data processing equipment according to described multiple monitoring sample information.
Further, monitoring acquisition module 41, send prearranged signals amount for the process corresponding to described intended application, to obtain a sampling files corresponding with described process, described sampling files comprises: a described monitoring sample information.
In order to the RAM leakage method for supervising making test terminal perform Fig. 3 example, present disclose provides a kind of RAM leakage supervising device, this device is arranged on data processing equipment; Be simply described as follows the structure of this device, concrete principle can in conjunction with see embodiment of the method.As shown in Figure 5, RAM leakage supervising device can comprise: information receiving module 51 and leakage analysis module 52; Wherein,
Information receiving module 51, for receiving the multiple monitoring sample information in the schedule time of test terminal transmission, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
Reveal analysis module 52, for the committed memory according to described sampling time and correspondence, determine the object that RAM leakage occurs in described intended application.
Further, analysis module 52 is revealed, for exporting the comparative result of described multiple monitoring sample information; If described comparative result display is along with the growth in sampling time, the destination object committed memory in described monitoring sample information increases progressively, then determine described destination object generation RAM leakage.
Fig. 6 is the block diagram of a kind of test terminal 600 according to an exemplary embodiment.Such as, device 600 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 6, device 600 can comprise following one or more assembly: processing components 602, storer 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of I/O (I/O), sensor module 614, and communications component 616.
The integrated operation of the usual control device 600 of processing components 602, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 602 can comprise one or more processor 620 to perform instruction, to complete above-mentioned method: obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: the committed memory that the described intended application of sampling time and correspondence was triggered by pressure test in the sampling time; Multiple monitoring sample information of the described schedule time are sent to data processing equipment, determine the RAM leakage of described intended application to make described data processing equipment according to described multiple monitoring sample information.In addition, processing components 602 can comprise one or more module, and what be convenient between processing components 602 and other assemblies is mutual.Such as, processing element 602 can comprise multi-media module, mutual with what facilitate between multimedia groupware 608 and processing components 602.
Storer 604 is configured to store various types of data to be supported in the operation of equipment 600.The example of these data comprises for any application program of operation on device 600 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 604 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 606 is device 600 provide electric power.Electric power assembly 606 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 600 and be associated.
Multimedia groupware 608 is included in the screen providing an output interface between described device 600 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 608 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 600 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 610 is configured to export and/or input audio signal.Such as, audio-frequency assembly 610 comprises a microphone (MIC), and when device 600 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 604 further or be sent via communications component 616.In certain embodiments, audio-frequency assembly 610 also comprises a loudspeaker, for output audio signal.
I/O interface 612 is for providing interface between processing components 602 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 614 comprises one or more sensor, for providing the state estimation of various aspects for device 600.Such as, sensor module 614 can detect the opening/closing state of equipment 600, the relative positioning of assembly, such as described assembly is display and the keypad of device 600, the position of all right pick-up unit 600 of sensor module 614 or device 600 1 assemblies changes, the presence or absence that user contacts with device 600, the temperature variation of device 600 orientation or acceleration/deceleration and device 600.Sensor module 614 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 614 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 614 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 616 is configured to the communication being convenient to wired or wireless mode between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 616 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 616 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 600 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
Fig. 7 is the block diagram of a kind of data processing equipment 700 according to an exemplary embodiment.For example, referring to Fig. 7, device 700 comprises processing components 722, and it comprises one or more processor further, and the memory resource representated by storer 732, can such as, by the instruction of the execution of processing element 722, application program for storing.The application program stored in storer 732 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 722 is configured to perform instruction, to perform the above method: receive the multiple monitoring sample information in schedule time that test terminal sends, each described monitoring sample information comprises: the committed memory that the described intended application of sampling time and correspondence was triggered by described pressure test in the described sampling time; According to the committed memory of described sampling time and correspondence, determine described intended application RAM leakage.
Device 700 can also comprise the power management that a power supply module 726 is configured to actuating unit 700, and a wired or wireless network interface 750 is configured to device 700 to be connected to network, and input and output (I/O) interface 758.Device 700 can operate the operating system based on being stored in storer 732, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer of instruction, above-mentioned instruction can be performed by the processor of device to complete said method.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (10)

1. a RAM leakage method for supervising, is characterized in that, comprising:
Obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
Multiple monitoring sample information in the described schedule time are sent to data processing equipment, determine to occur in described intended application the object of RAM leakage to make described data processing equipment according to described multiple monitoring sample information.
2. method according to claim 1, is characterized in that, described acquisition is within the schedule time of carrying out described pressure test, and multiple monitoring sample information of the described intended application of taken at regular intervals, comprising:
The process corresponding to described intended application sends prearranged signals amount, and to obtain a sampling files corresponding with described process, described sampling files comprises: a described monitoring sample information.
3. a RAM leakage method for supervising, is characterized in that, comprising:
Receive the multiple monitoring sample information in the schedule time of test terminal transmission, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
According to the committed memory of described sampling time and correspondence, determine the object that RAM leakage occurs in described intended application.
4. method according to claim 3, is characterized in that, the described committed memory according to described sampling time and correspondence, determines the object that RAM leakage occurs in described intended application, comprising:
Export the comparative result of described multiple monitoring sample information;
If described comparative result display is along with the growth in sampling time, the destination object committed memory in described monitoring sample information increases progressively, then determine described destination object generation RAM leakage.
5. a RAM leakage supervising device, is characterized in that, comprising:
Monitoring acquisition module, for obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
Information transmission modular, for the multiple monitoring sample information in the described schedule time are sent to data processing equipment, determines to occur in described intended application the object of RAM leakage to make described data processing equipment according to described multiple monitoring sample information.
6. device according to claim 5, is characterized in that,
Described monitoring acquisition module, send prearranged signals amount for the process corresponding to described intended application, to obtain a sampling files corresponding with described process, described sampling files comprises: a described monitoring sample information.
7. a RAM leakage supervising device, is characterized in that, comprising:
Information receiving module, for receiving the multiple monitoring sample information in the schedule time of test terminal transmission, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory;
Reveal analysis module, for the committed memory according to described sampling time and correspondence, determine the object that RAM leakage occurs in described intended application.
8. device according to claim 7, is characterized in that,
Described leakage analysis module, for exporting the comparative result of described multiple monitoring sample information; If described comparative result display is along with the growth in sampling time, the destination object committed memory in described monitoring sample information increases progressively, then determine described destination object generation RAM leakage.
9. a test terminal, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to: obtain to monitoring intended application carry out in the schedule time of pressure test, multiple monitoring sample information of the described intended application of taken at regular intervals, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory; Multiple monitoring sample information in the described schedule time are sent to data processing equipment, determine to occur in described intended application the object of RAM leakage to make described data processing equipment according to described multiple monitoring sample information.
10. a data processing equipment, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to: receive the multiple monitoring sample information in the schedule time of test terminal transmission, each described monitoring sample information comprises: sampling time and each object that intended application comprises described in the described sampling time distinguish corresponding committed memory; According to the committed memory of described sampling time and correspondence, determine the object that RAM leakage occurs in described intended application.
CN201510290517.3A 2015-05-29 2015-05-29 Monitoring method and device of memory leakage Pending CN104932970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510290517.3A CN104932970A (en) 2015-05-29 2015-05-29 Monitoring method and device of memory leakage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510290517.3A CN104932970A (en) 2015-05-29 2015-05-29 Monitoring method and device of memory leakage

Publications (1)

Publication Number Publication Date
CN104932970A true CN104932970A (en) 2015-09-23

Family

ID=54120142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510290517.3A Pending CN104932970A (en) 2015-05-29 2015-05-29 Monitoring method and device of memory leakage

Country Status (1)

Country Link
CN (1) CN104932970A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204996A (en) * 2015-09-24 2015-12-30 努比亚技术有限公司 Memory leak detection device and method and terminal
CN106227650A (en) * 2016-07-08 2016-12-14 北京奇虎科技有限公司 A kind of method and apparatus of the memory overflow detecting application
CN106326106A (en) * 2016-01-27 2017-01-11 上海华测导航技术股份有限公司 Method for detecting resource leakage based on android handbook
CN106649105A (en) * 2016-12-08 2017-05-10 武汉斗鱼网络科技有限公司 Detection methods and devices for memory leaks
CN111949490A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 JVM process monitoring method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100023531A1 (en) * 2007-01-12 2010-01-28 Truecontext Corporation Method and system for real time records from aggregated mobile data
CN102609351A (en) * 2012-01-11 2012-07-25 华为技术有限公司 Method, equipment and system for analyzing system performance
CN103778056A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Wireless application stability testing method and system
CN104133761A (en) * 2013-11-28 2014-11-05 腾讯科技(成都)有限公司 Memory usage analysis method, device and system of mobile terminal
CN104516803A (en) * 2013-09-27 2015-04-15 腾讯科技(深圳)有限公司 Electronic device information monitoring method and system and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100023531A1 (en) * 2007-01-12 2010-01-28 Truecontext Corporation Method and system for real time records from aggregated mobile data
CN102609351A (en) * 2012-01-11 2012-07-25 华为技术有限公司 Method, equipment and system for analyzing system performance
CN103778056A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Wireless application stability testing method and system
CN104516803A (en) * 2013-09-27 2015-04-15 腾讯科技(深圳)有限公司 Electronic device information monitoring method and system and electronic device
CN104133761A (en) * 2013-11-28 2014-11-05 腾讯科技(成都)有限公司 Memory usage analysis method, device and system of mobile terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204996A (en) * 2015-09-24 2015-12-30 努比亚技术有限公司 Memory leak detection device and method and terminal
CN106326106A (en) * 2016-01-27 2017-01-11 上海华测导航技术股份有限公司 Method for detecting resource leakage based on android handbook
CN106326106B (en) * 2016-01-27 2018-11-09 上海华测导航技术股份有限公司 Resource leakage detection method based on android handbooks
CN106227650A (en) * 2016-07-08 2016-12-14 北京奇虎科技有限公司 A kind of method and apparatus of the memory overflow detecting application
CN106649105A (en) * 2016-12-08 2017-05-10 武汉斗鱼网络科技有限公司 Detection methods and devices for memory leaks
WO2018103216A1 (en) * 2016-12-08 2018-06-14 武汉斗鱼网络科技有限公司 Method and apparatus for detecting memory leakages
CN106649105B (en) * 2016-12-08 2019-06-04 武汉斗鱼网络科技有限公司 A kind of detection method and device of memory overflow
CN111949490A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 JVM process monitoring method and device
CN111949490B (en) * 2020-08-14 2024-04-19 中国工商银行股份有限公司 JVM process monitoring method and device

Similar Documents

Publication Publication Date Title
CN104866409A (en) Method and apparatus for monitoring memory leakage
CN105302727A (en) Testing method, device and system
CN104461725A (en) Application process starting control method and device
CN104239094A (en) Method and device for controlling background application programs and terminal equipment
CN105306931A (en) Smart TV anomaly detection method and device
CN106488335A (en) Live-broadcast control method and device
CN104035663A (en) Method and device for displaying notification message
CN105468152A (en) Terminal operation control method and device based on wearable equipment, and equipment
CN104933170A (en) Information exhibition method and device
EP3236469B1 (en) Object monitoring method and device
CN104932970A (en) Monitoring method and device of memory leakage
CN104301528A (en) Information displaying method and device
CN105404576A (en) Anomaly information acquisition method and apparatus
CN104156186A (en) Health data display method and device
CN104836924A (en) Number marking method and device
CN105653085A (en) Touch response method and device
CN104915290A (en) Application testing method and device
CN105406882A (en) Terminal equipment control method and device
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN109298995B (en) Performance test method and device, electronic equipment and storage medium
CN105094830A (en) Method and device for executing target functions
CN103955274A (en) Application control method and device
CN104601204A (en) Method and device for detecting triggering condition
CN111614990A (en) Method and device for acquiring loading duration and electronic equipment
CN105242837A (en) Application page acquisition method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150923