A memory leak detection method and device

A memory leak and detection method technology, applied in the field of memory leak detection, can solve problems such as equipment stop, memory consumption, and computer performance reduction, so as to ensure normal operation and solve the effect of memory leak phenomenon

Active Publication Date: 2016-08-10
南京星云数字技术有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A memory leak can reduce the amount of memory available to the system, thereby reducing the performance of the computer
If the system does not detect and handle memory leaks, it may cause more and more memory to be consumed over time
Eventually, in the worst case, too much available memory is allocated and all or part of the device stops working properly, or the application crashes

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
  • A memory leak detection method and device
  • A memory leak detection method and device
  • A memory leak detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The memory leak detection method in the present invention will be described below with reference to the drawings.

[0017] It should be noted that, in the following embodiments, the technical solution of the present invention will be described in detail mainly by taking the memory management structure of the memory block chain as an example. Those skilled in the art should understand that in the prior art, the system also uses other modes to manage memory. Therefore, the technical personnel can apply the technical solution of the present invention to other memory management structures other than the memory block chain without creative work according to the description in this article, and this application will inevitably fall under the protection of the appended claims. In the range.

[0018] figure 2 A flowchart of a method for detecting a memory leak according to a specific embodiment of the present invention is shown. The following reference figure 2 The first embodim...

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 present invention aims to provide a memory leak detection method, which includes the following steps: dividing the memory block allocated to the process into multiple memory classes according to the length, recording the memory block application information and memory block release information of each memory class respectively, And the address information of each memory block; based on the memory block application information, memory block release information and address information of each memory class, determine the memory leak point. Through the method and the corresponding device provided by the invention, the memory leak point in the system can be detected effectively, and the stable operation of the program can be ensured.

Description

Technical field [0001] The invention relates to a method and device for detecting memory leakage, in particular to a method and device for detecting memory leakage in a communication network. Background technique [0002] Memory leak is a common error in program operation. Generally refers to the situation where the memory that is no longer used is not released when the program is running due to negligence or error in program design. Memory leak does not mean the physical disappearance of the memory, but the application program loses control of the memory allocated to the program, thus causing a waste of memory. [0003] Most memory leaks refer to heap memory leaks. Heap memory refers to the memory that the program allocates from the heap and should be released accordingly after use. According to system requirements, memory is often divided into multiple memory blocks, and the size of each memory block can be arbitrary. Such as figure 1 As shown, multiple memory blocks can be l...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50G06F11/36
Inventor 姚欣张少华方涛
Owner 南京星云数字技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products