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

Methods, systems and computer program products for detecting memory leaks

a technology of memory leakage and detection method, applied in the field of data processing, can solve problems such as identifying possible memory leakage areas

Inactive Publication Date: 2006-09-21
IBM CORP
View PDF7 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0011] In addition, if the total size of the ParentNode is not significantly larger than the total size of the largest ChildNode, a largest GrandChildNode may be identified. After identifying the largest GrandChildNode, a total size of the ChildNode may be compared to a total size of the largest GrandChildNode. If the total size of the ChildNode is significantly larger than the total size of the largest GrandChildNode, a possible memory leak area may be identified.
[0012] Moreover, if the total size of the ParentNode is not significantly larger than the total size of the largest ChildNode of the ParentNode, the total size of the ChildNode may be compared to a size threshold. If the total size of the ChildNode is less than the size threshold, a no memory leak detected result may be returned. If the total size of the ChildNode is greater than the size threshold, a largest GrandChildNode may be identified. After identifying the largest GrandChildNode, a total size of the ChildNode may be compared to a total size of the largest GrandChildNode, and if the total size of the ChildNode is significantly larger than the total size of the largest GrandChildNode, a possible memory leak area may be identified.
[0013] If the total size of the ParentNode is not significantly larger than the total size of the largest ChildNode, a determination may be made if the largest ChildNode is a terminal node. If the largest ChildNode is a terminal node, a no memory leak detected result may be returned. If the largest ChildNode is not a terminal node, a largest GrandChildNode may be identified. After identifying the largest GrandChildNode, a total size of the ChildNode may be compared to a total size of the largest GrandChildNode. If the total size of the ChildNode is significantly larger than the total size of the largest GrandChildNode, a possible memory leak area may be identified.
[0014] If the total size of the ParentNode is not significantly larger than the total size of the largest ChildNode, a determination may be made if the largest ChildNode is a terminal node. If the largest ChildNode is a terminal nod

Problems solved by technology

If the total size of the ParentNode is significantly larger than the total size of the largest ChildNode of the ParentNode, a possible memory leak area may be identified.

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
  • Methods, systems and computer program products for detecting memory leaks
  • Methods, systems and computer program products for detecting memory leaks
  • Methods, systems and computer program products for detecting memory leaks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The invention now will be described more fully hereinafter with reference to the accompanying drawings, in which illustrative embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Like numbers refer to like elements throughout. As used herein, the term “and / or” includes any and all combinations of one or more of the associated listed items.

[0023] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “...

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

Methods of detecting a memory leak may include identifying a largest ChildNode of a ParentNode; and comparing a total size of the ParentNode to a total size of the largest ChildNode of the ParentNode. If the total size of the ParentNode is significantly larger than the total size of the largest ChildNode of the ParentNode, a possible memory leak area may be identified. Related systems and computer program products are also discussed.

Description

BACKGROUND OF THE INVENTION [0001] The present invention relates to data processing in general and, more particularly, to methods, systems, and computer program products for monitoring program code memory usage. [0002] Object oriented programming is a well-known software application development technique that employs collections of objects or discrete modular data structures that are identified by so called references. More than one reference can identify the same object. The references can be stored in the application variables and within the objects, forming a network of objects and references, known as the reference graph. The objects are created dynamically during the application execution, and are contained in a memory structure referred to as a heap. [0003] Many object oriented programming languages, such as JAVA®, Eiffel, and C sharp C#), employ automatic memory management, popularly known as garbage collection. Automatic memory management is an active component of the runtim...

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): G06F9/44
CPCG06F11/3612G06F12/0253
Inventor HWANG, JINWOO
Owner IBM CORP
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