DocumentCode :
2360861
Title :
Detecting resource leaks through dynamical mining of resource usage patterns
Author :
Zhang, Huxing ; Wu, Gang ; Chow, Kingsum ; Yu, Zhidong ; Xing, XueZhi
Author_Institution :
Sch. of Software, Shanghai Jiao Tong Univ., Shanghai, China
fYear :
2011
fDate :
27-30 June 2011
Firstpage :
265
Lastpage :
270
Abstract :
Resource management is crucial to software productions. Resources must be carefully acquired and released, or a resource leak might occur. For open source projects, resource leaks can be easily introduced during code check-in, and it is laborious to review, identify, report, and fix such leaks. Recently, there has been a growing interest in data mining API usage patterns to discover potential bugs such as resource leaks. However, the usage patterns mined are specific to a certain library, which cannot be applied to detect bugs in other libraries. In this paper, we present an idea called MODE, “Mine Once, Detect Everywhere”, to address the universality of such patterns, and use them to detect potential resource leaks automatically before code check-in. We propose an efficient algorithm to record the most valuable API calls that are related to resource usage during program execution, and mine resource usage patterns from the traces with a sequence miner. To verify the effectiveness of the patterns, experiments are given to use them to detect real resource leaks in large open source projects.
Keywords :
application program interfaces; data mining; pattern classification; program verification; resource allocation; MODE; code check-in; data mining API usage pattern; dynamical resource usage pattern mining; large open source project; open source project; potential bugs; potential resource leak detection; program execution; real resource leak detection; resource management; sequence miner; software production; Association rules; Computer bugs; Integrated circuits; Java; Libraries; Software; Data Mining; Dynamical Analysis; Resource Leak Detection;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Dependable Systems and Networks Workshops (DSN-W), 2011 IEEE/IFIP 41st International Conference on
Conference_Location :
Hong Kong
Print_ISBN :
978-1-4577-0374-4
Electronic_ISBN :
978-1-4577-0373-7
Type :
conf
DOI :
10.1109/DSNW.2011.5958824
Filename :
5958824
Link To Document :
بازگشت