Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Low-Overhead Memory Leak Detection

Moderators: Vladimir Kondratyev, Anton Katilin

Low-Overhead Memory Leak Detection

Postby rblasch » Thu Feb 03, 2005 3:21 pm

Another not-exactly-a-feature-request-but-think-about-it topic.

Had an interesting read yesterday, called: "Low-Overhead Memory Leak Detection Using Adaptive Statistical Profiling" by Trishul M. Chilimbi and Matthias Hauswirth. Might be an interesting idea for "memory sampling profiling".

Here's the abstract:

Sampling has been successfully used to identify performance optimization opportunities. We would like to apply similar techniques to check program correctness. Unfortunately, sampling provides poor coverage of infrequently executed code, where bugs often lurk. We describe an adaptive profiling scheme that addresses this by sampling executions of code segments at a rate inversely proportional to their execution frequency. To validate our ideas, we have implemented SWAT, a novel memory leak detection tool. SWAT traces program allocations/ frees to construct a heap model and uses our adaptive profiling infrastructure to monitor loads/stores to these objects with low overhead. SWAT reports 'stale' objects that have not been accessed for a 'long' time as leaks. This allows it to find all leaks that manifest during the current program execution. Since SWAT has low runtime overhead (‹5%), and low space overhead (‹10% in most cases and often less than 5%), it can be used to track leaks in production code that take days to manifest. In addition to identifying the allocations that leak memory, SWAT exposes where the program last accessed the leaked data, which facilitates debugging and fixing the leak. SWAT has been used by several product groups at Microsoft for the past 18 months and has proved effective at detecting leaks with a low false positive rate (‹10%).
Posts: 64
Joined: Mon Jan 10, 2005 7:13 pm
Location: Salzburg, Austria

Return to Java Profiler

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests