Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Detecting memory management anti-patterns

a memory management and anti-pattern technology, applied in the field of memory management, can solve problems such as out-of-control memory growth, negative consequences of use (or misuse), and significant performance impa

Inactive Publication Date: 2012-08-28
IBM CORP
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

They are known as anti-patterns because their use (or misuse) produces negative consequences.
When the object is no longer needed, necessary clean-up must be performed and the reclaimed memory must be returned to the heap to avoid “memory leaks.” While the overhead for creating and destroying a single object may be small, when a large number of short-lived objects are frequently created and then destroyed (also referred to as “object churn”) the performance impact may be significant, and memory leaks resulting in out-of-control memory growth may occur.
Procedures based on this strategy can only detect long-lived unnecessary object retention.
Another class of memory management problems (uncontrolled heap growth) arises from short-lived object retention due, for example, to object churn and other transient memory requirements that increase process size (footprint) and related processing costs.

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
  • Detecting memory management anti-patterns
  • Detecting memory management anti-patterns
  • Detecting memory management anti-patterns

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025]As indicated above, the present invention provides a method, system, and computer program product for detecting performance-degrading memory management anti-patterns, particularly in systems with automatic storage reclamation (“garbage collection”). In particular, in accordance with the present invention, census data is periodically collected to obtain the distribution of live object types. The collected census data is then subjected to time-series analysis, and each time series is classified into one of a plurality of different categories that reflect different kinds of memory management issues over a variety of temporal scales. These classifications are used to drive the collection of additional information to pinpoint the contributors to the memory management issue.

[0026]A flow diagram 200 of a method in accordance with the present invention is illustrated in FIG. 2. Given a workload comprising a series of periodic task executions (iterations), the following steps are perfo...

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 provides a method, system, and computer program product for detecting memory management anti-patterns. The method comprises: periodically generating census data for at least one object type in a heap; collecting the periodically generated census data for each object type into a time series; analyzing each time series; and classifying each time series into one of a plurality of different categories based on the analysis.

Description

BACKGROUND OF THE INVENTION[0001]1. Field of the Invention[0002]The present invention generally relates to memory management. More particularly, the present invention provides a method, system, and computer program product for detecting performance-degrading memory management anti-patterns, particularly in systems with automatic storage reclamation (“garbage collection”).[0003]2. Related Art[0004]A pattern is a common solution to a problem that occurs in many different contexts. Patterns capture expert knowledge about “best practices” in software design in a form that allows that knowledge to be reused and applied in the design of many different types of software. Anti-patterns are conceptually similar to patterns in that they document recurring solutions to common design problems. They are known as anti-patterns because their use (or misuse) produces negative consequences. Anti-patterns document common mistakes made during software development as well as their solutions. Anti-patte...

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(United States)
IPC IPC(8): G06F12/00G06F17/30
CPCG06F11/3409G06F12/0253G06F2201/88
Inventor LAKE, JOHN M.
Owner IBM CORP
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
Eureka Blog
Learn More
PatSnap group products