Java virtual machine timing probes: a study of object life span and garbage collection

Qian Yang, Witawas Srisa‐an, Therapon Skotiniotis, J. Morris Chang · 2003

The performance issues of garbage collection (GC) have been studied for over three decades. This paper uses a new cycle accurate timing tool to measure GC metrics such as allocation latencies, component elapse time (mark, sweep, and compact) and object life span. The data are then used to derive runtime heap residency and overall GC time. In the past, researchers study object life span through a space based approach, where the amount of allocated memory determines GC invocations. We propose a tune based methodology as a complement. Time plays an important role in server environments, where allocations can come in bursts. The experimental results indicate that a time based approach yields significantly less GC calls, while maintains almost the same heap residency as the space based approach. This translates to a more efficient way to collect garbage.

Read the paper · More papers on PaperTik