DocumentCode
707984
Title
A Lightweight, Static Approach to Detecting Unbounded Thread-Instantiation Loops
Author
Jing Xu ; Yu Lei ; Carver, Richard ; Kung, David
Author_Institution
Dept. of Comput. Sci. & Eng., Univ. of Texas at Arlington, Arlington, TX, USA
fYear
2015
fDate
13-17 April 2015
Firstpage
1
Lastpage
10
Abstract
In server applications, threads are created to handle incoming requests. Since threads consume significant resources including CPU cycles and memory, it is important to control the number of threads that are created. In this paper, we introduce a lightweight, static approach to detecting unbounded thread- instantiation loops that may exist in a server application. The key observation of our approach is that threads are objects of special significance and the decision logic for thread instantiation is typically not complex. Our approach checks loops against some bounded thread-instantiation patterns. A loop is considered bounded if a pattern match is found. Otherwise, it is considered unbounded. Our approach is heuristic by nature. That is, it does not guarantee to detect all the unbounded loops and may report unbounded loops that are actually bounded. To evaluate the effectiveness of our approach, we report an Eclipse plugin called ThreadBoundChecker which implements our approach and an experiment on 24 real-life Java server applications. The results of our evaluation show that our approach can effectively detect unbounded thread-instantiation loops in these applications. In particular, 12 unbounded thread-instantiation loops detected by our approach are confirmed by the original developers.
Keywords
Java; formal logic; multi-threading; pattern matching; program control structures; CPU cycle; CPU memory; Eclipse plugin; ThreadBoundChecker; bounded thread-instantiation pattern; decision logic; pattern match; real-life Java server application; unbounded thread-instantiation loop; Concrete; Instruction sets; Java; Message systems; Pattern matching; Servers; Tornadoes;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Testing, Verification and Validation (ICST), 2015 IEEE 8th International Conference on
Conference_Location
Graz
Type
conf
DOI
10.1109/ICST.2015.7102579
Filename
7102579
Link To Document