Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Detection methods and devices for memory leaks

A memory leak and memory detection technology, applied in the computer field, can solve problems such as difficult to test memory leaks, long memory leak cycle, memory leak detection, etc., to achieve the effect of automatic detection and location of memory leaks

Active Publication Date: 2017-05-10
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it is difficult to test all memory leaks due to the contingency of manual testing
Moreover, there are differences between the manual testing environment and the actual application environment, and manual testing must be completed before it is put into the market, so manual testing is difficult to restore the actual situation of memory leaks
[0004] Therefore, because the existing technology relies on manual detection of memory leaks, the cycle of detecting memory leaks and solving memory leaks is long

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Detection methods and devices for memory leaks
  • Detection methods and devices for memory leaks
  • Detection methods and devices for memory leaks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The embodiments of the invention provide a method and device for detecting memory leaks, which are used to realize the technical effect of automatically detecting memory leaks.

[0047] In order to solve the above technical problems, the general idea of ​​the technical solution provided by the present invention is as follows:

[0048] In the technical solution of the embodiment of the present invention, the memory detection module monitors each job Activity of the target application, and when any Activity is monitored to exit and one or more references of the Activity are not cleared, the target application is determined There is a memory leak, and then one or more references that have not been cleared are dumped into one or more binary dump files hprof files of the target application. The hprof file can indicate the reference relationship of a reference, and then based on each The hprof file indicates the reference relationship of the references stored in the hprof fil...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment provides detection methods and devices for memory leaks,which is used to automatically detected the technical results of memory leaks. The method comprises a memory test module monitors each work Activity for a target application; when the any exit of the activity described is monitored, and described the Activity of one or more references are not cleared, a memory leak of the described target application will be determined; one or more references that are not cleared are dumped to one or more binary dump file hprof files of the target application one by one, the hprof file is capable of representing a reference relation to a reference, the referenced chain for each of the referenced references is identified, the chain of references that cause memory leaks from one or more referenced chains can be identified.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for detecting memory leaks. Background technique [0002] A memory leak means that a function module continues to apply for memory space. After the function ends, the memory space requested by the function cannot be recovered. The emergence of memory leaks will cause the memory to continue to increase, and eventually the system will forcibly end the application and release the memory. Forcibly ending the application will cause the application to exit abnormally and reduce the user experience. [0003] In the prior art, memory leaks are detected through manual testing. However, it is difficult to test all memory leaks due to the contingency of manual testing. Moreover, there are differences between the manual testing environment and the actual application environment, and manual testing must be completed before it is put into the market, so manual testing ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3636
Inventor 丁萍
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products