A resource leak detection method, device and system

A resource leakage and detection method technology, applied in the computer field, can solve problems such as business damage, memory leaks that cannot be detected, and high detection overhead

Active Publication Date: 2018-08-17
HUAWEI TECH CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this prior art, it is necessary to track and record all memory allocation and memory release, the detection overhead is high and the efficiency is low, it can only be used in the testing phase or debugging phase of the program, and the memory leak detection cannot be performed in the online environment where the program is actually running. It is impossible to detect memory leaks that are hidden and occur when the program is actually running. Undetected memory leaks will cause business damage or even business interruption

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 resource leak detection method, device and system
  • A resource leak detection method, device and system
  • A resource leak detection method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0071] Embodiments of the present invention provide a resource leakage detection method and device. A resource leakage detection device in the implementation of the present invention may include: a terminal device capable of running programs such as a smart phone, a tablet computer, a computer, and a server. Further, the resource leakage detection device in the embodiment of the present invention may also include: a terminal device Client modules in ,...

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 of the present invention discloses a resource leakage detection method, device and system, the method comprising: obtaining the target resource called by the target code of the program when running; wherein the target code is part of the program code; determining the target resource the first amount of storage resources occupied; judging whether the first amount of storage resources occupied by the target resource satisfies the first preset condition; if the first amount of storage resources occupied by the target resource satisfies the first preset condition, the The storage location was determined to be the location of the resource leak. In the embodiment of the present invention, the object code of the program can be tracked, and the storage location of the object code can be further detected and determined as the resource leak location, without tracking all resource allocation and release, thereby reducing performance overhead and improving resource leakage. detection efficiency.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a resource leakage detection method, device and system. Background technique [0002] During the running of the program, some resources are usually called, such as memory, file handle, semaphore, message packet, database connection pool, etc., and the called resource needs to be released in time after the program finishes running. Resource leakage means that the program cannot release resources that are no longer used due to problems such as leaking release or stepping on memory, so that these resources cannot be reused. As resources continue to leak, the available resources of the system become less and less, resulting in system performance degradation, and eventually the system cannot provide services and process business due to insufficient resources. [0003] In a prior art, when memory is allocated, the number of times of memory allocation and the size of memory allocation ...

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): G06F11/36
CPCG06F11/36G06F11/3612G06F11/3037G06F11/3452G06F11/073G06F11/079G06F11/0793
Inventor 李静辉袁健清龚学文尹友展
Owner HUAWEI TECH CO LTD
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