Angelika Langer - Training & Consulting
HOME | COURSES | TALKS | ARTICLES | GENERICS | LAMBDAS | IOSTREAMS | ABOUT | CONTACT | Twitter | Lanyrd | Linkedin
HOME 


  UPCOMING
  PREVIOUS
  MATERIALS
 
GENERICS 
LAMBDAS 
IOSTREAMS 
ABOUT 
CONTACT 
Memory Leaks in Java - Workshop

Memory Leaks in Java - Workshop  
ABSTRACT
 
 
A memory leak is a Java heap object that is reachable via a regular Java reference but no longer used by the application.  The heap memory occupied by objects that are no longer needed should be automatically released by the JVM's garbage collector.  As the garbage collector only considers unreachable objects as "garbage" all unused yet reachable objects remains alive and waste memory.

As long as an application produces only a small amount of memory leaks no harm is done. If, however, the application has many (or large) memory leaks that accumulate over time, then the waste of memory might have an adverse effect on the application's overall efficiency - possibly to a degree where the application goes out of memory and crashes.  As a precaution it is advisable to search for memory leaks in an application and to eleminate them before they cause harm.

Without a tool it is virtually impossible to detect a memory leak.  For this reason we will be using a couple of tools that support memory leak detection.  The lecture will discuss strategies for finding memory leaks; they differ depending on the nature of the respective memory leak. During the workshop's hands-on part the attendants will have the opportunity to try out the tools and practice the search for memory leaks.

 
PREREQUISITES

 
Level: average
Duration: 90  min
Audience: Java developers with an interest in memory leak detection.
Prerequisites: Working knowledge of Java.
Presented at: Test Tage 2009 , Stuttgart, Germany, May 7-8, 2009
 

Related information:
Seminars
 
High-Performance Java
4-day seminar (open enrollment / on-site)
 
Papers
 
online FAQ Performance Tuning in Java
Articles from the "Effective Java" column
  © Copyright 1995-2009 by Angelika Langer.  All Rights Reserved.    URL: < http://www.AngelikaLanger.com/Conferences/Abstracts/MemoryLeaks.htm  last update: 23 Jun 2009