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

Dynamic memory leak detection method and system

A leak detection and dynamic memory technology, applied in the computer field, can solve problems such as detection and inability to leak memory, and achieve practical results in diagnosing problems.

Active Publication Date: 2017-08-18
XUJI GRP +3
View PDF6 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to provide a dynamic memory leak detection method and system to solve the problem that memory leaks cannot be detected non-destructively in the prior art

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
  • Dynamic memory leak detection method and system
  • Dynamic memory leak detection method and system
  • Dynamic memory leak detection method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and examples, but the embodiments of the present invention are not limited thereto.

[0032] Embodiment of the dynamic memory leak detection system of the present invention:

[0033] Such as figure 1 As shown, the dynamic memory leak detection system of the present invention includes a three-layer structure: a tool end, an agent server end and a monitored process. The three cooperate with each other, and through the dynamic probe technology, the memory monitoring module in the "Dynamic Link Library" is attached to the address space of the monitored process, and the memory management information collected by the memory monitoring module is displayed on the tool side in real time. Among them, the memory monitoring module is code developed and written by testers, inclu...

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 invention relates to a dynamic memory leak detection method and system. The method comprises the following steps of: dynamically mounting a memory monitoring module in a dynamic link library into an address space of a monitored process by a tool side so as to ensure that the monitored process has a memory leak detection function; recording memory operation behaviors by the monitoring module, putting the messages into a message queue and sending the message queue to an proxy server side; and uniformly managing memory information in the message queue by the proxy server side and sending the memory information to the tool side. According to the method and system provided by the invention, the memory leak conditions in process spaces can be monitored in real time without interrupting target processes, so that real online monitoring is realized; and the memory leak detection can be remotely controlled through the tool side, and the memory information of the monitored processes can be harmlessly read and written by the proxy server side, so that practical value is brought to position memory errors and diagnose problems, and the method and system are suitable for different scenes such as Linux system C / C++ programs, electric power system programs and the like.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a dynamic memory leak detection method and system. Background technique [0002] When developing programs in C / C++ language, dynamic memory allocation technology is often used. Dynamic memory uses the system's heap space, thereby effectively utilizing the system's memory resources. Programmers use malloc, realloc, calloc or new to apply for any amount of memory at runtime. However, dynamic memory must rely on the programmer to call the memory release function free or delete to release it explicitly. Due to the negligence of programmers, memory leaks are very easy to occur in programs. [0003] A memory leak is a phenomenon in which the memory unit is always occupied because the space is dynamically opened up by the dynamic storage allocation function and is not released after use. [0004] In the field of power relay protection, due to the increasingly complex ba...

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/3644G06F11/366
Inventor 刘小燕陈献庆张春峰韩啸闫振宇杨坤郭亚楠张玉龙王利业张荣良李新玲纪元宋彦峰朱建斌
Owner XUJI GRP
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