Controlling garbage collection and heap growth to reduce the execution time of Java applications
Authors:
Open Access
- 1 September 2006
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 28 (5) , 908-941
Abstract
In systems that support garbage collection, a tension exists between collecting garbage too frequently and not collecting it frequently enough. Garbage collection that occurs too frequently may introduce unnecessary overheads at the risk of not collecting much garbage during each cycle. On the other hand, collecting garbage too infrequently can result in applications that execute with a large amount of virtual memory (i.e., with a large footprint) and suffer from increased execution times due to paging.In this article, we use a large set of Java applications and the highly tuned and widely used Boehm-Demers-Weiser (BDW) conservative mark-and-sweep garbage collector to experimentally examine the extent to which the frequency of garbage collection impacts an application's execution time, footprint, and pause times. We use these results to devise some guidelines for controlling garbage collection and heap growth in a conservative garbage collector in order to minimize application execution times. Then we describe new strategies for controlling garbage collection and heap growth that impact not only the frequency with which garbage collection occurs but also the points at which it occurs. Experimental results demonstrate that when compared with the existing approach used in the standard BDW collector, our new strategy can significantly reduce application execution times.Our goal is to obtain a better understanding of how to control garbage collection and heap growth for an individual application executing in isolation. These results can be applied in a number of high-performance computing and server environments, in addition to some single-user environments. This work should also provide insights into how to make better decisions that impact garbage collection in multiprogrammed environments.Keywords
This publication has 25 references indexed in Scilit:
- The case for profile-directed selection of garbage collectors2000
- On effectiveness of GC in Java2000
- Java server performance: A case study of building efficient, scalable JvmsIBM Systems Journal, 2000
- Comparing mostly-copying and mark-sweep conservative collection1998
- Using generational garbage collection to implement cache-conscious data placement1998
- Improving the cache locality of memory allocation1993
- An adaptive tenuring policy for generation scavengersACM Transactions on Programming Languages and Systems, 1992
- Simple generational garbage collection and fast allocationSoftware: Practice and Experience, 1989
- Garbage collection in an uncooperative environmentSoftware: Practice and Experience, 1988
- Tenuring policies for generation-based storage reclamationACM SIGPLAN Notices, 1988