Search |
||
BOF-2417, Memory Leaks in Java Applications: Different Tools for Different Types of LeaksPosted by gsporar on May 23, 2006 at 12:38 PM PDT
The BOF went well. There were about 300 people who showed up, which is pretty good considering that the After Dark party was going on. The idea behind this presentation is that when you want to debug a memory leak there are two techniques you can use: walking the heap and instrumentation. Each approach has strengths and weaknesses and in my view there is not one correct technique for all situations. The majority of the presentation was spent on two case studies from applications I have debugged, one where I used a heap walker and one where I used instrumentation. As promised, the slides are here. Additional Resources.... The JDK5 Trouble-Shooting and Diagnostic Guide. Provides information on the different tools available in the JDK for tracking down memory leaks and other performance problems. Bloggers from whom I have learned profiling and performance tips: Alan Bateman, Kelly O'Hair, Charlie Hunt, Brian Doherty, Scott Oaks, Mandy Chung, and A. Sundararajan. One topic that I mentioned briefly was the idea of using specific coding techniques and unit tests to prevent memory leaks from making it into production code. As I said at the time, this deserves a BOF of its own. One tool that can help, however, is the Insane Library. If you are interested in Insane, also check out this blog entry from Tim Boudreau. YourKit was the profiler I used in my heap walker demo. The NetBeans Profiler was used in my instrumentation demo. And finally, a few additional thoughts on some of the questions that were asked.
»
Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|