Title :
Aspect-Based Instrumentation for Locating Memory Leaks in Java Programs
Author :
Chen, Kung ; Chen, Ju-Bing
Author_Institution :
Nat. Chengchi Univ., Taipei
Abstract :
Despite the built-in garbage collector, Java programs can still suffer the memory leak problem resulted from the unhealthy programming style of retaining unwanted references. This paper presents an aspect-based tool for assisting programmers in locating such references to fix the problem. This tool, FindLeaks, utilizes an aspect to collect memory consumption statistics and object references created during a program´s execution and analyzes them for detecting memory leaks. The distinctive feature of FindLeaks is that it reports not only suspected classes of leaking objects but also where in the source the unwanted references were created. Besides, this paper also reports some preliminary experience with FindLeaks.
Keywords :
Java; object-oriented programming; storage management; FindLeaks; Java programs; aspect-based instrumentation; aspect-based tool; garbage collector; memory consumption statistics; memory leaks; object references; Computer science; Information analysis; Instruments; Java; Joining processes; Leak detection; Monitoring; Object detection; Programming profession; Statistical analysis;
Conference_Titel :
Computer Software and Applications Conference, 2007. COMPSAC 2007. 31st Annual International
Conference_Location :
Beijing
Print_ISBN :
0-7695-2870-8
DOI :
10.1109/COMPSAC.2007.79